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

stackable attribute

Gubailovo

Well-Known Member
Joined
Dec 19, 2013
Messages
407
Solutions
2
Reaction score
62
I can not add the stackable option through the item iditor. how to register it through lua?
I am also interested in the attack attributes of the defense and the slot (weapons, leggings, boots, armor, helmet, ring, obesity)
 
dude you provided zero information about whatever your are using

crystal ball love GIF by HERSHEY’S Cookies ’n’ Creme

 
otitemeditor 0.2.2
I was not given an answer about the server version on this forum
example script item
XML:
<!-- WEAPON -->
    <item id="8185" dmax="540000000"><!-- Red Dragon -->
        <buff title="Earth damage" func_name="buff_earth_damage" value="1"/>
        <buff title="+25% Slows Target" func_name="buff_slow_trgt" value="25"/>
        <buff title="+50 Skill dist" func_name="buff_skill_dist" value="50"/>
        <buff title="Ignore Defense" func_name="buff_deff_ignore" value="1"/>
        <buff title="300 Health Point" func_name="buff_hp" value="300"/>
        <voc_ex name="none"/>
        <voc_ex name="ranger"/>
        <voc_ex name="rogue"/>
        <voc_ex name="knight"/>
        <voc_ex name="vampire"/>
        <voc_ex name="paladin"/>
        <voc_ex name="druid"/>
        <voc_ex name="werewolf"/>
        <voc_ex name="priest"/>
        <voc_ex name="sorcerer"/>
        <voc_ex name="lich"/>
        <voc_ex name="spellmaster"/>
    </item>
    
    <item id="8199" dmax="540000000"><!-- Black Dragon -->
        <buff title="+50 Skill dist" func_name="buff_skill_dist" value="50"/>
        <buff title="500 Health Point" func_name="buff_hp" value="500"/>
        <buff title="Mana Shield" func_name="buff_manashield" value="1"/>
        <buff title="+1 Target" func_name="buff_target_damage" value="1"/>
        <voc_ex name="none"/>
        <voc_ex name="ranger"/>
        <voc_ex name="rogue"/>
        <voc_ex name="knight"/>
        <voc_ex name="vampire"/>
        <voc_ex name="paladin"/>
        <voc_ex name="druid"/>
        <voc_ex name="werewolf"/>
        <voc_ex name="priest"/>
        <voc_ex name="sorcerer"/>
        <voc_ex name="lich"/>
        <voc_ex name="spellmaster"/>
    </item>

Lua:
attackType = ATTACK_DEATH
animationEffect  = NM_ANI_NONE

hitEffect = NM_ME_MORT_AREA
damageEffect = NM_ME_DRAW_BLOOD
animationColor = BLACK
offensive = true
drawblood = true

EnergyObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

function onAttack(cid, cid2, item, frompos, topos, damage)
    EnergyObject.minDmg = damage
    EnergyObject.maxDmg = damage+1
    centerpos = {x=topos.x, y=topos.y, z=topos.z}
    doTargetMagicNoExhaustion(cid, centerpos, EnergyObject:ordered())

    return 1
end


 
Back
Top