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
closed/open traps hunting.
#1
Hello!

Could you help me come up with a script that makes it easier for hunting with closed/open traps?

Once the player is standing on a closed trap, simply open it.


|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" />

Thanks in advance!
Reply

#2
The deal is, what if the player stays closing the trap... Should Bot keep trying to open it? They will notice you are botter because you will run away and they close trap, so script come back to open and leave, then they open again and script go back, etc.
Reply

#3
I was actually thinking just to use this script when I'm playing legit. I just want it to be easier to run around in circles with like 9 traps and a monster chasing me.

Once I'm standing on a tile with a closed trap i just want it to open.
Reply

#4
Hello.

Try this code, but you must setup CLOSE_TRAP_ID with the id of closed trap. This script will search for closed traps on the sqm that you are standing at and use them (so open).
local CLOSE_TRAP_ID = 123

local player_x = posx()
local player_y = posy()
local player_z = posz()

local item_tile = topitem(player_x, player_y, player_z, false)
if item_tile.id == CLOSE_TRAP_ID then
    useitem(CLOSE_TRAP_ID, ground(player_x, player_y, player_z))
    wait(300, 500)
end
Reply

#5
The part that doesn't work is: "useitem(CLOSE_TRAP_ID, ground(player_x, player_y, player_z))"
I replaced it with "print('standing on a closed trap')" and it does indeed recognize the trap.


I've read your
|Only Registered members can see download links. | Click here to buy subscription or here to register.

and it says 'useitem(string/number item, string location) [void]: Use an item located inside your containers or inventory.'
^
the trap is located on the ground
Reply

#6
Hello.

Yeah, the function description is work and i just fixed it. It works with ground() function or using 2, 3 and 4th parameters as x/y/z location, because there internal verification's that checks that.

I'm pretty sure the first code works, but try this as well:
local CLOSE_TRAP_ID = 123

local player_x = posx()
local player_y = posy()
local player_z = posz()

local item_tile = topitem(player_x, player_y, player_z, false)
if item_tile.id == CLOSE_TRAP_ID then
    useitem(CLOSE_TRAP_ID, player_x, player_y, player_z)
    wait(300, 500)
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016