Yoko

All sides of Injection
It is currently 2024-03-28 12:14:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Improve!
PostPosted: 2009-03-22 15:40:24 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
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")))


Top
   
 Post subject:
PostPosted: 2009-03-22 17:04:09 
Offline

Joined: 2008-12-13 00:00:15
Posts: 174
uo.saveconfig()


Top
   
 Post subject:
PostPosted: 2009-03-22 20:34:53 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
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!


Top
   
 Post subject:
PostPosted: 2009-03-22 20:41:47 
Offline
User avatar

Joined: 2008-09-12 05:07:34
Posts: 247
uo.skillval('Hiding',1) will show real skillval


Top
   
 Post subject:
PostPosted: 2009-04-06 16:02:59 
Offline

Joined: 2008-02-08 18:38:55
Posts: 40
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.


Top
   
 Post subject:
PostPosted: 2009-04-06 18:18:11 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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()

_________________
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.
Skype: d119060


Last edited by Destruction on 2009-04-06 18:35:56, edited 2 times in total.

Top
   
 Post subject:
PostPosted: 2009-04-06 18:31:15 
Offline

Joined: 2008-02-08 18:38:55
Posts: 40
oh Like in Pascal!


Top
   
 Post subject: Re:
PostPosted: 2019-03-05 18:43:40 
Offline
User avatar

Joined: 2019-02-28 06:18:05
Posts: 4
Millerbeer wrote:
uo.skillval('Hiding',1) will show real skillval


Thank you!!!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited