Page 1 of 1

Improve!

Posted: 2009-03-22 15:40:24
by Ever1x
I wrote a Recall script.

Code: Select all

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")))

Posted: 2009-03-22 17:04:09
by Successful
uo.saveconfig()

Posted: 2009-03-22 20:34:53
by Ever1x
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: Select all

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!

Posted: 2009-03-22 20:41:47
by Millerbeer
uo.skillval('Hiding',1) will show real skillval

Posted: 2009-04-06 16:02:59
by Everix
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.

Posted: 2009-04-06 18:18:11
by Destruction

Code: Select all

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


Code: Select all

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

Posted: 2009-04-06 18:31:15
by Everix
oh Like in Pascal!

Re:

Posted: 2019-03-05 18:43:40
by DvaKompota
Millerbeer wrote:uo.skillval('Hiding',1) will show real skillval


Thank you!!!