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
Exiva and when to close xlog
#1
Hi,

For you guys that know Lua, is it possible to make script exiva some person and if he is closer than far or something it will xlog?

Thanks!
Reply

#2
Hello.

Please, post on the correct section. Because you are requesting a script for Classictibia Bot, which is not the bot that you bought license time. So the LUA script may be different for each one, small differences that would not work.

Well, it's possible.

You must have channel that the exiva's result shows up selected (e.g.: default, server log, etc.). I didn't tested this script, but should work:
local Player = 'blah blah' --Players name.

if mp() >= 20 and cancast() then
    getnewmessages()
    cast('exiva "' .. Player .. '"')
    wait(500, 1000)
    local messages = getnewmessages()
    local player_lower = Player:lower()
    for _, msg in ipairs(messages) do
        if msg.type == 6 then
            local msg_lower = msg.content:lower()
            if string.find(msg_lower, player_lower) ~= nil and (string.find(msg_lower, 'is standing next to you') ~= nil or string.find(msg_lower, 'is to the') ~= nil) then
                xlog()
                break
            end
        end
    end
end
Reply

#3
Thank you! And sorry for posting wrong.
Reply

#4
this doesn't seem to work get this error 12:16:57 - 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:Cavebot/Action:#exiva: 9: '<name>' expected near ','
Reply

#5
Hello.

The script works perfectly fine. I suggest you to check you are copying it properly and also if you did any changes, because you did something wrong.
Reply

#6
you're 100% correct, sorry man
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016