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

Manarune

Orkhz

New Member
Joined
Sep 11, 2009
Messages
301
Reaction score
0
Warning: [Event::checkScript] Event onUse not found. /scripts/Donated Manarune.lua

This happens when I start the server, what's wrong? Using 0.2.5
 
Where do I change how much mana I get when using a rune then? :p

Ok in Scripts/healing or Custom/Donator manrune

Change it to this
PHP:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_SLEEP) 
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) 
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) 

function onCastSpell(cid, var) 
doPlayerAddMana(cid,math.random(2700,3200))
doCreatureSay(cid,"Ahh, Vip manarune rocks!",19)  
return doCombat(cid, combat, var) 
end

The where u see (cid,math.random(2700,3200)) 2700 is saying that the min amout of mana and 3200 is the max then edit that..


Rep me again :p
 
Ah ty. And how do I make so the rune doesnt dissapear after use?

Ok in, spells.xml do this

PHP:
<rune name="VIP mana rune" id="2299" aggressive="0" charges="0" lvl="9" maglv="3" mana="100" soul="0" exhaustion="1000" prem="1" enabled="1" allowfaruse="1" script="healing/Donated Manarune.lua"></rune>

See >>> charges="0" :p comon i need more rep :p
 
Back
Top