Jump to content
  • 0

I am getting mad. Custom zone error.


Devlin

Question

Hello, I created a new zone and when I reload zones in order to check if my zone works I get at gameserver the following error:

 

Error while loading zones.
net.sf.l2j.gameserver.model.zone.type.L2SpecialZone.<init><int>

 

And zone doesn't load.

 

Zone code:

 

/*
* 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 net.sf.l2j.gameserver.model.zone.type;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.datatables.MapRegionTable;
import net.sf.l2j.gameserver.model.actor.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneType;
import net.sf.l2j.gameserver.model.zone.ZoneId;

/**
* @author Devlin
*
*/
public class L2SpecialZone extends L2ZoneType
{
protected L2SpecialZone(int id)
{
	super(id);
}

@Override
protected void onEnter(L2Character character)
{
	character.setInsideZone(ZoneId.SPECIAL, true);

        if (character instanceof L2PcInstance)
        {
                L2PcInstance p = (L2PcInstance)character;
                
                if (!Config.ALLOW_BISHOP_ENTER_SPECIAL_ZONE)
                {
                    if (p.getClassId().getId() == 16 || p.getClassId().getId() == 97)
                    {
                    	p.setInsideZone(ZoneId.SPECIAL, false);
                    	p.teleToLocation(MapRegionTable.TeleportWhereType.Town);
                    	p.sendMessage("Your class is not allowed to enter this zone.");
                    	return;
                    }
                }
                
                p.updatePvPStatus();
                p.sendMessage("You have entered special pvp zone.");
        }
}

@Override
protected void onExit(L2Character character)
{
        character.setInsideZone(ZoneId.SPECIAL, false);
        
        if (character instanceof L2PcInstance)
        {
                L2PcInstance p = (L2PcInstance)character;
                
                p.setPvpFlag(0);
                p.broadcastUserInfo();
                p.sendMessage("You have exited special pvp zone.");
        }
}

@Override
public void onDieInside(L2Character character)
{
	// nothing.
}

@Override
public void onReviveInside(L2Character character)
{
        if (character instanceof L2PcInstance)
        {
                L2PcInstance p = (L2PcInstance)character;
                
                p.setCurrentHpMp(p.getMaxHp(), p.getMaxMp());
                p.setCurrentCp(p.getMaxCp());
        }
}
}

 

Xml:

 

	<zone type="SpecialZone" shape="NPoly" minZ="-4290" maxZ="-1290"><!-- Primeval Isle (Town Zone) -->
	<node X="10408" Y="-27395" />
	<node X="12065" Y="-25334" />
	<node X="12223" Y="-23159" />
	<node X="10424" Y="-22340" />
	<node X="9566" Y="-23131" />
	<node X="9290" Y="-24261" />
	<spawn X="10468" Y="-24569" Z="-3645" />
</zone>

 

Pack: aCis last rev.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Well my friend, I'm not going to stay here arguing anymore, because you won't give up and much less have the humility to accept something you did wrong, as you saw, I value the work of others, I know who really creates or even takes a block of code and does something better and different, but the subject here was about a guy, nicknamed Vraekar, who steals and SELLS interfaces as if they were his, and is that within your beliefs?, belief that if the guy creates something it has to be stolen and whoever stole it can profit from it?, that's what I'm talking about, you've fought a lot against this, and today you help a guy like that to do wrong, but anyway, you know what you're doing, I hope you reflect, the community knows who does and who helps the wrong. Stay with God, because six of the problems that go around.
    • You claim you thought I was a "serious" person before. Well, maybe you just never took the time to actually know me. People evolve, but I stay true to what I do and believe in. If you’re that hung up on what I’ve been doing, maybe it's time to stop speculating and start focusing on yourself. 🙂
    • Well, at least it's clear that you don't respect the work of others. Secondly, everyone knows that you code nothing. Your group has devs. known that you've asked for a lot of help and code exchange with some well-known BRs. there are chats and I can prove it, then don't come playing the good guy because you're not. So, Celestine, I'm not judging you. I'm saying that I know that your group helped vraekar steal the codes, and I have proof. In the past, I thought you were a serious, good-natured guy, but lately, you're a different person. Your text above speaks for you.
    • What I do or who I work with is none of your concern, and honestly, I couldn't care less. Lately, I've seen a lot of people trying to make a quick buck off scams, so let's not even mention names you wouldn't want them getting upset, right? 🙂  As for the projects I've been involved with, there's a server about to launch that I’m personally waiting for, and when it does, I’ll release the work publicly for free because people deserve better than what these so called "developers" are pushing. I’m not here to defend anyone, but if you had any real knowledge, you’d see how poorly written some of these scripts are. I’ve worked with Vraekar in the past, and I know for a fact he’s never sold anything I’ve created. So before you start running your mouth, ask yourself: why are you even juding me?
    • I didn't even want to touch on your name Celestine, but it took a while to want to protect it, right? But then I say, everyone knows that you and your group helped Vraekar in deobfuscating the interfaces, do you want me to post here the dates and videos of the releases of the OMG and Silence interfaces?, and then see Vraekar's?, do you want?, a blatant copy, even their variable names, the theft is blatant, and you who are an admin here at Max and say you are the right one, helped him decrypt and remove the code obfuscation, everyone knows that, and now you come and tell me that his code is not copied?, if you want I can put all the evidence here and this will be very ugly even for you, since those you helped Vraekar and the interface dev community know this, they know about the thefts, very ugly indeed my friend that you still come and tell such a lie.   ps. And just one more thing, did you say that all the code he wrote? you became a joker? Vraekar doesn't program a single line of code, the guy works as a data analyst, what he learned was to copy and paste ready-made codes, but he doesn't write a single line of code.
  • Topics

×
×
  • Create New...