Page 1 of 1
Request Script
Posted: 2005-06-24 12:03:28
by silentwolf83
HI all!
I'm new in this forum, so , sorry if i have made this topic in a wrong location.
I wanna make a script to 'close' a pg with bagball (for example after a parablow move) but i'm not very able in scripting.
I have found a script that drop one or more bagball, but in the same tile (to make, for example, 'wall' of balls)
How can i make a script that drop bagballs around my last target to block him?
Thanks

Posted: 2005-06-24 12:24:21
by flake
And what is a bagball?

'
Posted: 2005-06-24 12:31:49
by silentwolf83
flake wrote:And what is a bagball?

'
an object like a containar [UO.FindType('0x2256')]
i can change the type ^^'
->> so insert a type check, to make possible to change the object for different situation

Posted: 2005-06-24 13:47:54
by I'm
to flake in russian
обычный скрипт на облдожку я так понял

Posted: 2005-06-24 13:49:16
by Askaneli
А я нифига ничего не понял.
Re: Request Script
Posted: 2005-06-24 13:53:53
by I'm
silentwolf83 wrote:I wanna make a script to 'close' a pg with bagball (for example after a parablow move) but i'm not very able in scripting.
I have found a script that drop one or more bagball, but in the same tile (to make, for example, 'wall' of balls)
silentwolf83 wrote:How can i make a script that drop bagballs around my lasttarget to block him?
in russian
отсюда я сделал сей вывод

Posted: 2005-06-24 15:39:36
by flake
Posted: 2005-06-24 16:22:43
by Ex
Code: Select all
sub bagball()
var bagball='0x0000' ;bagball's type
uo.FindType(bagball, -1)
if UO.GetQuantity('finditem')>0 then
uo.Drop('1', Str(uo.GetX('last')-1), Str(uo.GetY('lastattack')), Str(uo.GetZ('lastattack')), 'finditem')
wait(600)
else
UO.Print('No bagball')
end if
uo.FindType(bagball, -1)
if UO.GetQuantity('finditem')>0 then
uo.Drop('1', Str(uo.GetX('lastattack')+1), Str(uo.GetY('lastattack')), Str(uo.GetZ('lastatack')), 'finditem')
wait(600)
else
UO.Print('No bagball')
end if
uo.FindType(bagball, -1)
if UO.GetQuantity('finditem')>0 then
uo.Drop('1', Str(uo.GetX('lastattack')), Str(uo.GetY('lastattack')-1), Str(uo.GetZ('lastattack')), 'finditem')
wait(600)
else
UO.Print('No bagball')
end if
uo.FindType(bagball, -1)
if UO.GetQuantity('finditem')>0 then
uo.Drop('1', Str(uo.GetX('lastattack')), Str(uo.GetY('lastattack')+1), Str(uo.GetZ('lastattack')), 'finditem')
wait(600)
else
UO.Print('No bagball')
end if
end sub
Posted: 2005-06-24 17:11:30
by silentwolf83
tnks ^_^
i will try this, it seems to work well
