Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
action script request
#1
Hello, i need an script that use X item (inside my backpack) in X position, then... i need to pick up an item in same X position to my backpack, its possible?
for example: use Lump of Dough in oven, then collect the bread under the oven.[url=
|Only Registered members can see download links. | Click here to buy subscription or here to register.


Thanks for your support !
Reply

#2
Hello.

Requesting a Script on wrong section: You should request scripts on Scripts -> Requests section.
Moved to Scripts -> Requests.

local LOCATION = { X = 12345, Y = 12345, Z = 6 }
local ITEM_USE = 1234 -- Item id to use on ground.
local LOCATION_USE = 'red backpack' -- Container id, name or index where ITEM_USE is.
local ITEM_PICKUP = 4321 -- Item id to pickup from ground.
local LOCATION_PICKUP = 'red backpack' -- Container id, name or index where you will move ITEM_PICKUP to.

useitemon(ITEM_USE, LOCATION.X, LOCATION.Y, LOCATION.Z, LOCATION_USE) -- use item 1234 on x, y, z
wait(1000)
local topitem_id = topitem(LOCATION.X, LOCATION.Y, LOCATION.Z, false).id
if topitem_id == ITEM_PICKUP then
     moveitems(ITEM_PICKUP, LOCATION_PICKUP, ground(LOCATION.X, LOCATION.Y, LOCATION.Z), 100)
     wait(1000)
end

If you don't know the item id that you will pickup from floor...
local LOCATION = { X = 12345, Y = 12345, Z = 6 }
local ITEM_USE = 1234 -- Item id to use on ground.
local LOCATION_USE = 'red backpack' -- Container id, name or index where ITEM_USE is.
local LOCATION_PICKUP = 'red backpack' -- Container id, name or index where you will move ITEM_PICKUP to.

useitemon(1234, LOCATION.X, LOCATION.Y, LOCATION.Z, LOCATION_USE) -- use item 1234 on x, y, z
wait(1000)
local topitem_id = topitem(LOCATION.X, LOCATION.Y, LOCATION.Z, false).id
if topitem_id > 100 then
     moveitems(topitem_id, LOCATION_PICKUP, ground(LOCATION.X, LOCATION.Y, LOCATION.Z), 100)
     wait(1000)
end
Reply

#3
Thank you so much!
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016