Jump to content
  • 0

Custom Instance Farm Zone


Question

Posted

Hi! 


I need some help again. I'd like to create a farm zone.
I think the best to do it in an instace with a limited time, but i dont really know how is it working.

I find GoldBergsRoom to be a good place form me. I made a copy from the .xml and also the script.

 

I changed some conditions, i hope its ok.
The spawnlist is the default. If i made a list in here its working? I mean do the mobs respawn in to zone again until time ends?
I deleted some unused lines from script but is thinks its not correct.

 

So im just want a zone where mobs spawn for 60 minutes then player teleported out and can re-enter after 180.

 

 

My xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<instance id="900203" maxWorlds="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
    <time duration="60" empty="0" />
    <locations>
        <enter type="FIXED">
            <location x="11712" y="-84973" z="-10965" />
        </enter>
        <exit type="ORIGIN" />
    </locations>
    <conditions>
        <condition type="GroupMin">
            <param name="limit" value="1" />
        </condition>
        <condition type="GroupMax">
            <param name="limit" value="9" />
        </condition>
        <condition type="Level">
            <param name="min" value="80" />
            <param name="max" value="86" />            
        </condition>    
        <condition type="Distance" />
        <condition type="Reenter" />
    </conditions>
        <reenter apply="NONE">
        <reset time="180" />
    </reenter>    
    <spawnlist>
        <group>
            <npc id="18359" x="11700" y="-87948" z="-10948" heading="16383" /> <!-- Golberg -->
        </group>
    </spawnlist>
</instance>


 

 

 

and this is my script:

 

/*
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package instances.BeerFarm;

import org.l2j.gameserver.model.Party;
import org.l2j.gameserver.model.actor.Npc;
import org.l2j.gameserver.model.actor.instance.PlayerInstance;
import org.l2j.gameserver.model.instancezone.Instance;
import org.l2j.gameserver.network.serverpackets.ExShowScreenMessage;

import instances.AbstractInstance;

public class Farm extends AbstractInstance
{
    // NPCs
    private static final int Black = 34091;
    // Items

    // Misc
    private static final int TEMPLATE_ID = 900203;
    
    public Farm()
    {
        super(TEMPLATE_ID);
        addStartNpc(Black);
        addInstanceLeaveId(TEMPLATE_ID);
    }
    
    @Override
    public String onAdvEvent(String event, Npc npc, PlayerInstance player)
    {
        switch (event)
        {
            case "ENTER":
            {
                enterInstance(player, npc, TEMPLATE_ID);
                final Instance world = player.getInstanceWorld();
                if (world != null)
                {
                    for (PlayerInstance member : party.getMembers())
                    {
                        if (member == player)
                        {
                            continue;
                        }
                        member.teleToLocation(player, 10, world);
                    }
                }
                break;
            }
        }
        return null;
    }
    
    
    public static void main(String[] args)
    {
        new Farm();
    }
}


 

 

 

 

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


  • Posts

    • If it is AI-generated, you used a really shit model. Even AI wouldn't be able to generate obvious errors like the badge misalignment.   I do find it funny, however, that out of everyone to accuse you, Splicho, who used AI to fully generate this https://nimeracp.com/, is the one to talk.
    • You’re free to dislike the design, that’s subjective and totally fine. But calling everything you personally don’t like “AI generated” is not really an argument 😄 The funny part is that the layout constraints you’re criticizing are actually intentional design decisions for toplist platforms — ads, rankings, visibility blocks, sponsor placements, and high information density. This isn’t a portfolio landing page or a SaaS dashboard where you can leave half the screen empty for aesthetics. Also, AI-generated UIs usually look generic, over-animated, inconsistent, and impractical for real long-term usage. Our platform has been evolving for years based on actual user behavior, server owner needs, CTR optimization, and functionality requirements. You may not like the visual style, and that’s okay. But confusing “I don’t like this design” with “this was made by AI” just shows you’re judging emotionally instead of technically. Anyway, appreciate the feedback. Good luck to you too 🙂
    • You don't get it what I am trying to say. Your UI is simply ai generated, entirely. The current theme what you are using. I am not talking about the backend. It's just my personal preference/opinion that I think your UI looks really bad because it's AI generated and whoever worked on it didn't give a single fuck about how it looks, or at least take the time to rework the UI that AI generated yourself.   AI is just bad with design and your website is a proof of concept once again. But how would someone know what looks good and what does not look good if one doesn't have the design skills or knowledge.   Whatever, good luck with your site.
    • Of course AI can generate Bootstrap now, but back in 2021 nobody was building sites with Codex like today 😄 And yes, the site looks different because we kept updating the UI over the years — colors, cards, spacing, dark mode, mobile tweaks, animations, badges, and layout refinements. That’s called maintenance and redesign iterations, not rebuilding the whole backend from scratch. The core architecture is still the same Bootstrap-based structure we’ve used for years because toplist websites need specific blocks and banner placements to work properly. You can literally compare both screenshots and see the evolution. One is the older 2021 version, the other is the current polished version after years of manual improvements. No AI magic involved, just hand-coded work and years of updates 🙂 And honestly, if someone thinks every Bootstrap website is AI-generated now, then half the internet was apparently built by ChatGPT before ChatGPT even existed 😂
    • Hello,   I am looking for clean patch for patch Classic 3.5 Tales Untold NA P 286. Thanks in advance!
  • 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..