Page 1 of 1

How to add price teleport with 10 Festival Adena

Posted: Sat Jan 16, 2010 10:10 am
by rigid
Hai
how to make a teleporter with 10 festival adena for teleport

Re: How to add price teleport with 10 Festival Adena

Posted: Thu Jan 21, 2010 9:11 pm
by Uphillyout
i think only with script... like this

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)

Re: How to add price teleport with 10 Festival Adena

Posted: Fri Jan 22, 2010 7:10 am
by rigid
thanks
i will explore this :D