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

"czar" dający absorb lub reflect?

Haaan

New Member
Joined
Oct 24, 2009
Messages
56
Reaction score
0
Witam, czy jest możliwość dodania do tego skryptu talkaction "absorbpercentall" albo "reflectpercentall" na 30000(30 sekund)? Tak jak np. są bonusy w outfitach.

Oraz czy jest możliwość, że przez te 30 sekund kiedy pojawia się efekt i jesteśmy niezniszczalni, nie można się leczyć, a HP się nie regeneruje?

Code:
local c= {
	max = 120,
	effect = 136
}
 
local function addEffect(cid, count)
	if not(isPlayer(cid)) then return false end
 
	local tmpPos = getPlayerPosition(cid)
	doSendMagicEffect({x=tmpPos.x+1, y=tmpPos.y, z=tmpPos.z}, c.effect)
 
	if count <= c.max then
		addEvent(addEffect, 250, cid, count+1)
	end
end
 
function onSay(cid, words, param)
	if getPlayerVocation(cid) == 2 then
	if getPlayerLevel(cid) >= 100 then
	if getPlayerMana(cid) >= 2000 then
	if getCreatureHealth(cid) >= 2000 then
		doPlayerAddMana(cid, getPlayerMana(cid)/100*-90) else
	end
		doCreatureAddHealth(cid, getCreatureHealth(cid)/100*-90) else
	end
	addEvent(addEffect, 250, cid, 0)
		doPlayerSendCancel(cid, "Shield Activated!")
	end
	return true
end
 end
 
Back
Top