hey guys..
i found this spell here on otland
how do i change it that it needs 2 Shields/swords or whatever to cast?
i found this spell here on otland
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
function onCastSpell(cid, var)
local config = {
promotion_lvl = 1, --standart promotion
outfit = {lookType=145, lookHead=124, lookAddons=1, lookLegs=45, lookBody=11, lookFeet=87}
}
doPlayerSetPromotionLevel(cid, config.promotion_lvl)
doCreatureChangeOutfit(cid, config.outfit)
doCombat(cid,combat,var)
return true
end
Code:
<instant name="Promotion/Outfit" words="exana hur" lvl="20" mana="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="sip.lua">
<vocation id="1"/>
</instant>