1
[19] = {"Demon Guard [LvL 20]", pos={6323, 5714}, rot=270, image="npc3"},
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
NPCs[19].func = function(npc, id, words, state)
if words == "hi" then
NPCspeak(npc, "You want cross the bridge ?")
NPCspeak(npc, "You also have to be at least level 20.")
PLAYERS[id].tmp.npcstate = {npc, 1}
elseif contains(words, "bye") then
NPCspeak(npc, "Not crossing?")
PLAYERS[id].tmp.npcstate = nil
elseif state == 1 then
if contains(words, "yes") then
if PLAYERS[id].Level < 20 then
parse("setpos " .. id .. " 2288 352")
else
NPCspeak(npc, "Your level isn't high enough!")
end
elseif contains(words, "no") then
NPCspeak(npc, "Not crossing?")
PLAYERS[id].tmp.npcstate = nil
end
end
end