Yoko

All sides of Injection
It is currently 2026-01-16 20:14:05

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Healing Help
PostPosted: 2004-07-22 18:38:19 
Offline

Joined: 2004-04-13 19:05:40
Posts: 40
I Was tring to make this script wear 3 cursed items and now it says line 390 variable undefined - Shirt
but in line 390 i got this: UO.equipt(pants,pan)
here is the script help me please


sub healing()
VAR bandage = 0x0E21 ; Clear Bandages
VAR bloodbandages = 0x0E20 ; Bloody Bandages
VAR washbasin = 0x1008 ; Wash Basin
VAR eda = 0x097B ; Food
VAR hide = 0 ; If Hiding
VAR shi = 0x1517 ; Shirt
VAR sho = 0x1711 ; Shoes
Var pan = 0x1539 ; Pants
Var Strength

Strength=UO.Life
repeat
uo.usetype(eda)
if hide==1 then
While not UO.Hidden()
UO.Print("Hiding...")
UO.UseSkill('Hiding')
Wait(5000)
WEnd
end if
UO.Print("Wearing Curse...")
UO.equipt(shirt,shi)
UO.equipt(shoes,sho)
UO.equipt(pants,pan)

repeat
wait(200)
until UO.Life<Strength
UO.Print("Unwearing Curse...")
UO.unequip (shirt)
UO.unequip (shoes)
UO.unequip (pants)
while UO.Life<Strength and UO.Count("bandage")>0
UO.Print("Healing...")
UO.Exec("bandageself")
wait(5000)
WEnd
wait(500)
while UO.Count("bloodbandages")>0
UO.Print("Washing Bandages...")
uo.usetype("bloodbandages")
uo.waittargettype("washbasin")
wait(500)
WEnd
until UO.Count("bandage")==0 AND UO.Count("bloodbandages")==0
UO.Print("Out Of Bundages!")
end sub


Top
   
 Post subject:
PostPosted: 2004-08-01 01:14:30 
Offline

Joined: 2004-07-22 07:37:37
Posts: 51
You're better off adding each clothing type as an actual object and then using:

UO.Equip("myShirt")

That way it uses prefined objects in Injection instead of relying on graphics or itemtype. What if you had 2 shirts in your pack? UO.Equipt() would choose a random one...


Top
   
 Post subject: Re: Healing Help
PostPosted: 2004-08-01 10:19:30 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
Admeral wrote:
I Was tring to make this script wear 3 cursed items and now it says line 390 variable undefined - Shirt
UO.unequip (shirt)
UO.unequip (shoes)
UO.unequip (pants)


it tells that variable is undefined because it IS undefined.
here must be string defining [yhlp_layer]


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 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