Hello i got script here:
And here i got problem, i copied it from safe bank for my script.
local npcname = 'Olrik'
local index = 0
local msgs = getnewmessages("NPCs")
local qtd = msgs.count-1
for i=0,qtd do
if msgs[qtd].sender == npcname and msgs[qtd].text:find("How lucky you are") and msgs[qtd].type == 5 then
setcavebot('on') wait(1000) setsettings("Settings\\Actions\\List\\Settings5\\Enabled", "no")
If npc dont say 'How lucky you are' it says "yes" to npc.
But if npc say 'How lucky you are' on the first time bot say yes to npc 10 times instead of 1, when i was unlucky and npc said How lucky you are like in 60 time bot was saying 'yes' for 8 minutes -.-
Can somebody explain what means that type == 5 and how that script work?