plese help and thank
Forum
CS2D Scripts how to reset my lv in the tibiahow to reset my lv in the tibia
9 replies 1
plese help and thank
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[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
I no tested , have error? say me '-' , line error and line script
thank you but i cant see my 1 lv at HUD it is 2513 lv
but already i can be 1 lv but need rejoin sorry for my bad english
and the fix:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
then i thank @ pbeloto: the Hud can see my lv now
bye
go to cs2d folder
and
sys/lua/cs2dtibia/saves/players.lua
And search your usgn id and then in your usgn id line search experience and then put your experience to 0
And after search level and put it on 1
And save it and go to cs2d tada!
Enjoy!
Pm-For any tibia helps
1