Yoko

All sides of Injection
It is currently 2026-02-16 16:29:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Macro test.
PostPosted: 2004-07-28 21:13:48 
Offline

Joined: 2004-07-06 07:03:29
Posts: 22
Hail.

I can get the text that is in a gump ? When i use the command "infogump" its show the info of the gump ( duh ), and show something like

TEXT
1 ) Bla bla bla
2 ) BLE BLE BLE
4 ) XX


xx is a number, i need just say that number to pass in the macro check...
its possible ?

sorry my enlgish


Top
   
 Post subject:
PostPosted: 2004-07-28 22:39:01 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
luckily to you now yes
not so long ago some user paid few bucks to make such feature so now it is awailable

uo.lastgump("text",4)


Top
   
 Post subject:
PostPosted: 2004-08-11 16:07:00 
Offline

Joined: 2004-08-11 16:01:05
Posts: 2
Hey Yoko.. Proggy is great btw


Are you pullin the piss in this post? LOL ;)

If not.. where can we download this Gump version? I downloaded the one on your site, but it rekons the UO.lastgump() function does not exist!!

Help would be appreciated.

Thank You.


Top
   
 Post subject:
PostPosted: 2004-08-14 15:59:38 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
it muŃ–t be posted many days already at yoko.netroof.net


Top
   
 Post subject:
PostPosted: 2004-11-22 16:14:35 
Offline

Joined: 2004-11-22 16:12:44
Posts: 4
Yoko. you are great. i was waiting this function since my 100% in fishing. now i know how to do a loooooooot of money with sos bottle. thanx thanx thanx.


Top
   
 Post subject:
PostPosted: 2005-02-10 12:10:35 
Offline

Joined: 2004-11-22 16:12:44
Posts: 4
that's the script.




var f = file("c:\personal.map")
var secure = "0x5869C707"


sub main()
open_file()
empty_bottle()
read_maps()
close_file()
end sub

sub open_file()
f.open()
f.writeln("3")
end sub

sub close_file()
f.close()
end sub

sub read_maps()
while uo.count("0x14ED") > 0
read_put()
write_coord()
wend
end sub

sub write_coord()
var testo = UO.lastgump("text",1)
var coord = ""
for var i = 0 to (STRLEN(testo)-1)
if (testo[i] >= "0") and (testo[i] <= "9") then
coord = coord + testo[i]
end if
if testo[i] == "," then
coord = coord + " "
end if
next

testo = UO.lastgump("text",2)
for i = 0 to (STRLEN(testo)-1)
if (testo[i] >= "0") and (testo[i] <= "9") then
coord = coord + testo[i]
end if
if testo[i] == "," then
coord = coord + " "
end if
next

f.writeln("-point of interest: "+coord+" 1 tesoro")

end sub




sub read_put()
uo.findtype("0x14ED")
UO.useobject("finditem")
wait(500)
UO.LDblClick(154,157)
wait(500)
UO.setreceivingcontainer(secure)
wait(500)
UO.grab(1,"finditem")
wait(500)
UO.unsetreceivingcontainer()
end sub


sub empty_bottle()
while uo.count("0x099F") > 0
uo.usetype("0x099F")
wait(100)
wend
end sub


Top
   
 Post subject:
PostPosted: 2005-02-11 01:45:58 
Offline

Joined: 2004-11-22 16:12:44
Posts: 4
i'm italian :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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