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 If player appears and don't leave, start talking!
#1
local SafeList = { 'Player1', 'player2', 'pk3'}
local TextsSay = {
  { 'hello', 'hi', '^^', ':)' }, -- FIRST message, It's gonna say one of those things by random.
  { 'how can i help you?', 'sup mate', 'do you need something?' }, -- SECOND message, It's gonna say one of those things AFTER FIRST MESSAGE by random.
  { 'do you mind?', 'tell me', 'mind?' }, -- THIRD message, It's gonna say one of those things AFTER SECOND MESSAGE by random.
  { 'im doing some stuff.', 'working..', 'doing stuff', 'homework :s' }, -- FOURTH message, It's gonna say one of those things AFTER THIRD MESSAGE by random.
  { 'it can be boring', 'you may lose some time', 'wasting time?' },
  { 'well, told you so', 'just said', 'well...' },
  { 'must change windows', 'alt tab', 'must check something' },
  { 'bye mate', 'bye :(', 'see ya' },
}

local Times =
{
   StartTalking  = 3000, -- Time to wait before START saying something IN milliseconds!
   BetweenMessages = 8000, -- Time to wait between says IN milliseconds!
}


--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]

table.lower(SafeList)

IGNORED_PLAYERS = IGNORED_PLAYERS or { }

local PlayersList = getcreatures('pfs')

local player_name = name()
local player_z = posz()

for _, player in ipairs(PlayersList) do
   if player.name ~= player_name and player.visible and player.posz == player_z and table.find(IGNORED_PLAYERS, player.name) == nil and table.find(SafeList, player.name:lower()) == nil then
       wait(Times.StartTalking)
       for TALK_INDEX = 1, #TextsSay do
           if paround(7, player.name) > 0 then
               local sortText = random(1, #TextsSay[TALK_INDEX])
               say(TextsSay[TALK_INDEX][sortText])
               wait(Times.BetweenMessages)
               if TALK_INDEX == #TextsSay then
                   table.insert(IGNORED_PLAYERS, player.name)
               end
           else
               break
           end
        end
   end
end
Reply

#2
Hello Arkilys.

Is this currently working on Retrocores? I've put this as a persistent every 1000ms, but the bot stopped doing everything as soon as another player showed on screen, as if it got stuck in an infinite loop.
Reply

#3
Hello.

Yes, the script works fine and there's no infinite loop there, but there are two delays:
local Times =
{
   StartTalking  = 3000, -- Time to wait before START saying something IN milliseconds!
   BetweenMessages = 8000, -- Time to wait between says IN milliseconds!
}

Every Persistent works independently of any other tool. Even if a Persistent runs a lua code that gets stuck in an infinite loop, Cavebot will not stop working, neither any other persistent.
The only reasons for a persistent stop working are: Lua code error, Pause Bot, Disable the persistent (too obvious xD) and infinite loop of its own script. The last will not exactly make it stop, but stuck.

I'm guessing that you are using Alerts->Player on Screen->Pause Bot and once it pauses bot, it stops the persistent as well.
Reply

#4
I receive


11:58:31 - 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:Talk: 380: bad argument #1 to 'ipairs' (table expected, got nil)
Reply

#5
Hello.

You have changed something on the script, because it's working.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016