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
If Spears < x amount say spell x
#1
Could you please help me make script like this:


SpearID = 3277
SpearMin = 10
ManaAbove = 25
SpearSpell = 'exevo min con'

If SpearID < SpearMin and ManaAbove then SpearSpell end
Reply

#2
Hello.

Count from backpack.
local SpearID = 3277
local SpearMin = 10
local ManaAbove = 25
local SpearSpell = 'exevo min con'

if itemcount(SpearID) < SpearMin and mp() >= ManaAbove and cancast() then
    say(SpearSpell)
    wait(1000)
end

Count from backpack + left hand
local SpearID = 3277
local SpearMin = 10
local ManaAbove = 25
local SpearSpell = 'exevo min con'

if itemcount(SpearID, '', true) < SpearMin and mp() >= ManaAbove and cancast() then
    say(SpearSpell)
    wait(1000)
end

Count from left hand only.
local SpearID = 3277
local SpearMin = 10
local ManaAbove = 25
local SpearSpell = 'exevo min con'

local leftHandItem = lhand()
if (leftHandItem == nil or leftHandItem.id == 0 or (leftHandItem.id == SpearID and leftHandItem.count < SpearMin)) and mp() >= ManaAbove and cancast() then
    say(SpearSpell)
    wait(1000)
end
Reply

#3
it counts only from backpack could you change that it counts from left hand? thanks for fast answer
Reply

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

#5
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Works flawlessly thanks s2
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016