-
Posts
2,418 -
Joined
-
Last visited
-
Days Won
9 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by GsL
-
So what i change guys say me exacly reason i ask it like that i m newbie with that F@cking Machine *Eclipse* i change this if (i.getEnchantLevel() > 3) to this if (i.getGradeLevel() > 3) ( 3 = B garde) And after from that where i go??? and wht i replace?
-
Index: com/l2jfrozen/gameserver/model/L2Character.java =================================================================== --- com/l2jfrozen/gameserver/model/L2Character.java (revision 948) +++ com/l2jfrozen/gameserver/model/L2Character.java (working copy) @@ -340,6 +340,9 @@ /** The Constant ZONE_DANGERAREA. */ public static final int ZONE_DANGERAREA = 16384; + /** The Constant ZONE_NEWBIE. */ + public static final int ZONE_NEWBIE = 16385; + /** The _current zones. */ private int _currentZones = 0; Index: com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java =================================================================== --- com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java (revision 0) +++ com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java (revision 0) @@ -0,0 +1,83 @@ +/* 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. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package com.l2jfrozen.gameserver.model.zone.type; + +import com.l2jfrozen.gameserver.datatables.csv.MapRegionTable; +import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.zone.L2ZoneType; + +/** + * + * @author Leki + */ +public class L2NewbieZone extends L2ZoneType +{ + public L2NewbieZone(int id) + { + super(id); + } + + @Override + protected void onEnter(L2Character character) + { + if(character instanceof L2PcInstance) + { + L2PcInstance player = (L2PcInstance) character; + for (L2ItemInstance i : player.getInventory().getItems()) + { + if (!player.isGM()) + { + if (i.isEquipable()) + { + if (i.getEnchantLevel() > 3) + { + player.sendMessage("You can enter to this zone if your items aren't enchant more than 3"); + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + } + } + } + if(!player.isGM() && player.isFlying()) + { + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + character.setInsideZone(L2Character.ZONE_NEWBIE, true); + } + } + + @Override + protected void onExit(L2Character character) + { + if(character instanceof L2PcInstance) + { + character.setInsideZone(L2Character.ZONE_NEWBIE, false); + } + } + + @Override + public void onDieInside(L2Character character) + {} + + @Override + public void onReviveInside(L2Character character) + {} +} \ No newline at end of file Index: com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (revision 948) +++ com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -21,6 +21,7 @@ import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.model.Inventory; +import com.l2jfrozen.gameserver.model.L2Character; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; @@ -135,7 +136,13 @@ activeChar.setActiveEnchantItem(null); return; } + if(activeChar.isInsideZone(L2Character.ZONE_NEWBIE)) + { + activeChar.sendMessage("You can't enchant in newbie zone!"); + return; + } + /* if(!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_ENCHANT)) { I Wanna change this code from echant check to Grade check can some1 help me with that?
-
Index: com/l2jfrozen/gameserver/model/L2Character.java =================================================================== --- com/l2jfrozen/gameserver/model/L2Character.java (revision 948) +++ com/l2jfrozen/gameserver/model/L2Character.java (working copy) @@ -340,6 +340,9 @@ /** The Constant ZONE_DANGERAREA. */ public static final int ZONE_DANGERAREA = 16384; + /** The Constant ZONE_NEWBIE. */ + public static final int ZONE_NEWBIE = 16385; + /** The _current zones. */ private int _currentZones = 0; Index: com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java =================================================================== --- com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java (revision 0) +++ com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java (revision 0) @@ -0,0 +1,83 @@ +/* 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. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package com.l2jfrozen.gameserver.model.zone.type; + +import com.l2jfrozen.gameserver.datatables.csv.MapRegionTable; +import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.zone.L2ZoneType; + +/** + * + * @author Leki + */ +public class L2NewbieZone extends L2ZoneType +{ + public L2NewbieZone(int id) + { + super(id); + } + + @Override + protected void onEnter(L2Character character) + { + if(character instanceof L2PcInstance) + { + L2PcInstance player = (L2PcInstance) character; + for (L2ItemInstance i : player.getInventory().getItems()) + { + if (!player.isGM()) + { + if (i.isEquipable()) + { + if (i.getEnchantLevel() > 3) + { + player.sendMessage("You can enter to this zone if your items aren't enchant more than 3"); + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + } + } + } + if(!player.isGM() && player.isFlying()) + { + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + character.setInsideZone(L2Character.ZONE_NEWBIE, true); + } + } + + @Override + protected void onExit(L2Character character) + { + if(character instanceof L2PcInstance) + { + character.setInsideZone(L2Character.ZONE_NEWBIE, false); + } + } + + @Override + public void onDieInside(L2Character character) + {} + + @Override + public void onReviveInside(L2Character character) + {} +} \ No newline at end of file Index: com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (revision 948) +++ com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -21,6 +21,7 @@ import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.model.Inventory; +import com.l2jfrozen.gameserver.model.L2Character; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; @@ -135,7 +136,13 @@ activeChar.setActiveEnchantItem(null); return; } + if(activeChar.isInsideZone(L2Character.ZONE_NEWBIE)) + { + activeChar.sendMessage("You can't enchant in newbie zone!"); + return; + } + /* if(!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_ENCHANT)) { Anti na einai Mexri +3 thelw na einai Mexri B grade alaksa to (i.getEnchantLevel() > 3) se (i.getGradeLevel() > 3) Alla tipota den egine isa isa p mallon xalasa k to code :/ as m pei kapoios tpt euxaristw :/
-
<zone id='13007' type='Newbie' shape='NPoly' minZ='-3200' maxZ='-2200' /> <!-- Cedric's Training Hall --> <stat name='name' val='NewbieZone'/> </zone> <----- i remove this and work fine :) I wanna change to Grade but i cant do it vampir say to me just change {RequestEchant} to {RequestGrade} but as my friend see need more work right??
-
i get error At gameserver when i start it and i get a second error if i remove newbie zone all is fine i add this one .. and i delete the original </zone> <zone id='13007' type='Newbie' shape='NPoly' minZ='-3200' maxZ='-2200' /> <!-- Cedric's Training Hall --> <stat name='name' val='NewbieZone'/> </zone>
-
Hello i fix code at eclipse with a friend without Error but when we add ZONE get error what hapend?? what is wrong?? we dont change something at code*
-
-
Can some1 Fix That for L2jfrozen Interlude?
-
[Guide]How to Find LineageEffect's.
GsL replied to Lucky Dice's topic in Client Development Discussion
http://www.acordero.org/projects/unreal-tournament-package-tool/ here is a site where have That TOOL -
[Guide]How to Find LineageEffect's.
GsL replied to Lucky Dice's topic in Client Development Discussion
-
i say it xd
-
[REQUEST] Zitaw 1 Dev gia na m fix 1 Code
GsL replied to GsL's question in Request Server Development Help [Greek]
up -
Really nice ECHANT RATES :)
-
LOL!!!!! yes tell to he your name maybe he give u some items for your good words :) joke xd
-
i knew server with 25 + wipes xd 2 is low number xd
-
Lineage 2 - Fallen World, Midrate, Never seen before features. SOON™
GsL replied to Sinnocent's topic in Private Servers
nc features -
den xreiazete re file na zitas sugnwmi siga more. to share p ekanes prin apo auto emena me helpares para polu egw den kolao min anisixis!! eisai oreos!!! sunexise :)
-
Nai alla otan theleis enan custom server xreiazonte gia na kaneis to diko build:) egw dld tha ta add ston custom p etoimazw..
-
L2J-SWAIN A New Different L2 with unique features!!! *HARD-PVP*
GsL replied to GsL's topic in Private Servers
I have a friend with real good PC and real strong internet and maybe host there about why i ask a free code?? in this days i havent money to spend for l2 and thats why i ask it for free doesnt mean what i will fix a server with all free i will give money and if u see server will open after about 2-3 months and website will be normal i hate that free websites.. I now live with very little money in the future but I think I could manage to lift the burden of server (future i mean 2-3 months i will get some money from my job*) I really want to give you my ideas that I should have been the Lineage2 ʹ please take care of my idees not my English! -
L2J-SWAIN A New Different L2 with unique features!!! *HARD-PVP*
GsL replied to GsL's topic in Private Servers
which criticism is accepted :) i cant undestand irony becuse i dont like it sweet :) y -
L2J-SWAIN A New Different L2 with unique features!!! *HARD-PVP*
GsL replied to GsL's topic in Private Servers
Thank you for your warm support Mr Intrepid :) -
L2J-SWAIN A New Different L2 with unique features!!! *HARD-PVP*
GsL replied to GsL's topic in Private Servers
Ok guys My answer will be in game :) dont worry i know basic .. but i do some mistakes .. but here i m not to teach you english but to give you my work and to have nice time in my server and something new!!! As i say you before ^^ which criticism is accepted ^^ Please READ my Features i make Every Day Updates to Features!!! Say m what you will like to see in my l2server where no1 havent!!! many things will on my server with POLL * like the place of EVENTS!!

