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

mana rune and ultimant healing rune script PROBLEMS

486255

New Member
Joined
Apr 30, 2009
Messages
49
Reaction score
0
i need help making a script for each with a 8.6 server ? i need the basic script
 
i need help making a script for each with a 8.6 server ? i need the basic script
here is a simple UH:
Lua:
local health = 400
local say = "Aaaah..."

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(cid) then
	        doCreatureAddHealth(cid, health)
	        doCreatureSay(cid, say, TALKTYPE_MONSTER)
		doSendMagicEffect(getPlayerPosition(cid), 12)
	end
end
here is a simple manarune:
Lua:
local mana = 400
local say = "Aaaah..."

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(cid) then
		doPlayerAddMana(cid, mana)
		doCreatureSay(cid, say, TALKTYPE_MONSTER)
		doSendMagicEffect(getPlayerPosition(cid), 12)
	end
end

Here is a more advanced manarune:

Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions') - 100)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(not isPlayer(itemEx.uid)) then doPlayerSendCancel(cid, "You cannot use this object.") end
	if(hasCondition(cid, CONDITION_EXHAUST)) then doPlayerSendCancel(cid, "You are exhausted.") end
 
	local lvl, ml, min, max = getPlayerLevel(cid), getPlayerMagLevel(cid), nil, nil
	min = ((lvl * 3.3) + (ml * 3.0) - 50)
	max = ((lvl * 3.9) + (ml * 3.0))
 
	local mana = math.random(min, max)
	doPlayerAddMana(cid, mana)
	doAddCondition(cid, exhaust)
	doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_MONSTER)
	return
end

Best regards,
Dridia
 
Back
Top