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

Spell Nothing special, just bored.

EvulMastah

๏̯͡๏﴿
Premium User
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.

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:
With this, and the bearform, great! :D Can finaly make 3 stages of bearform,
stage 1 300+ hp, 600- mana, 80+ fist,
stage 2 500+hp, 1000- mana, 140+ fist,
stage 3 700+ hp, 1400- mana, 200+ fist. [changing max hp, and max mana]

Love theese functions, I can make lots of funny "forms" now easy ^^
doCreatureChangeMaxMana(cid, getPlayerMaxMana(cid) + 500)
doCreatureChangeMaxHealth(cid, getCreatureMaxHealth(cid) - 1500)

Thx! ^^
 
Last edited:
Nice, but:
Code:
function backForm(cid) 
    if (isPlayer(cid) == 1) then
        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
end

Because it'll give errors if you logout :)
 
Last edited by a moderator:
Back
Top