Admin/mod comment
Title fixed, moved to 'Scripts' section /
Rainoth
Scripts
How to make Tibia NPC with level requirement?
How to make Tibia NPC with level requirement?
1

Rainoth
Gaibro"[19] = {"Demon Guard [LvL 20]", pos={6323, 5714}, rot=270, image="npc3"},
if you don't know tell me and after this go down and past this code: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
Rainoth: Don't critic his english he is a guys who is learning english like a lot of players of cs2d and here he really needed help but i knew that he tryed as possible to talk well but you as a guys who know english try to help him,
Ryden: I have full rights to critic his English. I'd understand if it was below average like yours, however it's bad to the point that it makes people wonder what he wanted to say. If it's so bad, he shouldn't use translators and find a person who can write in understandable English. Also, I rewrote what he wanted so others would understand, how is that criticism?
Rainoth: Oh ok sorry, now i understood what you wanted to do
1
