Jump to content

Question

Recommended Posts

  • 0
Posted

http://prntscr.com/3gfgyp this suddently appeared when i press "To Village" and To Village button doesn't work. I need fast help to fix it anyone can help me? 

what new you change or what new you add in your source? you do something wrong in code add or something you change

  • 0
Posted

I dont see anything with error in source. I bought this pack ready to use so i dont know from where should this bug appear... When someone Day and press To Village this error appear and he cant go to village...  www.l2outlaw.net/website check server features maybe it can help you understand from where the bug comes.

  • 0
Posted

I dont see anything with error in source. I bought this pack ready to use so i dont know from where should this bug appear... When someone Day and press To Village this error appear and he cant go to village...  www.l2outlaw.net/website check server features maybe it can help you understand from where the bug comes.

check if have multifunction zone in this pack or other custom zone

  • 0
Posted

It is,as i see. How can i remove this? What should i exactly remove?

1st check if this error you got when you are in pvp zones or in all zones..example go oute of giran die and see if you got this error...2nd check this is the code from multifunction zone: http://pastebin.com/7kf9eYTD

  • 0
Posted (edited)

This error appears in all zones,and No i dont have multifactional zone,i had removed it.

check in code this place: 

 

 

--- head-src/com/l2jfrozen/gameserver/network/serverpackets/Die.java    (revision 948)
+++ head-src/com/l2jfrozen/gameserver/network/serverpackets/Die.java    (working copy)
@@ -31,6 +31,7 @@
import com.l2jfrozen.gameserver.model.entity.event.TvT;
import com.l2jfrozen.gameserver.model.entity.siege.Castle;
import com.l2jfrozen.gameserver.model.entity.siege.Fort;
+import com.l2jfrozen.gameserver.model.zone.type.L2MultiFunctionZone;
 
/**
 * sample 0b 952a1048 objectId 00000000 00000000 00000000 00000000 00000000 00000000 format dddddd rev 377 format
@@ -64,7 +65,8 @@
                                                        || (DM.is_started() && player._inEventDM)
                                                        || (CTF.is_started() && player._inEventCTF)
                                                        || player.isInFunEvent()
-                                                       || player.isPendingRevive());
+                                                       || player.isPendingRevive()
+                                                       || (player.isInsideZone(L2Character.ZONE_MULTIFUNCTION) && L2MultiFunctionZone.revive));
                }
                _charObjId = cha.getObjectId();
                _fake = !cha.isDead();
 
something from here is wrong.
if your error continue search for 1 clean Die.java file in google and search for the differences with yours Die.java file
Edited by nikosdevil20
  • 0
Posted
/*

 * 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 2, 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, write to the Free Software

 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA

 * 02111-1307, USA.

 *


 */

package com.l2jfrozen.gameserver.network.serverpackets;

 

import com.l2jfrozen.gameserver.datatables.AccessLevel;

import com.l2jfrozen.gameserver.datatables.sql.AccessLevels;

import com.l2jfrozen.gameserver.managers.CastleManager;

import com.l2jfrozen.gameserver.managers.FortManager;

import com.l2jfrozen.gameserver.model.L2Attackable;

import com.l2jfrozen.gameserver.model.L2Character;

import com.l2jfrozen.gameserver.model.L2SiegeClan;

import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;

import com.l2jfrozen.gameserver.model.entity.event.CTF;

import com.l2jfrozen.gameserver.model.entity.event.DM;

import com.l2jfrozen.gameserver.model.entity.event.TvT;

import com.l2jfrozen.gameserver.model.entity.siege.Castle;

import com.l2jfrozen.gameserver.model.entity.siege.Fort;

 

/**

 * sample 0b 952a1048 objectId 00000000 00000000 00000000 00000000 00000000 00000000 format dddddd rev 377 format

 * ddddddd rev 417

 * 

 * @version $Revision: 1.3.3 $ $Date: 2009/04/29 00:46:18 $

 */

public class Die extends L2GameServerPacket

{

private static final String _S__0B_DIE = " 06 Die";

private int _charObjId;

private boolean _fake;

private boolean _sweepable;

private boolean _canTeleport;

private AccessLevel _access = AccessLevels.getInstance()._userAccessLevel;

private com.l2jfrozen.gameserver.model.L2Clan _clan;

L2Character _activeChar;

 

/**

* @param cha 

*/

public Die(L2Character cha)

{

_activeChar = cha;

if(cha instanceof L2PcInstance)

{

L2PcInstance player = (L2PcInstance) cha;

_access = player.getAccessLevel();

_clan = player.getClan();

_canTeleport = !((TvT.is_started() && player._inEventTvT)

|| (DM.is_started() && player._inEventDM)

|| (CTF.is_started() && player._inEventCTF)

|| player.isInFunEvent()

|| player.isPendingRevive());

}

_charObjId = cha.getObjectId();

_fake = !cha.isDead();

if(cha instanceof L2Attackable)

{

_sweepable = ((L2Attackable) cha).isSweepActive();

}

 

}

 

@Override

protected final void writeImpl()

{

if(_fake)

return;

 

writeC(0x06);

 

writeD(_charObjId);

// NOTE:

// 6d 00 00 00 00 - to nearest village

// 6d 01 00 00 00 - to hide away

// 6d 02 00 00 00 - to castle

// 6d 03 00 00 00 - to siege HQ

// sweepable

// 6d 04 00 00 00 - FIXED

 

writeD(_canTeleport ? 0x01 : 0);   // 6d 00 00 00 00 - to nearest village

 

if(_canTeleport && _clan != null)

{

L2SiegeClan siegeClan = null;

Boolean isInDefense = false;

Castle castle = CastleManager.getInstance().getCastle(_activeChar);

Fort fort = FortManager.getInstance().getFort(_activeChar);

 

if(castle != null && castle.getSiege().getIsInProgress())

{

//siege in progress

siegeClan = castle.getSiege().getAttackerClan(_clan);

if(siegeClan == null && castle.getSiege().checkIsDefender(_clan))

{

isInDefense = true;

}

}

else if(fort != null && fort.getSiege().getIsInProgress())

{

//siege in progress

siegeClan = fort.getSiege().getAttackerClan(_clan);

if(siegeClan == null && fort.getSiege().checkIsDefender(_clan))

{

isInDefense = true;

}

}

 

writeD(_clan.getHasHideout() > 0 ? 0x01 : 0x00); // 6d 01 00 00 00 - to hide away

writeD(_clan.getHasCastle() > 0 || _clan.getHasFort() > 0 || isInDefense ? 0x01 : 0x00); // 6d 02 00 00 00 - to castle

writeD(siegeClan != null && !isInDefense && siegeClan.getFlag().size() > 0 ? 0x01 : 0x00); // 6d 03 00 00 00 - to siege HQ

}

else

{

writeD(0x00); // 6d 01 00 00 00 - to hide away

writeD(0x00); // 6d 02 00 00 00 - to castle

writeD(0x00); // 6d 03 00 00 00 - to siege HQ

}

 

writeD(_sweepable ? 0x01 : 0x00); // sweepable  (blue glow)

writeD(_access.allowFixedRes() ? 0x01 : 0x00); // 6d 04 00 00 00 - to FIXED

}

 

/* (non-Javadoc)

* @see com.l2jfrozen.gameserver.serverpackets.ServerBasePacket#getType()

*/

@Override

public String getType()

{

return _S__0B_DIE;

}

}

 

 

Here is the code

  • 0
Posted

It's a NPE error, something in your source contains null value , maybe the location? Why don't you get support from the pack's owner ?

  • 0
Posted (edited)

I have removed them but.. look the picture http://prntscr.com/3gft5p

go data/zones/peace_zones and search for multifunction zone and remove it. and as i see you have clanwarzone in your pack. i dont know what is this sh1t clanwarzone but if you have remove it and this from source remove it and from data/zones/find the file of clanwarzone

Edited by nikosdevil20
  • 0
Posted

go data/zones/peace_zones and search for multifunction zone and remove it. and as i see you have clanwarzone in your pack. i dont know what is this sh1t clanwarzone but if you have remove it and this from source remove it and from data/zones/find the file of clanwarzone

data/zones/peace_zones cant find it,login at skype.

  • 0
Posted

data/zones/peace_zones cant find it,login at skype.

go data/zones and go in search bar write multi kai meta pata periexomena arxeiou kai opoio arxeio s vgalei anoixeto kai kane search gia multi

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

    • Added the protection module to the demo.   DDoS Guard Pro v2.0 is a system protection module for PlayMMO CMS designed to reduce the load on the website during HTTP floods, bot activity, suspicious frequent requests, and attacks on individual pages or API methods. Unlike simple global limiters, DDoS Guard Pro v2.0 supports flexible rules based on routes and HTTP methods. This allows you to block the entire site in a targeted manner, rather than blocking the entire site equally. You can set up protection for specific areas of the site, such as login, registration, APIs, administration, forms, and other sensitive areas. What is the purpose of the module? DDoS Guard Pro v2.0 helps protect your site from basic L7 attacks at the HTTP request level. The module is useful when your site receives: frequent requests from a single IP address; HTTP page floods; login or registration form flooding; automatic requests from bots; URL scanning; frequent API requests; suspicious activity spikes; load on individual CMS methods or pages. The module helps to reduce the load on PHP and CMS by limiting suspicious activity before it starts to create a serious load on the site. Main features Per-route and per-method Rate Limit In the new version, protection is configured not only globally, but also according to specific rules. You can set limits separately for: GET; POST; PUT; PATCH; DELETE; ALL. This allows you to flexibly protect different parts of your website. For example: for the login page, you can set a strict limit; for registration, you can set a separate limit; for the API, you can set a limit for reading and a limit for changing data; for regular website pages, you can set a soft limit or not set a limit at all. This approach reduces the risk of accidentally blocking regular users and makes the protection more accurate. Flexible rule system The module supports setting rules in the following format: METHODS|PATTERN|LIMIT|WINDOW|BURST_LIMIT|BURST_WINDOW|BLOCK_SECONDS|IDENTITY|NAME Example of rules: POST|*login*|10|60|5|10|600|ip|login_post POST|*register*|8|60|4|10|600|ip|register_post GET|*api*|300|60|80|10|120|ip|api_get PUT,PATCH,DELETE|*api*|80|60|20|10|300|ip|api_write This allows you to specify exactly: which HTTP methods to protect; which URLs or URL patterns to consider; how many requests are allowed; over what time period; what burst limit to use;  how many seconds to block the offender;  by which ID to count the limit;  what the rule is called. Burst protection against sharp spikes  In addition to the regular request limit, the module monitors sharp spikes of activity.  This is useful when a bot makes many requests in a few seconds. In this case, the protection can be activated faster, without waiting for the overall limit per minute.  Burst protection is especially useful for: authorization pages; registration; API; search; data submission forms; administrative sections. Support for different types of requests DDoS Guard Pro v2.0 works not only with POST requests. The module can control: GET — regular pages, API requests, search; POST — forms, login, registration, data submission; PUT — updating data via API; PATCH — partial data update; DELETE — data deletion; ALL — all methods at once. This makes the module suitable not only for regular sites, but also for CMS with API, personal accounts, game panels and administrative actions. Limit storage: Redis, APCu and file fallback In the new version, the module supports several options for storing temporary data. Available modes: Redis; APCu; file fallback. The auto mode tries to use the most suitable option: Redis; APCu; file storage as a fallback. Redis or APCu are suitable for more efficient operation, while the file storage is left as a fallback option for simple hosting environments that do not have additional extensions. JSONL logging The module records protection events in JSON Lines format. Logs are saved in the following file: storage/logs/ddos_guard.jsonl This format is more convenient than a regular text log, because each event is stored as a separate JSON record. The logs can record the following information: event time; IP address; HTTP method; URL; name of the triggered rule; reason for blocking; number of requests; action status; user-agent; protection mode. The JSONL format is convenient for analysis by external tools, log agents, and monitoring systems. Prometheus metrics DDoS Guard Pro v2.0 adds an endpoint for receiving metrics in Prometheus format. Endpoint: /?ddos_guard_metrics=TOKEN The token is set in the module settings. Metrics allow you to track: the number of processed requests; the number of rule activations; the number of blocks; activity by limits; protection events; module status. This allows you to connect monitoring and configure alerts so that the administrator can see when suspicious activity starts on the site. LOG ONLY mode The module has a LOG ONLY mode. In this mode, DDoS Guard Pro does not block users, but only records events and potential triggers in the log. This mode is recommended to be used after installation, in order to first see which rules are triggered, and only then to enable the real blocking.  This helps to avoid too strict limits and random blocking of regular users.  Support for Cloudflare and proxy  The module supports working behind Cloudflare or another reverse proxy.  With proper configuration, it is possible to take into account the real IP of the user, and not the IP of the proxy server.  This is important for sites that use:  Cloudflare; nginx reverse proxy; load balancers; CDN; hosting proxy protection. Nginx-recommendations DDoS Guard Pro v2.0 contains an example nginx-config: modules/ddos_guard/nginx-ddos-guard-example.conf This allows you to use the module as an additional application layer of protection, and to move the main coarse limits to the nginx level. Recommended protection scheme: Cloudflare / nginx / firewall → DDoS Guard Pro → PlayMMO CMS This approach is more correct than trying to solve all problems only at the PHP level.
  • 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..