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

how to put a storage in this spell?

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
i want to put a storage in this spell so player can use this spell every 30sec here is the script :

PHP:
local condition = createConditionObject(CONDITION_ATTRIBUTES) 
setConditionParam(condition, CONDITION_PARAM_STAT_MAXHEALTHPERCENT, 130) 
setConditionParam(condition, CONDITION_PARAM_TICKS, 60 * 1000) 

function onCastSpell(cid, var) 
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) 
    return doAddCondition(cid, condition) and doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) 
end
 
you do not need put storage in 0.4
3.6 i don't have anymore but maybe with that?

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 30000)
setCombatCondition(combat, exhaust)
 
yh but when i make this it will make players exhausted from all other spells i want this just as a buff that players can only use every 30sec without getting exhausted from other spells
 
hehe
no :D only for that one spell! for example:
<instant name="Divine Caldera" words="exevo mas san" lvl="50" mana="140" prem="1" selftarget="1" exhaustion="4000" groups="1,2000" icon="124" needlearn="0" event="script" value="attack/divine caldera.lua">
<vocation id="3"/>
<vocation id="7"/>
</instant>
 
Up
That is what he's talking about. This exhaustion include all spells divided to healing spells and attack spells. You cannot use 'exori san' immediately after 'exevo mas san' and 'exura vita' after 'exura san' :P
 
mei :D

than:
Code:
<instant name="Divine Caldera" words="exevo mas san" lvl="50" mana="140" prem="1" selftarget="1" [COLOR="#FF0000"]exhaustion="[SIZE=5]30000[/SIZE]" groups="1,[SIZE=5]10[/SIZE]"[/COLOR] icon="124" needlearn="0" event="script" value="attack/divine caldera.lua">
<vocation id="3"/>
<vocation id="7"/>
</instant>

kimokimo, is that ok for you?
 
Back
Top