Improve!

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Ever1x
Posts: 38
Joined: 2009-02-09 17:12:23

Improve!

Post 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")))
Successful
Posts: 174
Joined: 2008-12-13 00:00:15

Post by Successful »

uo.saveconfig()
Ever1x
Posts: 38
Joined: 2009-02-09 17:12:23

Post 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!
Millerbeer
Posts: 247
Joined: 2008-09-12 05:07:34

Post by Millerbeer »

uo.skillval('Hiding',1) will show real skillval
Everix
Posts: 40
Joined: 2008-02-08 18:38:55

Post 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.
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post 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()
Last edited by Destruction on 2009-04-06 18:35:56, edited 2 times in total.
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Everix
Posts: 40
Joined: 2008-02-08 18:38:55

Post by Everix »

oh Like in Pascal!
DvaKompota
Posts: 4
Joined: 2019-02-28 06:18:05

Re:

Post by DvaKompota »

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


Thank you!!!
Post Reply