Page 1 of 1

i have a global gk need help

Posted: Fri Jul 09, 2010 11:46 pm
by necrolite
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
i have this code and the gk oesnt let me teleport to some locations it says that you need to be nobless to go there waht should i change.

Code: Select all

class Quest (JQuest) : 	def __init__(self,id,name,descr):		JQuest.__init__(self,id,name,descr)		self.Reload_PvpPk_Time = 0 	def onAdvEvent (self,event,npc,player) :		try: st = player.getQuestState(QUEST_INFO)		except: return		tempevent = event 		if event.startswith("gototeleport"):			event = event.replace("]","")			event = event.replace("["," ")			varSplit = event.split(" ")			try: noblesGK = int(varSplit[2])			except : noblesGK = 0			if st.player.isGM() == 1 :				try:					st.player.teleToLocation(int(varSplit[5]), int(varSplit[6]), int(varSplit[7]), True)					st.player.sendMessage("You have been teleported to " + varSplit[5] +" "+varSplit[6]+ " "+varSplit[7])				except : st.player.sendMessage("You should check the coordinates. Something is wrong!")				return 			if noblesGK == 1 and st.player.isNoble() == 0 :				return showText("Sorry","Only a <font color =\"LEVEL\">Noblesse</font> can be teleported to this place") 			if noblesGK > 1 and st.player.isGM() == 0 :				return showText("Sorry","Only a <font color =\"LEVEL\">GM</font> can be teleported to this place") 			else:				newevent="confteleport["+varSplit[3]+"]["+varSplit[4]+"] "+varSplit[5]+" "+varSplit[6]+" "+varSplit[7]				filename = "data/html/teleporter/gatekeeper/confirmation.htm"				html = NpcHtmlMessage(npc.getObjectId())					html.setFile(None,filename)				html.replace("%place%", varSplit[1].replace("-"," "))				html.replace("%itemName%", getitemname(int(varSplit[3])))				html.replace("%reqitem%", varSplit[4])				html.replace("%event%", newevent)				html.replace("%objectId%", str(npc.getObjectId()))				st.player.sendPacket(html)			return 		event = event.replace(","," ")		eventSplit = event.split(" ")		event = eventSplit[0]		eventParam1 = eventSplit[1]		eventParam2 = eventSplit[2]		eventParam3 = eventSplit[3] 		if event == "reloadscript": return ReloadConfig(st,eventParam1) 		if event.startswith("confteleport"):			event = event.replace("]","")			event = event.replace("["," ")			GKSplit = event.split(" ")			try: TELEPORT_ITEM_ID = int(GKSplit[1]); TELEPORT_PRICE = int(GKSplit[2])			except : TELEPORT_ITEM_ID = 57; TELEPORT_PRICE = 15000 

Re: i have a global gk need help

Posted: Sat Jul 10, 2010 2:32 am
by hope
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Re: i have a global gk need help

Posted: Sat Jul 10, 2010 4:47 am
by janiii
check the htm files of the teleporter and the "gototeleport" bypasses in there. they contain a parameter which says if it is a noble teleport.