Hello!
I'm beginner in LUA, and I'd like to know how to make this work like this:
Player says boss -> "Are you sure you want..."
then player could say either "yes" or "no".
With this script it works if you say "boss" and then "boss yes" or "boss no".
I'm beginner in LUA, and I'd like to know how to make this work like this:
Player says boss -> "Are you sure you want..."
then player could say either "yes" or "no".
With this script it works if you say "boss" and then "boss yes" or "boss no".
Code:
elseif msgcontains(msg, "boss") then
if (getCreatureStorage(cid, bossStorage) == 23) then
selfSay("Are you sure you want to fight The Snapper?", cid)
if msgcontains(msg, "yes") then
does something....
elseif msgcontains(msg, "no") then
selfSay("Maybe later.", cid)
end
else
selfSay("You need to complete task first!", cid)
end
end
Last edited: