- Joined
- Aug 19, 2007
- Messages
- 4,941
- Solutions
- 11
- Reaction score
- 352
To apply this spell you will need 2 functions from Lejjo which can be found there -> http://otland.net/showthread.php?t=3403
It's nothing special, was bored, so will post it now.
and to avoid bug abuse add this to your onLogin
Probably you can make something better with that :thumbup:
By the way - It is a spell.
It's nothing special, was bored, so will post it now.
PHP:
local outfit = {
lookType = 55,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0
}
local beast = 6752
local time = 5 * 1000 * 60 -- 5 minutes.
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, beast) ~= 1 then
doSetCreatureOutfit(cid, outfit, -1)
doCreatureChangeMaxHealth(cid, getCreatureMaxHealth(cid) + 1500)
doCreatureChangeMaxMana(cid, getPlayerMaxMana(cid) - 500)
doCreatureSay(cid, "ROAR", TALKTYPE_ORANGE_1)
addEvent(backForm, time, cid)
setPlayerStorageValue(cid, beast, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
doChangeSpeed(cid, getCreatureSpeed(cid) * 2)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
return TRUE
end
function backForm(cid)
doRemoveCondition(cid, CONDITION_OUTFIT)
doCreatureChangeMaxMana(cid, getPlayerMaxMana(cid) + 500)
doCreatureChangeMaxHealth(cid, getCreatureMaxHealth(cid) - 1500)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_GREEN)
doChangeSpeed(cid, getCreatureSpeed(cid) / 2)
setPlayerStorageValue(cid, beast, 0)
end
and to avoid bug abuse add this to your onLogin
PHP:
if getPlayerStorageValue(cid, 6752) == 1 then
setPlayerStorageValue(cid, 6752, 0)
doCreatureChangeMaxMana(cid, getPlayerMaxMana(cid) + 500)
doCreatureChangeMaxHealth(cid, getCreatureMaxHealth(cid) - 1500)
doChangeSpeed(cid, getCreatureSpeed(cid) / 2)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
Probably you can make something better with that :thumbup:
By the way - It is a spell.
Last edited: