• 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] Prestige System NPC

Tjay

Retired Hoster
Joined
Nov 25, 2009
Messages
588
Reaction score
69
Location
Behind you. Look out!
I need a Prestige system that uses a npc. For example When your reach level 717k you can goto the Npc say prestige and it will start you back at level 100 but with a start hp/mana 1k/1k but it lets them keep there skills/magic level. And when you look at them 00:55 You see Player (Level 151081). He is an epic elder druid. 1st Prestiged. and if they got another it wud be 2nd and so on. if possible i would like one that goes at least to 15th prestige. Thanks.
Tjay
P.S. Not 100% if i posted in right forum sorry if i did.
 
A suggestion is to write everything that you want in your own language, go google translate. Translate all, and publish the translation here. =P Because I believe this is hard for people to read.
 
A suggestion is to write everything that you want in your own language, go google translate. Translate all, and publish the translation here. =P Because I believe this is hard for people to read.
What are you talking about? lol

And i know its been releashed ive seen it i just cant find it anymore lol. ive tried both here and otfans along with google.
 
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
-- OTServ event handling functions end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
 
local cost = 10
local lvl = 717000
	if msgcontains(msg, 'epic promotion') then
		if getPlayerItemCount(cid, 2160) >= cost then
			if getPlayerLevel(cid) >= lvl then
				if getPlayerPromotionLevel(cid) == 1 then
					selfSay('Do you want to be promoted to epic ?')
					talk_state = 1
				else
				selfSay('You must be promoted.')
				end
			else
			selfSay('You must have level ".. lvl .." or higher')
			end
		else
		selfSay('You have to pay ".. cost .." crystal coins.')						
talk_state = 0
end
 
elseif msgcontains(msg, 'yes') and talk_state == 1 then
talk_state = 0
if getPlayerItemCount(cid, 2160) >= cost then
if doPlayerRemoveItem(cid, 2160, cost) == TRUE then
 
selfSay('You are now promoted to epic.')
end
else
selfSay('You don\'t have money.')
end
 
elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 5) then
selfSay('Ok than.')
talk_state = 0
end
return true
end
 
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

not test but i think it's working ;p
 
In talkaaction, extrahp and extramana, arent really extra, they aare the base xDDD

So if you put 1000 in each one, players will have 1khealth and 1k mana xD

Hope i helped xd
 
I finally got one. But theres only one thing i want it to do and that is start with a base hp. instead of what the character previously had.

and also when u look at someone its not showing the rebirth.

First thing: do you want the hp to be as it would be if u first started the server or what?
second thing: what do u mean its not showing the rebirth?

In talkaaction, extrahp and extramana, arent really extra, they aare the base xDDD

So if you put 1000 in each one, players will have 1khealth and 1k mana xD

Hope i helped xd

that hurt my head thinking about what u said there. i do not understand any part of that so i doubt he does.. >.<
 
Thanks owned lol.

And it was i waited 2 days.

and Something like 1000hp/mana. and I want people to be able to look at someone and see how many times they have got rebirth.
 
Back
Top