Adding new EffectZone for Automatic Buffs

Results 1 to 2 of 2
  1. #1
    Apprentice brshocker is offline
    MemberRank
    Dec 2006 Join Date
    9Posts

    sad Adding new EffectZone for Automatic Buffs

    Hi everyone!

    First of all, I'm using the latest L2J Hi5 stable release.


    I've been trying to add new automatic buff zones but I just can't get it working.
    I tried to create a new XML zone file, named custom_effect_buffs.xml with the same XSD of the others. Not worked. Then I added the following to the effect.xml existing file:


    Code:
    <zone name="AUTOMATIC_BUFF" type="EffectZone" shape="NPoly" minZ="-3284" maxZ="-2284">
    <stat name="chance" val="100" />
    <stat name="skillIdLvl" val="4322-1;4327-1;6808-1;1085-1;4323-1;7059-1;4331-1;1242-1;1077-1;1062-1;4330-1;1397-1;5637-1;1035-1;1240-1;4325-1;4324-1;4328-1;1357-1;264-1;265-1;266-1;267-1;268-1;269-1;304-1;349-1;363-1;364-1;" />
    <stat name="default_enabled" val="true" />
    <stat name="reuse" val="5000" />
    <stat name="initialDelay" val="500" />
    <node X="-71668" Y="256229" />
    </zone>
    My intention is to give the following buffs (level 1 - IDs above) when new character gets created:


    Adventurer's Wind Walk
    Adventurer's Haste
    Arena Might
    Acumen
    Adventurer's Shield
    Master's Blessing - Wild Magic
    Adventurer's Empower
    Death Whisper
    Focus
    Berserker Spirit
    Adventurer's Concentration
    Clarity
    Adventurer's Magic Barrier
    Mental Shield
    Guidance
    Adventurer's Vampiric Rage
    Adventurer's Bless the Body
    Adventurer's Bless the Soul
    Prophecy of Wind
    Song of Earth
    Song of Life
    Song of Water
    Song of Warding
    Song of Wind
    Song of Hunter
    Song of Vitality
    Song of Renewal
    Song of Meditation
    Song of Champion


    Any help will be very very useful!


    Thanks in advance.


    Best regards,
    Alan Cota.


  2. #2
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Adding new EffectZone for Automatic Buffs

    you could write a code in gameserver source or a script in datapack, so when a character is created, he will receive buffs from the system.



Advertisement