How to add price teleport with 10 Festival Adena

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
rigid
Posts: 175
Joined: Thu Dec 17, 2009 7:20 am

How to add price teleport with 10 Festival Adena

Post by rigid »

Hai
how to make a teleporter with 10 festival adena for teleport
Uphillyout
Posts: 255
Joined: Wed Jan 20, 2010 9:06 pm

Re: How to add price teleport with 10 Festival Adena

Post 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)
rigid
Posts: 175
Joined: Thu Dec 17, 2009 7:20 am

Re: How to add price teleport with 10 Festival Adena

Post by rigid »

thanks
i will explore this :D
Post Reply