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
FREE Player on Screen with List
#1
Hello.

This script will execute the options that you enabled (PlaySound, FlashClient, etc.) only if a player that's on the list appears.

local DangerList = { "Player1", "Player2", "Player3" }
local Action = {
    MultiFloor = true,    -- Should it detect player on different floors?
    Visible = false,      -- Does player must be visible? It can detect players one sqm OUT of your screen.
    PlaySound = false,    -- Should it PLAY SOUND if detect a player?
    FlashClient = false,  -- Should it FLASH CLIENT if detect a player?
    Logout = false,        -- Should it LOGOUT if detect a player?
    XLog = false,         -- Should it XLOG (it also tries to logout first!) if detect a player?
    PauseBot = false,     -- Should it PAUSE BOT if detect a player?
    LogPlayers = false,    -- Should it LOG every player that appears on your screen?
    PrintConsole = true,    -- Should it LOG every player that appears on your screen?
}


table.lower(DangerList)
local Creatures = getcreatures('p')

for i,j in pairs(Creatures) do
    if table.find(DangerList, j.name:lower()) ~= nil then
        if Action.MultiFloor or (Action.MultiFloor == false and j.posz == posz) then
            if Action.Visible == false or (Action.Visible and j.visible) then
                if Action.PrintConsole then
                    print(j.name)
                end
                if Action.LogPlayers then
                    file.writeline(name .. " - PlayersOnScreen", date .. " - " .. formattedtime .. ": " .. j.name)
                end
                if Action.PlaySound then
                    playsound("alert_playeronscreen")
                end
                if Action.FlashClient then
                    flashclient()
                end
                if Action.Logout then
                    logout()
                end
                if Action.XLog then
                    xlog()
                end
                if Action.PauseBot then
                    pausebot(true)
                end
            end
        end
    end
end
Reply

#2
@Arkilys

doesn't work
10:00:27 - 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="Tongue" title="Tongue" class="smilie smilie_5" />ersistent01: 5: '}' expected (to close '{' at line 2) near 'sqm'

check it please.
Reply

#3
14:11:58 - 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="Tongue" title="Tongue" class="smilie smilie_5" />ersistent01: 19: attempt to index field 'name' (a number value)
Reply

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

Check private.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016