Results 1 to 3 of 3

Thread: if npc say then gotolabel

  1. #1
    iBot User
    Join Date
    Apr 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    if npc say then gotolabel

    i need scrypt if npc("Grizzly Adams") say"blablabla" then gotolabel("start") else gotolabel("back")end

  2. #2
    Normal User jesusz0r's Avatar
    Join Date
    Jun 2012
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    Code:
    local index = 0 
    local msgs = getnewmessages("NPCs")
    local qtd = msgs.count-1
    
    for i=0,qtd do
       if msgs[qtd].sender == "Grizzly Adams" and msgs[qtd].text:find('Blablabla.') then
          gotolabel('start')
       else
          gotolabel('back')
       end
    end
    Last edited by jesusz0r; 07-31-2012 at 06:47 PM.

  3. #3
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    this is funny does it work
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

Posting Permissions

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