How to create zone with a reward for PvP

Path:
gameserver\data\zone

Example:
XML:
 <zone name="[baium_epic_fun]" type="fun" >
        <set name="enabled" val="true" />
        <set name="playerKillReward" val="4037:100,100;57:100,80" />
        <set name="karmaPlayerKillReward" val="4037:100,100;57:100,80" />
        <set name="ZoneRewardInterval" val="1" />
        <set name="playerKillCheck" val="ip|hwid" />
        <polygon>
            <coords loc="116616 17576 10032 10232" />
            <coords loc="117064 16552 10032 10232" />
            <coords loc="117032 15592 10032 10232" />
            <coords loc="116664 14632 10032 10232" />
            <coords loc="116024 14008 10032 10232" />
            <coords loc="115128 13640 10032 10232" />
            <coords loc="114136 13624 10032 10232" />
            <coords loc="113256 13992 10032 10232" />
            <coords loc="112568 14664 10032 10232" />
            <coords loc="112216 15592 10032 10232" />
            <coords loc="112216 16552 10032 10232" />
            <coords loc="112600 17432 10032 10232" />
            <coords loc="113288 18120 10032 10232" />
            <coords loc="114152 18472 10032 10232" />
            <coords loc="115144 18488 10032 10232" />
            <coords loc="116152 18024 10032 10232" />
        </polygon>
    </zone>

Where:
playerKillReward - PvP reward parameter
karmaPlayerKillReward - PK reward parameter
<set name="playerKillReward" val="4037(item_id):100(item_count),100(chance);57(item_id):100(item_count),80(chance)" />
ZoneRewardInterval - delay before reward for kill. Time in Minutes
playerKillCheck - method of check. ip and hwid, or ip or hwid. If you delete this param, the check will not occur.

If you want the reward to be charged in the type zone type="fun" you will need to enable config PvPCountingInFunZone = True in pvp.properties
 
Last edited:
Path:
gameserver\data\zone

Example:
XML:
 <zone name="[baium_epic_fun]" type="fun" >
        <set name="enabled" val="true" />
        <set name="playerKillReward" val="4037:100,100;57:100,80" />
        <set name="karmaPlayerKillReward" val="4037:100,100;57:100,80" />
        <set name="ZoneRewardInterval" val="1" />
        <set name="playerKillCheck" val="ip|hwid" />
        <polygon>
            <coords loc="116616 17576 10032 10232" />
            <coords loc="117064 16552 10032 10232" />
            <coords loc="117032 15592 10032 10232" />
            <coords loc="116664 14632 10032 10232" />
            <coords loc="116024 14008 10032 10232" />
            <coords loc="115128 13640 10032 10232" />
            <coords loc="114136 13624 10032 10232" />
            <coords loc="113256 13992 10032 10232" />
            <coords loc="112568 14664 10032 10232" />
            <coords loc="112216 15592 10032 10232" />
            <coords loc="112216 16552 10032 10232" />
            <coords loc="112600 17432 10032 10232" />
            <coords loc="113288 18120 10032 10232" />
            <coords loc="114152 18472 10032 10232" />
            <coords loc="115144 18488 10032 10232" />
            <coords loc="116152 18024 10032 10232" />
        </polygon>
    </zone>

Where:
playerKillReward - PvP reward parameter
karmaPlayerKillReward - PK reward parameter
<set name="playerKillReward" val="4037(item_id):100(item_count),100(chance);57(item_id):100(item_count),80(chance)" />
ZoneRewardInterval - delay before reward for kill. Time in Minutes
playerKillCheck - method of check. ip and hwid, or ip or hwid. If you delete this param, the check will not occur.

If you want the reward to be charged in the type zone type="fun" you will need to enable config PvPCountingInFunZone = True in pvp.properties
playerKillCheck add check for clan and alliance, to prevent reward on pvp same clan or ally.
 
Back
Top