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
position checker and spear picking up
#1
Hi. Im looking for 2 scripts, havent found on forums.
First one is picking up spears after shot. I wanted to bot low paladin at trolls but option picking up spears on targeted position(after shot) in tools doesnt work. It loses a lot of spears without pickup. Is there any way to make it work corectly and even if bot doesnt pick up all spears do it after all is dead?

Second is like checking if current position is XYZ. If not go to label "XXXX". I need to do cavebot at places where are doors on the way.
I used this in elfbot - if bot checked that he didnt reach good position he was going back few WPTS to try again(for example he would try to open door for the second time). I hope I explained well enough
|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" />

Aaa, one more question.
Its totally clear for me to do gold depositer, but how to do ammo(bolts) refiller? Is it possible to let bot buy up to 100 free cap or something like that?
Reply

#2
Hello.

1. Spear Pickup already exists on forums, for another Classictibia Bot but should work on Mastercores OTBot if you change spear id and such, but i don't provide support for it.

2. You could use:
islocation(optional number range) [boolean] Returns true if the action script is executed at the location where the action waypoint was set and false otherwise. If the optional parameter range is specified, return true/false if you are standing within range tiles of the waypoint location in x or y.
islocationxyz(number X, number Y, number Z, optional number range) [boolean] Returns true if the action script is executed at the location within range.
Or just check your pos x/y/z using posx(), posy() and posz().

Example:
if not islocation(3) then
     gotolabel('go_door')
end

if not islocationxyz(12345, 12345, 6, 3) then
     gotolabel('go_door')
end

if posx() ~= 12345 or posy() ~= 12345 or posz() ~= 6 then
     gotolabel('go_door')
end


Yeah, it's possible. You can find this script here:
|Only Registered members can see download links. | Click here to buy subscription or here to register.

It's all about doing math, checking your current capacity and dividing by the weight of each ammunition according to the total amount you want to take.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016