Request Script

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
silentwolf83
Posts: 3
Joined: 2005-06-23 22:41:00

Request Script

Post 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

8)
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

And what is a bagball? :) '
silentwolf83
Posts: 3
Joined: 2005-06-23 22:41:00

Post 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 :P
I'm
Expert!
Posts: 1396
Joined: 2004-10-15 22:38:04
Location: Moscow City.
Contact:

Post by I'm »

to flake in russian
обычный скрипт на облдожку я так понял :)
Askaneli
Sphere expert
Posts: 1143
Joined: 2004-10-01 08:27:38
Location: Уфа

Post by Askaneli »

А я нифига ничего не понял.
Сделал дело - флуди смело !!!
I'm
Expert!
Posts: 1396
Joined: 2004-10-15 22:38:04
Location: Moscow City.
Contact:

Re: Request Script

Post 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
отсюда я сделал сей вывод :wink:
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Ex
Posts: 11
Joined: 2004-06-05 00:16:33
Contact:

Post 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
silentwolf83
Posts: 3
Joined: 2005-06-23 22:41:00

Post by silentwolf83 »

tnks ^_^

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