How to add price teleport with 10 Festival Adena
Posted: Sat Jan 16, 2010 10:10 am
Hai
how to make a teleporter with 10 festival adena for teleport
how to make a teleporter with 10 festival adena for teleport
L2J Server Discussion Board
https://l2jserver.com/forum/
Code: Select all
import sysfrom net.sf.l2j.gameserver.model.quest import Statefrom net.sf.l2j.gameserver.model.quest import QuestStatefrom net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest qn = "7783_TP" NPC = 13001col = 3865prise = 1X_ID=178847Y_ID=114894Z_ID=-7707class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onTalk (self,npc,player): htmltext = " " st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() if npcId == NPC : if st.getQuestItemsCount(col) < prise : htmltext = "<html> Where is FA? </html>" else: st.takeItems(col,prise) st.getPlayer().teleToLocation(X_ID,Y_ID,Z_ID) htmltext = "Teleported" return htmltext QUEST = Quest(7783,qn,"Custom")CREATED = State('Start', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC)QUEST.addTalkId(NPC)