Jump to content
  • 0

Buffer Script


Question

Posted

I adapt 1 NPC Buffer  from freya client to H5...

i add and some buffs at the buffer script (here is the problem)

 

in those lines :

	#Mage
	if event == "120":
		SkillTable.getInstance().getInfo
(1191,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1189,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1182,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1393,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1353,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1362,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1352,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1035,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1259,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1392,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1389,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1204,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1087,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2475,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2473,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1036,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1040,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1002,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1062,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1059,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1303,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1461,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1413,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(308,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(277,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(265,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(267,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(268,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(276,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(304,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(349,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(273,1).getEffects(st.getPlayer(),st.getPlayer())

		return "1.htm"
		st.setState(COMPLETED)

 

what is wrong? :/

4 answers to this question

Recommended Posts

  • 0
Posted

could you tell us whats the problem?

At first view, this

st.setState(COMPLETED)

 

should be like this

st.setState(State.COMPLETED)

 

  • 0
Posted

could you tell us whats the problem?

At first view, this

st.setState(COMPLETED)

 

should be like this

st.setState(State.COMPLETED)

 

 

i add the line at the end of script (not exactly a the end)

 

when i spawn the buffer and prees the button "Buffs"  create an new _inti_ with the errors...

 

at those line that i had adds :/....

  • 0
Posted

i add the line at the end of script (not exactly a the end)

 

when i spawn the buffer and prees the button "Buffs"  create an new _inti_ with the errors...

 

at those line that i had adds :/....

import sys
from com.l2jserver.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jserver.gameserver.datatables import SkillTable
from com.l2jserver	import L2DatabaseFactory
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

qn = "212121_NpcBuffer"

NPC=[212121]
ADENA_ID=57
QuestId     = 212121
QuestName   = "NpcBuffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "importing custom: 212121: NpcBuffer"

class Quest (JQuest) :

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


def onEvent(self,event,st):
	htmltext = event

		#Acumen
	if event == "1":
		SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())

		return "2.htm"
		st.setState(COMPLETED)

#Mana Gain
	if event == "93":
		SkillTable.getInstance().getInfo(1460,4).getEffects(st.getPlayer(),st.getPlayer())

		return "2.htm"
		st.setState(COMPLETED)

#Chant of Battle
	if event == "94":
		SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Shielding
	if event == "95":
		SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of fire
	if event == "96":
		SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Flame
	if event == "97":
		SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Life
	if event == "98":
		SkillTable.getInstance().getInfo(1229,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Fury
	if event == "99":
		SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Evasion
	if event == "100":
		SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Rage
	if event == "101":
		SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Revenge
	if event == "102":
		SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Vampire
	if event == "103":
		SkillTable.getInstance().getInfo(1310,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Eagle
	if event == "104":
		SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Chant of Predator
	if event == "105":
		SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#War Chant
	if event == "106":
		SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)

#Earth Chant
	if event == "107":
		SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer(),st.getPlayer())

		return "7.htm"
		st.setState(COMPLETED)



#Mage
	if event == "120":
		SkillTable.getInstance().getInfo
(1191,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1189,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1182,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1393,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1353,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1362,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1352,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1035,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1259,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1392,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1389,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1204,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1087,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2475,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2473,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1036,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1040,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1002,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1062,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1059,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1303,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1461,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1413,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(308,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(277,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(265,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(267,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(268,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(276,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(304,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(349,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(273,1).getEffects(st.getPlayer(),st.getPlayer())

		return "1.htm"
		st.setState(COMPLETED)



#Archer
	if event == "121":
		SkillTable.getInstance().getInfo
(1191,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1189,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1182,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1393,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1353,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1362,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1352,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1035,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1259,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1392,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2473,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2506,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2507,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1388,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1068,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1006,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1309,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1040,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2476,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1461,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1363,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1062,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(266,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(272,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(264,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(304,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(268,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(267,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(269,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(271,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())

		return "1.htm"
		st.setState(COMPLETED)



#Dagger
	if event == "122":
		SkillTable.getInstance().getInfo
(1191,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1189,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1182,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1393,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1353,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1362,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1352,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1035,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1259,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1392,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1252,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1204,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2474,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2473,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1068,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1040,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1461,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2507,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1389,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1006,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1357,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
(270,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(364,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(349,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(304,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(264,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(266,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(267,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(268,1).getEffects(st.getPlayer(),st.getPlayer())

		return "1.htm"
		st.setState(COMPLETED)



#Bishop
	if event == "123":
		SkillTable.getInstance().getInfo
(1191,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1189,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1182,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1393,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1353,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1362,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1352,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1035,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1259,4).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1392,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1040,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2475,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(2473,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1389,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1204,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1252,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1006,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1002,3).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1461,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(1363,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(264,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(267,2).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(276,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(349,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(270,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(304,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(265,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(268,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(307,1).getEffects(st.getPlayer(),st.getPlayer())
		SkillTable.getInstance().getInfo
(309,1).getEffects(st.getPlayer(),st.getPlayer())

		return "1.htm"
		st.setState(COMPLETED)


#IMPROUVE COMBAT
	if event == "124":
		SkillTable.getInstance().getInfo(2471,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#IMPROUVE MAGIC
	if event == "125":
		SkillTable.getInstance().getInfo(2472,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#IMROUVE CONDITION
	if event == "126":
		SkillTable.getInstance().getInfo(2473,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#IMROUVE CRITICAL ATTACK
	if event == "127":
		SkillTable.getInstance().getInfo(2474,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#IMPROUVE SHIELD DEFENCE
	if event == "128":
		SkillTable.getInstance().getInfo(2475,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#IMPROUVE MOVEMENT
	if event == "129":
		SkillTable.getInstance().getInfo(2476,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#CHANT OF COMBAT
	if event == "130":
		SkillTable.getInstance().getInfo(2505,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#CHANT OF CRITICAL ATTACK
	if event == "131":
		SkillTable.getInstance().getInfo(2506,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.htm"
		st.setState(COMPLETED)

#CHAMT OF BLOOD AWEKENING
	if event == "132":
		SkillTable.getInstance().getInfo(2507,1).getEffects(st.getPlayer(),st.getPlayer())

		return "10.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><center>ERROR<br1>Please, contact the administrator.</center></body></html>"
   st.setState(State.STARTED)
   return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

here is all the _inti_ ( i delete some buffs from 2-92)

and the error is at line 755

 

http://img638.imageshack.us/img638/1931/errorln.png

  • 0
Posted

in your script, at if event == 120:, this line appears like this

SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())

 

or like this

SkillTable.getInstance().getInfo
(1191,3).getEffects(st.getPlayer(),st.getPlayer())

?

 

You must know that python works by identation

 

EDIT: Doubt solved, topic closed. Solution above

Guest
This topic is now closed to further replies.
×
×
  • Create New...