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
Request if player on screen SHOOT ITEM X on X SQM...
#1
Sorry for that ammount of requests,
but I'm doing some good scripts, and ill share with community =)

my script request:

1.if player on screen (except safelist) go to X label..
2.if player on screen drop X item on Y sqm.  
3.if health lowern than X% drop item X on Y sqm.
4.if no player on screen (except safelist) go to X label.



thanks.
Reply

#2
Hello.

1. If you use this code in Persistents, it will always be sending to that label, unless you add a piece of code to disable it or a check to see which label it is on and don't use gotolabel if it's already on this label.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?

if paroundignore(Range, Multifloor , table.unpack(Safelist)) > 0 then
     gotolabel('label_name')
end

So you would need to use a check like this... Let's say that "label_name" has id #50 (you can check that number on cavebot) and after going to "label_name" it would walk on 3 waypoints, so from 50 to 53. So you make a check to don't let this code send you to "label_name" if are between label 50# and 53#.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?

if paroundignore(Range, Multifloor , table.unpack(Safelist)) > 0 and waypoint().id < 50 and waypoint().id > 53 then
     gotolabel('label_name')
end


2.
if paround() > 0 then
     moveitems('gold coin', ground(posx(), posy(), posz()), '', 100)
end

3.
if hppc() <= 30 then
     moveitems('gold coin', ground(posx(), posy(), posz()), '', 100)
end

4. Same problem as script #1.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?

if paroundignore(Range, Multifloor , table.unpack(Safelist)) == 0 then
     gotolabel('label_name')
end

So you would need to use a check like this... Let's say that "label_name" has id #50 (you can check that number on cavebot) and after going to "label_name" it would walk on 3 waypoints, so from 50 to 53. So you make a check to don't let this code send you to "label_name" if are between label 50# and 53#.
local Safelist = { 'player', "player'two", 'third' }
local Range = 0 -- Range to detect players. 0 means entire screen.
local Multifloor = false -- Detect on different floor?

if paroundignore(Range, Multifloor , table.unpack(Safelist)) == 0 and waypoint().id < 50 and waypoint().id > 53 then
     gotolabel('label_name')
end
Reply

#3
Code:
if paround() > 0 then
moveitems('gold coin', ground(posx(), posy(), posz()), '', 100)
end


this code is not working,
00:28:34 - Core:Lua:ExecuteScript
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />oString
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Tongue" title="Tongue" class="smilie smilie_5" />ersistent03: 2: invalid arguments to method call
Reply

#4
Hello.

It's working just fine for me.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016