Results 1 to 2 of 2

Thread: Can somebody explain me something?

  1. #1

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5

    Can somebody explain me something?

    Hello i got script here:
    Code:
    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")
    else
    npcsay("yes") wait(1000)
       end
    end
    And here i got problem, i copied it from safe bank for my script.
    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?

  2. #2
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    This is not a safebank action, this action will set cavebot on if you get message "how lucky you are" on the npc channel, from npc called Olrik, else it will say type "yes". I really dont get what its supposed to do for real tho xD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •