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

Lua Help with Rune Effect

Trader

New Member
Joined
Aug 12, 2009
Messages
219
Reaction score
2
function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerMagLevel(cid) >= 0 then
doCreatureAddHealth(cid, 500)
doCreatureAddMana(cid, 500)
doCreatureSay(cid, "Mana Rune!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "You don't have enough magic level.")
end
return true
end



I got this script and I need to know how to make it so that when you use the spell, you have the blue magic effect (glimmer) on yourself. I don't know how to do it and don't know where to put it. If anyone can improve this script for me I'll rep+! :thumbup:
 
Very simple, here:

Lua:
local effect = 12 --the id of the effect you want

function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerMagLevel(cid) >= 0 then
doSendMagicEffect(getCreaturePosition(cid), effect)
doCreatureAddHealth(cid, 500)
doCreatureAddMana(cid, 500)
doCreatureSay(cid, "Mana Rune!", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "You don't have enough magic level.")
end
return true
end

REP++ :D
 
Back
Top