• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Request rebirth counter

Marilyekon

New Member
Joined
Feb 23, 2010
Messages
47
Reaction score
0
Hello. I'm almost done with my Tibia server, but I only have one thing left. Compleate rebirth system. I allready got the npc that takes you back to level 8, but if you click onn the player i it would be nice to see like this "19:21 You See Zand Graz. He's an Elder Druid. He Have Prestiged xxx times" or something like that. Do anyone know how to create a script for it? If so, it would be great! Ofc i will rep+++
 
You see Narko (Level:300) he are master sorcerer (0 Rebirths).
Rebirth: Hi
Narko: rebirth
Rebirth: you are rebirth please relog
storage +1
You see Narko (Level:1) he are master sorcerer (1 Rebirth).
 
Take this script, and edit it with ur rebirth storage value:
Code:
 function onLook(cid, thing, position, lookDistance)
local quests = {1345, 2542, 30017, 2469, 2542, 6691, 5941, 3018, 2508, 2323, 7884, 5277, 2506, 6132, 2495, 15402, 8978, 7957, 26555, 8882, 7405, 10456, 7450, 26666, 5462}
local completed = {}
	if isPlayer(thing.uid) then
		for i = 1, #quests do
			if getPlayerStorageValue(thing.uid, quests[i]) > 0 then
				table.insert(completed, 1)
			end
		end
		doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " has completed ".. #completed .. "/" .. #quests .. " quests")
		doPlayerSendTextMessage(cid, 27, getPlayerName(thing.uid) .. " has completed " .. #completed .. "/" .. #quests .. " quests.")
	end
return true
end
 
Back
Top