| Yoko http://forum.yoko.com.ua/ |
|
| Healing Help http://forum.yoko.com.ua/viewtopic.php?f=20&t=945 |
Page 1 of 1 |
| Author: | Admeral [ 2004-07-22 18:38:19 ] |
| Post subject: | Healing Help |
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 |
|
| Author: | Thdin [ 2004-08-01 01:14:30 ] |
| Post subject: | |
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... |
|
| Author: | Yoko [ 2004-08-01 10:19:30 ] |
| Post subject: | Re: Healing Help |
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] |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|