Forum

> > CS2D > Scripts > how to reset my lv in the tibia
Forums overviewCS2D overview Scripts overviewLog in to reply

English how to reset my lv in the tibia

9 replies
To the start Previous 1 Next To the start

old how to reset my lv in the tibia

PlayerQ
User Off Offline

Quote
Hello i need to reset my lv at the NPC
like this >

plese help and thank

old Re: how to reset my lv in the tibia

pbeloto
User Off Offline

Quote
'-'

1
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

old Re: how to reset my lv in the tibia

Necr0
User Off Offline

Quote
you could also just kill a monster

and the fix:
More >

old Re: how to reset my lv in the tibia

pbeloto
User Off Offline

Quote
Fixed. no tested erro say me for pm or porst.

1
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

old Re: how to reset my lv in the tibia

eduxd0707
BANNED Off Offline

Quote
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
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

old Re: how to reset my lv in the tibia

Ryden
User Off Offline

Quote
Oh easy metter man

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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview