__init__.py delay function? L2J 

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 19, 2007
Messages
15
Reaction score
0
Hi, does anyone know how to set a delay in __init__.py ?

e.g
NPC Buffer

The dances can't be run at one go due to dancing speed. By adding a delay before each dance, they can all run in 1 click.

------------------------------------

My failed approach:

def delay1():
st.getPlayer().useMagic(SkillTable.getInstance().getInfo(271,1),False,False)
st.getPlayer().restoreHPMP()
t = Timer(1.0, delay1)
t.start()


The red lines are what I added. It's supposed to make it dance after 1 second, but if I add the red lines in, the NPC Buffer will not work. It'll say "I have no task for you right now."
 
Last edited:
Status
Not open for further replies.
Back