-
Posts
284 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Gam3Master
-
please reupload. link broken.
-
Hello. I share nothing special but i think many will use it right way. With this patch you can make zones with only craft,sell and buy. For example, on Giran, you can make right side only buy, left side only sell and back side only craft. [/img] ### Eclipse Workspace Patch 1.0 #P Hero-GS Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestPrivateStoreBuy.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestPrivateStoreBuy.java (revision 14) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestPrivateStoreBuy.java (working copy) @@ -23,6 +23,7 @@ import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.PrivateStoreType; import net.sf.l2j.gameserver.model.tradelist.TradeList; +import net.sf.l2j.gameserver.model.zone.ZoneId; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.util.Util; @@ -79,6 +80,12 @@ if (!player.isInsideRadius(storePlayer, 150, true, false)) return; + if(!player.isInsideZone(ZoneId.BUY)) + { + player.sendMessage("You can't buy items on this area."); + return; + } + if (!(storePlayer.getPrivateStoreType() == PrivateStoreType.SELL || storePlayer.getPrivateStoreType() == PrivateStoreType.PACKAGE_SELL)) return; Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestRecipeShopListSet.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestRecipeShopListSet.java (revision 14) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestRecipeShopListSet.java (working copy) @@ -61,13 +61,13 @@ player.sendPacket(SystemMessageId.CANT_OPERATE_PRIVATE_STORE_DURING_COMBAT); return; } - - if (player.isInsideZone(ZoneId.NO_STORE)) + + if(!player.isInsideZone(ZoneId.CRAFT)) { player.sendPacket(SystemMessageId.NO_PRIVATE_WORKSHOP_HERE); player.sendPacket(ActionFailed.STATIC_PACKET); return; - } + } if (_count == 0) player.forceStandUp(); Index: java/net/sf/l2j/gameserver/model/zone/type/L2CraftZone.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/type/L2CraftZone.java (revision 0) +++ java/net/sf/l2j/gameserver/model/zone/type/L2CraftZone.java (working copy) @@ -0,0 +1,55 @@ +/* + * 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.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 Leki + */ +public class L2CraftZone extends L2ZoneType +{ + public L2CraftZone(final int id) + { + super(id); + } + + @Override + protected void onEnter(final L2Character character) + { + if (character instanceof L2PcInstance) + character.setInsideZone(ZoneId.CRAFT, true); + } + + @Override + protected void onExit(final L2Character character) + { + if (character instanceof L2PcInstance) + character.setInsideZone(ZoneId.CRAFT, false); + } + + @Override + public void onDieInside(final L2Character character) + { + } + + @Override + public void onReviveInside(final L2Character character) + { + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/zone/type/L2BuyZone.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/type/L2BuyZone.java (revision 0) +++ java/net/sf/l2j/gameserver/model/zone/type/L2BuyZone.java (working copy) @@ -0,0 +1,55 @@ +/* + * 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.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 Leki + */ +public class L2BuyZone extends L2ZoneType +{ + public L2BuyZone(final int id) + { + super(id); + } + + @Override + protected void onEnter(final L2Character character) + { + if (character instanceof L2PcInstance) + character.setInsideZone(ZoneId.BUY, true); + } + + @Override + protected void onExit(final L2Character character) + { + if (character instanceof L2PcInstance) + character.setInsideZone(ZoneId.BUY, false); + } + + @Override + public void onDieInside(final L2Character character) + { + } + + @Override + public void onReviveInside(final L2Character character) + { + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/zone/ZoneId.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/ZoneId.java (revision 14) +++ java/net/sf/l2j/gameserver/model/zone/ZoneId.java (working copy) @@ -38,7 +38,10 @@ DANGER_AREA(15), CAST_ON_ARTIFACT(16), NO_RESTART(17), - SCRIPT(18); + SCRIPT(18), + SELL(19), + BUY(20), + CRAFT(21); private final int _id; Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestPrivateStoreSell.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/RequestPrivateStoreSell.java (revision 14) +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestPrivateStoreSell.java (working copy) @@ -20,6 +20,7 @@ import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.PrivateStoreType; import net.sf.l2j.gameserver.model.tradelist.TradeList; +import net.sf.l2j.gameserver.model.zone.ZoneId; import net.sf.l2j.gameserver.network.SystemMessageId; public final class RequestPrivateStoreSell extends L2GameClientPacket @@ -74,6 +75,12 @@ if (!player.isInsideRadius(storePlayer, 150, true, false)) return; + if(!player.isInsideZone(ZoneId.SELL)) + { + player.sendMessage("You can't sell items on this area."); + return; + } + if (storePlayer.getPrivateStoreType() != PrivateStoreType.BUY) return; Index: java/net/sf/l2j/gameserver/model/zone/type/L2SellZone.java =================================================================== --- java/net/sf/l2j/gameserver/model/zone/type/L2SellZone.java (revision 0) +++ java/net/sf/l2j/gameserver/model/zone/type/L2SellZone.java (working copy) @@ -0,0 +1,55 @@ +/* + * 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.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 Leki + */ +public class L2SellZone extends L2ZoneType +{ + public L2SellZone(final int id) + { + super(id); + } + + @Override + protected void onEnter(final L2Character character) + { + if (character instanceof L2PcInstance) + character.setInsideZone(ZoneId.SELL, true); + } + + @Override + protected void onExit(final L2Character character) + { + if (character instanceof L2PcInstance) + character.setInsideZone(ZoneId.SELL, false); + } + + @Override + public void onDieInside(final L2Character character) + { + } + + @Override + public void onReviveInside(final L2Character character) + { + } +} \ No newline at end of file After this go to data/xml/zones. Create files SellZone.xml, BuyZone.xml and CraftZone.xml and put inside <zone type="SellZone" shape="NPoly" minZ="-x" maxZ="-z"> <node X="-x" Y="y" /> <node X="-x" Y="y" /> </zone> Zone type put that type you want, and about making zone you can look on SweeTs Guide http://www.maxcheaters.com/topic/188679-how-to-check-remove-and-add-zone Thank you.
-
Hello. Everytime I start to checkout with TortoiseSVN it starts but on middle it says: Error running context: An existing connection was forcibly closed by the remote host.
-
Discussion Which Platform Best To Choose
Gam3Master replied to bielyj's topic in Server Development Discussion [L2J]
and does it matter on which OS it is for server? -
Guide Free Html / Code / Help / Client
Gam3Master replied to tazerman2's topic in Server Shares & Files [L2J]
you work on any chronicle? -
Request Web Template In C6 Style
Gam3Master replied to Gam3Master's question in Request Server Development Help [L2J]
thank you -
Request Web Template In C6 Style
Gam3Master replied to Gam3Master's question in Request Server Development Help [L2J]
ok. i want can you share link? -
Request Web Template In C6 Style
Gam3Master replied to Gam3Master's question in Request Server Development Help [L2J]
don't tell you sell it... -
LF Max Buff Count
Gam3Master replied to Gam3Master's question in Request Server Development Help [L2J]
i found in L2Character this. /** * Check player max buff count * @return max buff count */ public int getMaxBuffCount() { return Config.BUFFS_MAX_AMOUNT + Math.max(0, getSkillLevel(L2Skill.SKILL_DIVINE_INSPIRATION)); } but what to do idon't know -
Request Web Template In C6 Style
Gam3Master posted a question in Request Server Development Help [L2J]
hello. searching for c6 or kamael interface template. buttons and background like game. http://moyweb.moy.su/_nw/7/60436.jpg like this or http://moyweb.moy.su/files/14.jpg -
hello. i am using last free acis source. added vip systrm and works without problems.can you please tel. how to make +3 buff for vip members
-
Discussion Cpu Server Dedicated
Gam3Master replied to erikson2's topic in Server Development Discussion [L2J]
what about register and statistics? should we make it work on website? -
Code Sell Buff System 1.9.0 (Interlude)
Gam3Master replied to << Masterio >>'s topic in Server Shares & Files [L2J]
can someone reshare it? -
Discussion Cpu Server Dedicated
Gam3Master replied to erikson2's topic in Server Development Discussion [L2J]
so not connect web server with gameserver is another preserv? also can you explain what means catching results specific times? -
Discussion Cpu Server Dedicated
Gam3Master replied to erikson2's topic in Server Development Discussion [L2J]
but if you don't link web site with aerver how can you show online on site, -
WTS Professional L2J Development Services
Gam3Master replied to Elfo's topic in Marketplace [L2Packs & Files]
what will be price to vip system(double rates for an amount of time) to add on last paid acis? -
Hello. Wanna buy C4 PTS pack, retail. Please write specifications and price.
-
WTS Strain'd - Client Development Services
Gam3Master replied to Strain's topic in Marketplace [L2Packs & Files]
I want to make skill panel 3 lines as it is on interlude for C4. Tell price. -
WTS Client Editing, Server Editing
Gam3Master replied to L2Mercury's topic in Marketplace [L2Packs & Files]
I want to make skill panel 3 lines as it is on interlude for C4. Tell price. -
I want to make skill panel 3 lines as it is on interlude for C4. Tell price.
-
want to buy C4 PTS pack all retail server with some differences if it is possible. As you know C4 have only 1 skills panel. I want it as interlude 3 panels. Server must have shop till c grade. Global gatekeeper to all towns/villages. No soulshot consumption. Max 30 buffs. ViP members system. VIP members should have bufeer with free buffs. Exp sp and drop rate x2. Olympiad every first day of month. Sieges every 1 week. The last and most important thing - aerver must have allowed L2Walker out of game version with max 3 connections. Please calculate and tell price.
-
I think you misunderstood me. Besides pack I want pack owner to install me this firewall or what is called to protect server from ddos attacks.
-
Hello. Want to buy a retail interlude pack, no customs. rates exp sp x20 Starting top no grade. no soulshots consumption. Giran harbor must be trading zone. fully working 7 signs Olympiad(every first day of months) Sieges (every Saturday and Sunday) Community board (shop, mammon, buffer and teleport). Shop till C grade. Buffer must have profiles to save. also Premium area from VIP buffs. Event TvT and DM. once a day. I will pay additionally if will be possible to play with L2Walker OOG(Max 3 connections) Pack must include protection from l2phx and ddos attacks. Please calculate and tell price of all this.
-
Share [Share]Another Buffer For Acis
Gam3Master replied to Gam3Master's topic in Server Shares & Files [L2J]
Imagine you speak with a boy who doesn't now java good. I would say maximum 5%, and this 5% is based only on examples and google. I think for this time i can't satisfy your requirement. But i will grow up and learn more. Anyway thanks for your opinions.