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
MS/ED AoE: Area of Effect spells. Is it possible!?
#1
Exclamation 
Hello!

Is it possible for the bot to cast AoE spells on targets, similarly to the way ElfBot, Neobot, Ibot etc worked back then?

For example: Sorcerer hunting 1 Worker Golem, with Targeting set to Keep Away distance 3 . So The sorcerer is attacking the Worker Golem and always mantaining a distance of 3 SQM. Ok.

But is it possible?
1. Sorcerer runs away from the Worker GOlem to keep the 3 sqm distance.
2. Sorcerer turns towards the Worker Golem and tries to cast Energy Wave spell (exevo vis hur/exevo mort hur) and effectly hit the monster.
3. Sorcerer keeps running away from monster to maintain 3 sqm distance.
4. Sorcerer turns towards the monster, at 2+ SQM distance and tries to cast energy wave spell again to effectively hit the monster.
(...)

I know OtBot works for runes: GFB on target, for example. But what about spells???


In Elfbot, for example, there was a hotkey command that would attack the target with energy wave(exevo vis hur/exevo mort hur) whenever the target would be in enough area to be hit (take damage):
|Only Registered members can see download links. | Click here to buy subscription or here to register.



is there something similar for Otbot?

Thanks in advance!

#2
A quick search on LUA Functions & Variables thread would be enough to find such a function, since you are asking for a lua script.
|Only Registered members can see download links. | Click here to buy subscription or here to register.


Don't get me wrong, I don't mind helping, but it's really frustrating to see that people don't even try to search before asking.

castareaspell(string spell, number minCount, optional boolean canTurn, optional boolean checkPlayers, optional number priorityAttacked, optional string monsterNames ...) [boolean]: Try to cast wave/beam spells on at least min monsters.
string spell = spell words
number minCount = min amount monsters to cast spell
optional boolean canTurn = Should bot turn or just cast if on current direction?
optional boolean checkPlayers = check if player on screen then don't cast.
optional number priorityAttacked =
  • 0 -> Doesn't matter;
  • 1 -> Spell on any, but try focus on attacked creature;
  • 2 -> Spell on any, but focus on attacked creature if minimum amount;
  • 3 -> Only if hits attacked creature;
optional string monsterNames = Specific monsters to hit, leave as empty to hit any.

#3
WOW, thanks a lot, Arkilys!

I searched for a bit before I made this thread. Before, all I managed to find was these two, none of which satisfied my intention:
|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.


And I was using this (perhaps outdated) link to verify the Variables:
|Only Registered members can see download links. | Click here to buy subscription or here to register.

(And I didn't see the function "castareaspell")

The function you have showed though, that seems OP!! VERY NICE! I just haven't been able to figure out how to set it up properly yet

Is this link the most updated?
|Only Registered members can see download links. | Click here to buy subscription or here to register.


Thanks in advance!

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

I can't make it to work, it keeps giving me errors, under different codes :\

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" />ersistent01: 3: attempt to call global 'castareaspell' (a nil value)
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" />ersistent01: 1: attempt to call global 'castareaspell' (a nil value)
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" />ersistent01: 1: ')' expected near 'Wave'
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" />ersistent01: 3: '=' expected near 'castareaspell'
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" />ersistent01: 1: ')' expected near 'flam'

P.S. I'm using Nostalrius bot, not Realesta

#5
Hello.

This is Realesta OTBot -> Scripts -> Requests section, not Nostalrius OTBot.

The function above works only on Realesta, not on Nostalrius OTBot atm.



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016