• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[help] Saying the same words to NPC...

Serginov

Onkonkoronkonk
Joined
Jun 28, 2008
Messages
1,321
Reaction score
18
Location
Sweden - Dalarna
Okay, So I need help with a quest NPC... :p


Player: Hi
NPC: hello
Player: mission
NPC: i have a mission for you, repair my chair

The player does what the NPC have told him.

Player: Hi
NPC: hello
Player: mission
NPC: So you repaired my chair?
Player: yes

Player gets reward.

Player: Hi
NPC: hello
Player: mission
NPC: Yea, I have another mission for you, repair my table!

Player does what the NPC told him..

And so on..

So you can say mission multi times and he say different if you repaired his things.. :p
 
PHP:
local talk_state = 0
if msgcontains(msg, 'mission') and talk_state == 0 then
    selfSay('hehehehe men, mission one!')
elseif msgcontains(msg, 'mission') and talk_state == 1 then
    selfSay('wtf loAl n0t m0re blz')
end

or...

PHP:
local storage = getPlayerStorageValue(cid, 9090)
if msgcontains(msg, 'mission') and storage == -1 then
    selfSay('hehehehe men, mission one!')
elseif msgcontains(msg, 'mission') and storage == 1 then
    selfSay('wtf loAl n0t m0re blz')
end
 
Back
Top