• 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!

Bless

Quab

Mapper/C++ User
Joined
Jun 22, 2008
Messages
350
Reaction score
0
Location
In Your Dream$
Hi everyone. Since we have started our project for a week ago our bless is a bit corrupted.

When you buy bless it work. but when you die with bless you dont loose any lvl. I dont know why. I have my deathloose percent on (0.8) and when you die without bless it´s normal. I cant configure how to make that you loose "small" lvl with bless.

It´s bugged to dont loose any lvl with bless. Rep+ for the one who help me solve this :) thx
 
Hi everyone. Since we have started our project for a week ago our bless is a bit corrupted.

When you buy bless it work. but when you die with bless you dont loose any lvl. I dont know why. I have my deathloose percent on (0.8) and when you die without bless it´s normal. I cant configure how to make that you loose "small" lvl with bless.

It´s bugged to dont loose any lvl with bless. Rep+ for the one who help me solve this :) thx

Because you have it on 8.
Prem = 3, Blessings = 5 which results in 8.
8-8 = 0, no experience loss.
 
You can set your script so that characters can only get for example 3 blessings. That way they will still lose 2% when they die.

Here is the npc script if you need it:
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)


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

local node1 = keywordHandler:addKeyword({'first bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the first blessing for 2000 (plus level depending amount) gold?'})
	node1:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 1, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

local node2 = keywordHandler:addKeyword({'second bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the second blessing for 2000 (plus level depending amount) gold?'})
	node2:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 2, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

local node3 = keywordHandler:addKeyword({'third bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the third blessing for 2000 (plus level depending amount) gold?'})
	node3:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 3, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

npcHandler:addModule(FocusModule:new())
 
Back
Top