PDA

View Full Version : Pick spear from bp whos on ground, to my hand



konishyapl
08-06-2016, 02:53 PM
Hello, i;m looking for the script who will pick some ammount royal spears, from opened ground bp, to my hand. Simply, but i rly dont know how to do it.

Thx for all helpers ;)

edit:
I;m standing on the bp, this bp is open need only script to move from THIS bp to hand, THX

Zingron
08-06-2016, 04:18 PM
Module.New('SpearToEq', function(moveSpear)
if (Self.Weapon().id ~= 3277) then
Self.Equip(3277,"weapon",20)
end
moveSpear:Delay(3000)
end)

konishyapl
08-07-2016, 12:49 PM
Thx u very much

konishyapl
08-08-2016, 11:31 AM
ok the problem is that script putting spear into my hand only when i dont have any spears there, how to change it to put these spears even if i will have some on my hand ?

konishyapl
08-08-2016, 11:41 AM
Module.New('SpearToEq', function(moveSpear)
if (Self.Weapon().id ~= 3277) then
Self.Equip(3277,"weapon",20)
end
moveSpear:Delay(3000)
end)


ok the problem is that script putting spear into my hand only when i dont have any spears there, how to change it to put these spears even if i will have some on my hand ?

Zingron
08-08-2016, 12:09 PM
Module.New('SpearToEq', function(moveSpear)
if (Self.Weapon().id ~= 3277 or Self.Weapon().count < 4) then
Self.Equip(3277,"weapon",(math.random(15, 20)))
end
moveSpear:Delay(3000)
end)

konishyapl
08-09-2016, 11:42 AM
thx again !

grzeniek1
12-11-2016, 09:54 PM
can you add function to OpenBPoGround x,y,z ?