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

Edited Runes

Ward_214

Pro PvP
Joined
Dec 11, 2008
Messages
297
Reaction score
0
I need 3 runes:
VIP SD Rune- Needs to be double damage of regular SD
VIP Manarune- Needs to heal mana from 40k-50k and
High Manarune- Heals mana between 15k-25k

///Thanks :)
 
To make the runes so only VIPs can use the simply use this

replace:
PHP:
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
with
PHP:
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, STORAGEFORVIP) ~= -1 then
	return doCombat(cid, combat, var)
	end
	doPlayerSendCancel(cid,"Sorry, only people with VIP Status can use this spell.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) 
    return LUA_ERROR
end

and change the STORAGEFORVIP to the storage value for your VIP.


For the VIP manarune you will need to use this instead:

PHP:
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, STORAGEFORVIP) ~= -1 then
        doPlayerAddMana(cid, math.random(MIN_MANA, MAX_MANA))
	return doCombat(cid, combat, var)
	end
	doPlayerSendCancel(cid,"Sorry, only people with VIP Status can use this spell.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) 
    return LUA_ERROR
end

Don't forget to give me rep if I helped you.
 
Back
Top