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:
You didn't understand my question, haha, I'm trying to use the reward command instead of kill.
<set name="playerKillReward" val="400012:1,100;57:100,80" />
<set name="ZoneRewardInterval" val="0" />
I completed the TVT instance normally, but when killing someone inside, I don't get the item as promised at the beginning of the post, I tested this in other zones besides instances, and it works, but it doesn't work in instance zones.
 

Attachments

  • 1775432497486.webp
    1775432497486.webp
    307.7 KB · Views: 1
You didn't understand my question, haha, I'm trying to use the reward command instead of kill.
<set name="playerKillReward" val="400012:1,100;57:100,80" />
<set name="ZoneRewardInterval" val="0" />
I completed the TVT instance normally, but when killing someone inside, I don't get the item as promised at the beginning of the post, I tested this in other zones besides instances, and it works, but it doesn't work in instance zones.
Maybe it really doesn't work in instance zones. The guide shows it for zones, maybe that's it!
 
Back
Top