Signup Now
Results 1 to 6 of 6
  1. #1
    Free User angelic's Avatar
    Join Date
    Dec 2013
    Posts
    87
    Reputation
    9
    Rep Power
    0

    Exclamation Need action check local msg

    i need action useitemon(17513, 0, ground($posx, $posy-1, $posz)), if local chat say "You successfully maintained the treadmill. It smoothly rotates on and on.."
    gotolabel(next)
    else
    gotolabel(tryAgain)

  2. #2
    Free User Akiller's Avatar
    Join Date
    Aug 2015
    Posts
    239
    Reputation
    33
    Rep Power
    18
    here:
    Code:
    local localsay = 'You successfully maintained the treadmill. It smoothly rotates on and on..'
    local a = false
    repeat
    	useitemon(17513, 0, ground($posx, $posy-1, $posz))
    	foreach newmessage m do
    		if m.content == localsay then
    			gotolabel(next)
    		end
    	end
    while a == true

  3. #3
    Free User angelic's Avatar
    Join Date
    Dec 2013
    Posts
    87
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Akiller View Post
    here:
    Code:
    local localsay = 'You successfully maintained the treadmill. It smoothly rotates on and on..'
    local a = false
    repeat
        useitemon(17513, 0, ground($posx, $posy-1, $posz))
        foreach newmessage m do
            if m.content == localsay then
                gotolabel(next)
            end
        end
    while a == true
    thx bro but not working ;/

  4. #4
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,769
    Reputation
    151
    Rep Power
    31
    change while to until, so that the last line is,
    until a = true

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  5. #5
    Free User angelic's Avatar
    Join Date
    Dec 2013
    Posts
    87
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by ozzix View Post
    change while to until, so that the last line is,
    until a = true
    now he changes waypoint but continues to use the item without stopping

  6. #6
    Free User Akiller's Avatar
    Join Date
    Aug 2015
    Posts
    239
    Reputation
    33
    Rep Power
    18
    after gotolabel() add break

 

 

Posting Permissions

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