Results 1 to 5 of 5

Thread: Message finding

  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

    Message finding

    Hello i want to do small script with npc
    If npc DONT say 'x' i do npcsay("Yes")
    need this to some scripts! thank

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    what............... What do you mean?

  3. #3

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5
    I want action that find message x on NPC's chat and if the npc dont say x i do npcsay("yes")
    it's easy but i didnt do any scripts like that and i dont know how to move on.
    Cuz on postman mission is 7 mission that i have to play dice with npc olrik and when i roll up 6 i can go to next npc.
    I can do easier way do 100 times npcsay("yes") but it dont make sense if im luck and pick up 6 on the first time.

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Just copied the screenshot action, dunno if it works.

    PHP Code:
    while getnewmessages("NPCs").text:find(message) == do
        
    npcsay('yes')
    end 
    message = replace with the message you want to recieve to stop saying yes.

  5. #5

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

Posting Permissions

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