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

Improve!
http://forum.yoko.com.ua/viewtopic.php?f=20&t=14586
Page 1 of 1

Author:  Ever1x [ 2009-03-22 15:40:24 ]
Post subject:  Improve!

I wrote a Recall script.
Code:
sub GetIdRune()
uo.exec('addobject Rune')
while uo.targeting()
wait(100)
wend
uo.setglobal('RRune','Rune')
end sub

sub Recall()
var Rune
Rune=UO.GetGlobal('RRune')
uo.cast('Recall','Rune')
wait(200)
if uo.injournal("see the target") then
uo.waittargettype('0x1F14')
uo.cast('Recall')
uo.deletejournal()
end if
end sub


Is it able to somehow save recall runes id?
If uo crashes, then runes id disapears.
---------------------------------------------------
Didn't want to make a new theard, but what
does this mean?
Uo.waittargettile("400",str(Uo.getx("lasttarget")),str(Uo.gety("lasttarget")),str(Uo.getz("lasttarget")))

Author:  Successful [ 2009-03-22 17:04:09 ]
Post subject: 

uo.saveconfig()

Author:  Ever1x [ 2009-03-22 20:34:53 ]
Post subject: 

what is that 400? and I don't know how to use uo.saveconfig!

I have a question.

Is it possible to get real skillval?

Code:
sub Hidonly() 
   if uo.skillval('Hiding') == 1075 then
      uo.print('Your hiding skill is 100.0')
   else
      uo.print('your hiding skill isn`t 100.0')
   end if
endsub


I have real skill value of hiding 100.0 and fake 107.5, when i execute this script it prints Your hiding skill is 100.0!

Author:  Millerbeer [ 2009-03-22 20:41:47 ]
Post subject: 

uo.skillval('Hiding',1) will show real skillval

Author:  Everix [ 2009-04-06 16:02:59 ]
Post subject: 

I know that It's possible to take ScreenShot with Injection, but is it possible to Create txt or other Text document and edit with injection?

Create txt-> Write Down a Variable in txt -> Save Changes
Load txt -> Load information from txt -> use that information.

Author:  Destruction [ 2009-04-06 18:18:11 ]
Post subject: 

Code:
var f = file( 'myfile.txt' )
f.create()
f.open()
f.writeLn( 'Hello World!' )
f.writeLn( 'Number 123' )
f.close()


Code:
var f = file('myfile.txt')
f.open()
repeat
   f.readLn()
   f.readString()
   f.readNumber()
until f.eof()
f.close()

Author:  Everix [ 2009-04-06 18:31:15 ]
Post subject: 

oh Like in Pascal!

Author:  DvaKompota [ 2019-03-05 18:43:40 ]
Post subject:  Re:

Millerbeer wrote:
uo.skillval('Hiding',1) will show real skillval


Thank you!!!

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