Yoko
http://forum.yoko.com.ua/

Request Script
http://forum.yoko.com.ua/viewtopic.php?f=20&t=4298
Page 1 of 1

Author:  silentwolf83 [ 2005-06-24 12:03:28 ]
Post subject:  Request Script

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

8)

Author:  flake [ 2005-06-24 12:24:21 ]
Post subject: 

And what is a bagball? :) '

Author:  silentwolf83 [ 2005-06-24 12:31:49 ]
Post subject: 

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 :P

Author:  I'm [ 2005-06-24 13:47:54 ]
Post subject: 

to flake in russian
обычный скрипт на облдожку я так понял :)

Author:  Askaneli [ 2005-06-24 13:49:16 ]
Post subject: 

А я нифига ничего не понял.

Author:  I'm [ 2005-06-24 13:53:53 ]
Post subject:  Re: Request Script

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
отсюда я сделал сей вывод :wink:

Author:  flake [ 2005-06-24 15:39:36 ]
Post subject: 

Try this one:

http://yoko.netroof.net/forum/viewtopic ... ight=sheet

Author:  Ex [ 2005-06-24 16:22:43 ]
Post subject: 

Code:
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

Author:  silentwolf83 [ 2005-06-24 17:11:30 ]
Post subject: 

tnks ^_^

i will try this, it seems to work well :)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/