Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

__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:
Custom Title Activated
Loyal Member
Joined
May 23, 2006
Messages
1,897
Reaction score
1
this is python isnt it?
you should use
Code:
  import time
  time.sleep(60)
dont know if its working
tell me asap
 
Custom Title Activated
Loyal Member
Joined
May 23, 2006
Messages
1,897
Reaction score
1
then post on the official l2j forum :/
 
Newbie Spellweaver
Joined
Jan 19, 2007
Messages
15
Reaction score
0
It just triggers "I have no task for you right now".
 
Status
Not open for further replies.
Back
Top