Ekana tin 1ti prospa8eia m na Ftia3w enan buffer.... alla m bgazei error otan pataw pano tou ( m trexei aknonika alla molis pataw buffs me den me paei sto 1 Htlm....) HELP!!!!:P
Edw sas exw ta Files :
__init__ :
import sys
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
gn = '9999_NPCBuffer'
NPC=[40009]
ADENA_ID=57
QuestId = 9999
QuestName = "Buffer"
QuestDesc = "custom"
InitialHtml = "1.html"
print "importing custom: 9999: NPCBuffer"
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent(self,event,st):
htmltext = event
count=st.getQuestItemsCount(ADENA_ID)
if count < 1000 or st.getPlayer().getLevel() < 0 :
htmltext = "<html><head><body>You dont have enough Adena.</body></html>"
else:
st.takeItems(ADENA_ID,100)
st.getPlayer().setTarget(st.getPlayer())
#Full Buffs
if event == "1":
st.takeItems
SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)
#Full Buffs(No Berz)
if event == "2":
st.takeItems
SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)
#Full Dances
if event == "3":
st.takeItems
SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)
if event == "4":
st.takeItems
SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(266,2).getEffects(st.getPlayer(),st.getPlayer())
SkillTable.getInstance().getInfo(268,4).getEffects(st.getPlayer(),st.getPlayer())
return "4.htm"
st.setState(State.COMPLETED)
#Greater Might
if event == "5":
st.takeItems
SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Greater Shield
if event == "6":
st.takeItems
SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Prophecy of Fire
if event == "8":
st.takeItems
SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Prophecy of Water
if event == "6":
st.takeItems
SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Prophecy of Wind
if event == "10":
st.takeItems
SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Chant of Victory
if event == "7":
st.takeItems
SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Chant of Magnus
if event == "16":
st.takeItems
SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
#Nobless
if event == "12":
st.takeItems
SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
return "1.htm"
st.setState(State.COMPLETED)
#Cancellation
if event == "13":
st.takeItems
SkillTable.getInstance().getInfo(9950,1).getEffects(st.getPlayer(),st.getPlayer())
return "1.htm"
st.setState(COMPLETED)
if htmltext != event:
st.setState(COMPLETED)
st.exitQuest(1)
return htmltext
def onTalk (self,npc,player):
st = player.getQuestState(qn)
htmltext = "<html><head><body>I have nothing to say to you</body></html>"
st.setState(STARTED)
return InitialHtml
QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
CREATED=State('Start',QUEST)
STARTED=State('Started',QUEST)
COMPLETED=State('Completed',QUEST)
QUEST.setInitialState(CREATED)
for npcId in NPC:
QUEST.addStartNpc(40009)
QUEST.addTalkId(40009)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
kr1n0s*
Ekana tin 1ti prospa8eia m na Ftia3w enan buffer.... alla m bgazei error otan pataw pano tou ( m trexei aknonika alla molis pataw buffs me den me paei sto 1 Htlm....) HELP!!!!:P
Edw sas exw ta Files :
__init__ :
1 :
IParxei kapou la8os? :S
An mporei kapios na m pei ... ty
(Iparxoun all 4 arxeia Html)
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.