Yoko
http://forum.yoko.com.ua/

Stand by script
http://forum.yoko.com.ua/viewtopic.php?f=20&t=575
Page 1 of 1

Author:  lixo [ 2004-06-16 02:46:06 ]
Post subject:  Stand by script

I have tried many times to make my script stay in "stand by". When a certain phrase appears in the journal, my character should do an action.

ex: with the script already running, if i say $, my char casts in lor on me

Author:  Lord Ruslan Nightmare [ 2004-06-16 10:51:27 ]
Post subject: 

Code:
uo.deletejournal()
while 1
  var cmd = " cast on me " #syntax - <name> cast on me <spell>
  var index = uo.injournal(cmd)
  var s = uo.journal(index)
  var myname = uo.getname()
  if index and index == uo.injournal(myname) then
    uo.waittargetobject(uo.journalserial(index))
    uo.exec("cast " +right(s,len(s)-len(myname)-len(cmd)))
    wait(3000)
  endif
  wait(50)
wend

Author:  Yoko [ 2004-06-16 15:03:12 ]
Post subject: 

wait(50) after while or before wend, elsewhere script will cause lags (empty cycle)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/