Jump to content

Recommended Posts

Posted (edited)

With few words, it is a system that allows you to have a bunch of "settings" for any zone you want. I name it "PvP" zone system, since i think it would fit better to a pvp server, that uses some kind of pvp zone. In order to add and configure the settings of a zone you have to do only 2 things:

 

A. Create the zone (according to some coordinates) with a specific ID, using the classic-familiar way  for zone creation in data/xml/CustomPvPZone.xml. (If you want to know more, visit this topic, created by SweeTs)

B. Configure the zone settings by using the same ID in custom_pvp_zone_settings.xml.

C. You can have as many zones as you want, each one with different settings.

 

This system is mostly independent and it requires few changes in already existing files - source code in order to be installed.

 

Quote

"I am sure that even people who don't know how to code can install it without problems. Besides, i will be there to help."

 

Plus, the code contains a proper java doc, in case someone cannot understand a simple and clean code.

 

In order to make it more clear, i will share with you an example of the configuration file.

 

custom_pvp_zone_settings.xml:

 

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<zone_settings>
  <!-- For zone coords open ./xml/CustomPvPZone.xml file. -->
  <!-- Sample of zone settings (inluding all available settings) -->
  <!-- <zone id="1111" // The id of the zone. Must matches the id inside CustomPvPZone.xml. Default: 0
 
            auto_flag="true" //If enabled, all players are automatically flagged. Default: false
            
            on_enter_message="true" //Message when a player enters the zone. There are currently x players inside this zone. Default: false
            
            announce_kill_type="GLOBAL"> // %killer% has killed %killed%. Available types: GLOBAL, ZONE, NONE. Default: NONE
            	ZONE: Announce only in this zone.
				GLOBAL: Announce in all zones.
                <restrictions
                
                    allow_summon = "false" //If false, all summon teleports in zone will be blocked. Default: true
                    
                    allow_trade = "false" //If false, all trades (between players) will be restricted. Default: true
                    
                    allow_restart = "false" //If false, players cannot restart. Default: true
                    
                    items = "agrade,1" //List of all restricted items in this zone. Use agrade,bgrade to block A,B grade items and etc.
                    Use integer value to specify an item ID. Split items with comma(,). Default: "" (no items restricted)
                    
                    class_ids = "88,89" //List of all restricted classes (IDs) in this zone. Split with comma (,).
                    Default: "" (no restricted classes)
                    
                />
                        
                <kill_settings
                    
                reward="57,100;9142,51" //Rewards on each kill. Syntax: itemId,count;itemId,count. Default: ""
                
                reward_cooldown="15" //Time (Seconds) before getting reward from the same player kill. (Anti-feed protection) Default: 0
                
                hwid_restriction="false"  //Restrict reward for players with same HWID. Default:false
                
                ip_restriction="false" //Restrict reward for players with same IP. Default:false
                
                party_restriction="true" //Restrict reward for players with same party. Default:false
                        
                clan_restriction="true" //Restrict reward for players with same clan. Default:false
                        
                ally_restriction="true" //Restrict reward for players with same ally. Default:false
                        
                />
        </zone>
    <!-- Usage example of all settings -->
    <!-- Giran Arena -->
    <zone id="1111" auto_flag="true" on_enter_message="true" announce_kill_type="GLOBAL">
        <restrictions allow_summon="false" allow_trade="false" allow_restart="false" items="agrade,1" class_ids="88,89"/>
        <kill_settings reward="57,100;9142,51" reward_cooldown="15" hwid_restriction="false" ip_restriction="false" party_restriction="true" clan_restriction="true" ally_restriction="true"/>
    </zone>
    <!-- Usage example of some features (Missing attributes have default values) -->
    <!-- Gludin Arena -->
    <zone id="1112" auto_flag="false" on_enter_message="true"/>
</zone_settings>

 

 

 

Some Notes:

- The code has been coded for l2jserver High Five, and aCis. In case you are using another pack, we will adapt it together (It will take 10 minutes or less to adapt, since it is independent code).

- If you want to add any other restrictions or features/settings to zones, you can request them to me, or even do them easily by you.

- Code comes with a .patch file containing only the lines of the code you should add/remove/edit.

 

 

This is it! Even if you are not interested, please take a second and leave a feedback to this idea. I would be glad to see what you think (any improvements or changes)

 

Price: 15€

Skype: knip.ex

 

If you liked or be interested of what you read, take a look at these:

Configurable Solo Zone System

Weekly Trader (With Random Items)

Edited by Solomun
Posted
Just now, melron said:

Good luck with your sales buddy! 

 

(You can implement random names on enter case / restore on exit as a new feature)

Thanks mate.


Easy to be added aswell. If any client will request it, i will add it. :P

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Update M54: Global HP/MP/CP consumable handling expanded beyond combat-only usage. Offensive mage idle recovery with learned skill Battle Heal. Spellhowler/Storm Screamer prioritizes Hurricane, using Vampiric Claw mostly below 90% HP. Major structural refactor initialized: Added category/class organization such as Archer, Dagger, Tank, Mage, Healer, Support and Specialized class files. Further structural cleanup. Extracted combat memory/state and more class-policy logic from the main controller. Added global stuck/inactivity watchdog for bots blocked by terrain/geodata. Added unreachable dropped ground-item timeout/temporary blacklist. Reworked Necromancer/Soultaker PvP: Dominator level 78+ maintains learned Arcane Power toggle on. Overlord/Dominator level 44+ maintains learned Soul Guard toggle automatically. Stability/scalability update: Bot controller ticks staggered instead of all starting in the same phase: Same 350 ms update rate retained Reduces simultaneous AI workload bursts. Removed the old manual aggressive-monster EVT_AGGRESSION bridge. Phantoms now use native Lucera setActive() behavior so monsters aggro them naturally. Reduced unnecessary NPC scans and native AI event pressure. Added saved-bot equipment overrides using a separate database table:         lucera_autobots_items Existing lucera_autobots remains the main saved-bot identity/state table. Equipment rows are linked to saved bots through bot_id. Added optional convenience view to show bot name together with equipment overrides:         lucera_autobots_items_view Added editable equipment slots in columns: Weapon Shield Helmet Chest Legs Gloves Boots Necklace Left/Right Earrings Left/Right Rings Equipment override values: 0 = use normal class/level profile item -1 = force slot empty >0 = equip that Item ID Custom equipment works only for saved database bots. Default class/level equipment profiles remain unchanged. Supports custom equipment from No Grade to S Grade, regardless of the bot's current level. Added validation for invalid item IDs and incompatible equipment slots. Added handling for: Two-handed weapons vs shields Full-body armor vs separate leggings Added all-grade Soulshots and Spiritshots to bot inventory/replenishment so custom lower-grade weapons still use the correct shots. Mage profiles that already use Blessed Spiritshots keep that behavior with all relevant grades available. First save the bot normally so it exists in table:         lucera_autobots Then open:         lucera_autobots_items Find the row with the same bot_id and edit only the equipment slots you want. Example: weapon_id = 6608 shield_id = -1 helmet_id = 0 chest_id = 0 legs_id = 0 gloves_id = 0 boots_id = 0 This means: weapon_id 6608 → custom weapon shield_id -1 → no shield all 0 values → keep normal default profile equipment After editing the DB, despawn and respawn the saved bot so M54 reloads its equipment overrides. Do not edit bot_id. Use it only to identify which saved bot the equipment row belongs to.   DOWNLOAD
    • It will be multi client so it will detect the client from the files and adapt the packets and asset loading. I am aiming for C4 and H5 after IL
    • this is just to simplify your life, time, and can be done for free by yourself just watch some tutorials, in case you don't wanna waste time check it out!   https://l2getwork.art   https://l2getwork.art/showcase.html  
    • Good job! Any chance for it to be downgradeable or at least compatible with older chronicles?
    • Fermata now runs in a web browser too. Try it here: https://web.fermata.gg/    
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..