plese help
and thank
Scripts
how to reset my lv in the tibia
how to reset my lv in the tibia
1

and thank [1] = {"Federigo", pos={2448 ,1331}, rot=0, image="npc3"},
NPCs[1].func = function(npc, id, words, state)
	if words == "hi" then
		NPCspeak(npc, "Do you want to reset your lvl?.")
		PLAYERS[id].tmp.npcstate = {npc, 1}
	elseif contains(words, "bye") then
		NPCspeak(npc,"Goodbye.")
		PLAYERS[id].tmp.npcstate = nil
	elseif state == 1 then
		if contains(words, "yes") then
			message(id, "You level reseted", "255255000")
			PLAYERS[id].Level = 0
			PLAYERS[id].Experience = 0
			PLAYERS[id].tmp.npcstate = nil
		elseif contains(words, "no") then
			NPCspeak(npc, "OK!, bye")
			PLAYERS[id].tmp.npcstate = nil
		end
	end
end
pbeloto:
but i cant see my 1 lv at HUD
it is 2513 lv[1] = {"Federigo", pos={2448 ,1331}, rot=0, image="npc3"},
NPCs[1].func = function(npc, id, words, state)
if words == "hi" then
NPCspeak(npc, "Do you want to reset your lvl?.")
PLAYERS[id].tmp.npcstate = {npc, 1}
elseif contains(words, "bye") then
NPCspeak(npc,"Goodbye.")
PLAYERS[id].tmp.npcstate = nil
elseif state == 1 then
if contains(words, "yes") then
message(id, "You level reseted", "255255000")
PLAYERS[id].Level = 0
PLAYERS[id].Experience = 0
PLAYERS[id].tmp.npcstate = nil
			updateHUD(id)
elseif contains(words, "no") then
NPCspeak(npc, "OK!, bye")
PLAYERS[id].tmp.npcstate = nil
end
end
end
NPCs[31].func = function(npc, id, words, state)
if words == "hi" then
NPCspeak(npc, "Greetings! Say 'reset' if you need to reset your level.")
PLAYERS[id].tmp.npcstate = {npc, 1}
elseif contains(words, "bye") then
NPCspeak(npc, "Goodbye.")
PLAYERS[id].tmp.npcstate = nil
elseif state == 1 then
if contains(words, "reset") then
NPCspeak(npc, "Would you like to reset your level for $10?")
PLAYERS[id].tmp.npcstate = {npc, 2}
end
elseif state == 2 then
if contains(words, "yes") then
if addmoney(id, -10) then
message(id, "You have lost $10.", "255255255")
PLAYERS[id].Level = 1
PLAYERS[id].Experience = 1
updateHUD(id)
NPCspeak(npc, "Enjoy!")
PLAYERS[id].tmp.npcstate = nil
else
NPCspeak(npc, "Don't try to reset without paying!")
PLAYERS[id].tmp.npcstate = nil
end
elseif contains(words, "no") then
NPCspeak(npc, "Alright then.")
PLAYERS[id].tmp.npcstate = nil
end
eduxd0707: but i fail your lua
pbeloto: the Hud can see my lv now
1
