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
My drop item script isn't working as intended
#1
Hi, I'm trying to drop conjured bolts on a tile when the stack reaches 100. I found this script using search, but it drags the bolts every time I conjure them and looks very bot-like.

How do I change this so it won't move the bolts until it sees a 100 stack?

local MIN_CAP = 100 -- Minimum cap to go drop item on location.
local ITEM = 'bolt' -- Item to drop on location.
local MAX_COUNT = 100 -- Maximum item count to go drop item on location.
local POSITION_DROP = { X = 123, Y = 123, Z = 7 } -- Location to drop item.

if cap() <= MIN_CAP or itemcount(ITEM) >= MAX_COUNT then
    moveitems(ITEM, ground(POSITION_DROP.X, POSITION_DROP.Y, POSITION_DROP.Z), '', 100)
end

I tried this also but still nothing
local MIN_CAP = 100 -- Minimum cap to go drop item on location.
local ITEM = 'bolt' -- Item to drop on location.
local COUNT = 100 -- Maximum item count to go drop item on location.
local POSITION_DROP = { X = 123, Y = 123, Z = 7 } -- Location to drop item.

if cap() <= MIN_CAP or itemcount(ITEM) >= COUNT then
    moveitems(ITEM, ground(POSITION_DROP.X, POSITION_DROP.Y, POSITION_DROP.Z), '', 100)
end
Reply

#2
Hello.

The script you posted is the correct one.
Both scripts will drop bolts on specified location if your CAP is lower or equal than 100 OR there are more than 100 bolts. It's very likely that you have less than 100 capacity and for that reason it's dropping bolts.
So if you don't wanna care about CAP then just setup a very low value like 0 or remove that verification.
local ITEM = 'bolt' -- Item to drop on location.
local COUNT = 100 -- Maximum item count to go drop item on location.
local POSITION_DROP = { X = 123, Y = 123, Z = 7 } -- Location to drop item.

if itemcount(ITEM) >= COUNT then
    moveitems(ITEM, ground(POSITION_DROP.X, POSITION_DROP.Y, POSITION_DROP.Z), '', 100)
end
Reply

#3
is there anyway to make it work like the runemaker ? ive tried this script but isnt working
Reply

#4
|Only Registered members can see download links. | Click here to buy subscription or here to register.

I'm not sure what you mean, but i'm thinking about making changes on runemaker to let it create ammos as well.
Reply

#5
its working!got it to work , but definitely would be easier if it had the options of ammo on the runemaker tab , that a good idea!
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016