-
Posts
108 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by shawshaw
-
[SHARE] Hero status Script L2J
shawshaw replied to Strength's topic in Server Development Discussion [L2J]
this one doesn't show any heroes, it will show olympiad rankings! what a dumb... -
[SHARE] Hero status Script L2J
shawshaw replied to Strength's topic in Server Development Discussion [L2J]
delete.. sorry double post... lagging.. -
yep im using eclipse... btw is it possible to disable holding CTRL for all skill if ever a player enter this zone? because i think that should do it, + i already added no_dropitem if ever a char has a karma..
-
ok here's my work.. i based it on siege, i can attack directly other chars(without holding CTRL or macro with /attackforce), since i added pvp_zone in it, but my problem is i can't get the characters flag, so that they can get pvp/pk(+karma) points.. give me some corrections plox Index: java/com/l2jserver/gameserver/model/zone/type/L2ChaoticZone.java =================================================================== --- java/com/l2jserver/gameserver/model/zone/type/L2ChaoticZone.java (revision 0) +++ java/com/l2jserver/gameserver/model/zone/type/L2ChaoticZone.java (revision 0) @@ -0,0 +1,77 @@ +/* + * 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 com.l2jserver.gameserver.model.zone.type; + +import com.l2jserver.gameserver.model.actor.L2Character; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.zone.L2ZoneType; +import com.l2jserver.gameserver.network.SystemMessageId; +import com.l2jserver.gameserver.network.serverpackets.SystemMessage; + +/** + * Chaotic Zone + * + * @author ShawShaw + */ +public class L2ChaoticZone extends L2ZoneType +{ + /** + * @param id + */ + protected L2ChaoticZone(int id) + { + super(id); + // TODO Auto-generated constructor stub + } + + @Override + protected void onEnter(L2Character character) + { + character.setInsideZone(L2Character.ZONE_PVP, true); + character.setInsideZone(L2Character.ZONE_CHAOTIC, true); + character.setInsideZone(L2Character.ZONE_NOITEMDROP, true); + + + if (character instanceof L2PcInstance) + { + if (!character.isInsideZone(L2Character.ZONE_PVP)) + ((L2PcInstance) character).sendPacket(SystemMessage.getSystemMessage(SystemMessageId.ENTERED_CHAOTIC_ZONE)); + } + } + + @Override + protected void onExit(L2Character character) + { + character.setInsideZone(L2Character.ZONE_PVP, false); + character.setInsideZone(L2Character.ZONE_CHAOTIC, false); + character.setInsideZone(L2Character.ZONE_NOITEMDROP, false); + + if (character instanceof L2PcInstance) + { + if (!character.isInsideZone(L2Character.ZONE_PVP)) + ((L2PcInstance) character).sendPacket(SystemMessage.getSystemMessage(SystemMessageId.LEFT_CHAOTIC_ZONE)); + } + } + + @Override + public void onDieInside(L2Character character) + { + } + + @Override + public void onReviveInside(L2Character character) + { + } +} Index: java/com/l2jserver/gameserver/network/SystemMessageId.java =================================================================== --- java/com/l2jserver/gameserver/network/SystemMessageId.java (revision 4967) +++ java/com/l2jserver/gameserver/network/SystemMessageId.java (working copy) @@ -14693,6 +14693,18 @@ public static final SystemMessageId THOMAS_D_TURKEY_DISAPPEARED; /** + * ID: 6508<br> + * Message: You have entered a chaotic zone. + */ + public static final SystemMessageId ENTERED_CHAOTIC_ZONE; + + /** + * ID: 6509<br> + * Message: You have left a chaotic zone. + */ + public static final SystemMessageId LEFT_CHAOTIC_ZONE; + + /** * Array containing all SystemMessageIds<br> * Important: Always initialize with a length of the highest SystemMessageId + 1!!! */ @@ -17116,6 +17128,8 @@ THOMAS_D_TURKEY_APPEARED = new SystemMessageId(6503); THOMAS_D_TURKEY_DEFETED = new SystemMessageId(6504); THOMAS_D_TURKEY_DISAPPEARED = new SystemMessageId(6505); + ENTERED_CHAOTIC_ZONE = new SystemMessageId(6508); //Must be added in systemessage (client side) too (example: you have entered chaotic zone) + LEFT_CHAOTIC_ZONE = new SystemMessageId(6509); //Must be added in systemessage (client side) too (example:you have left chaotic zone buildFastLookupTable(); } Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 4967) +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -2000,6 +2004,13 @@ ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE2); sendPacket(cz); } + else if (isInsideZone(ZONE_CHAOTIC)) + { + if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2) return; + _lastCompassZone = ExSetCompassZoneCode.SIEGEWARZONE2; + ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE2); + sendPacket(cz); + } else if (isInsideZone(ZONE_PVP)) { Index: java/com/l2jserver/gameserver/model/actor/L2Character.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/L2Character.java (revision 4967) +++ java/com/l2jserver/gameserver/model/actor/L2Character.java (working copy) @@ -205,8 +205,9 @@ public static final byte ZONE_ALTERED = 19; public static final byte ZONE_NOBOOKMARK = 20; public static final byte ZONE_NOITEMDROP = 21; + public static final byte ZONE_CHAOTIC = 22; - private final byte[] _zones = new byte[22]; + private final byte[] _zones = new byte[23]; protected byte _zoneValidateCounter = 4; private L2Character _debugger = null; if (_lastCompassZone == ExSetCompassZoneCode.PVPZONE) return;
-
no ofc not, im not depending everytime to someone else.. and P.S I'm not running any server,and i don't want too, it's a waste of money.. but i wanna learn java,because someday, mb i can help some of my friend's server, etc..... yup i'm doin research and Annalise now.. anyways tnx for the response.. This chaotic zone is getting on my nerves. :D
-
try this one... maybe it will work for you.. Killing Spree
-
well, not all server owner do have expertise in java, some of them just learned by Annalise and research,that's what I'm doing now.. And ofc by asking to those who know deeply about java.. As what the title said, why would i ask this kind of topic if i know about it? and if someone can't help it, then this topic is helpless.. someone should lock it. my last post <-- .
-
if anyone played on l2blaze before does anybody here know what raidboss was that on EMERALD SQUARE?
-
i wish i was java expert... for real, i don't know how to do it..
-
[Collection][Share]AIO Freya Npc's
shawshaw replied to `NeverMore's topic in Server Development Discussion [L2J]
sup meng.. nice share... anyways, can you make a Top Clan pvp/pk rank? it's like it will combine all clan member's pk & pvp points for the clan... -
[SHARE] NPC TOP PvP, PK, Adena, Nobless, Clan In Game
shawshaw replied to bauwbas's topic in Server Shares & Files [L2J]
EDIT: i was gonna reply at your work... -
thanks...
-
Sorry if ever im in the wrong section I've been looking for 2 year about this zone i really wanted, i already used search button from different search site,including maxcheaters... i was looking for "CHAOTIC ZONE" , it's like a pvp zone, but in this zone your name can be flag, and you can pk. but you cannot drop anything even if you have 5000 pks... hope you got my point.. Btw this zone is not rare, because most lineage server have this kind of zone, which makes the server fun... thanks in advance! i hope.
-
[help]Auto-spawn and unspawn the npc
shawshaw posted a question in Request Server Development Help [L2J]
Hi mengs.. i have a solo instance event by Bloodshed,and i wanted it's NPC to be auto spawn and auto unspawn. So,can anyone help me with auto npc spawn and unspawn with interval (every 2 hours etc..) i found 1 in custom datapack but it's kinda old and it's not working with freya.. here's the code: #script constructed from parts from Electra, theOne and others, not written by me, thanks to all that contribute and share so we can put this stuff together!! import sys import time from com.l2jserver.gameserver import Announcements from java.lang import System from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jserver.gameserver.model.actor.instance import L2PcInstance class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.startQuestTimer("timer101",60000,None,None,True) #when set to True, the timer will repeat itself indefinitely def onAdvEvent(self,event,npc,player) : if event == "timer101" : now = time.strftime("%H:%M") if now == "01:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "03:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "05:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "07:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "09:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "11:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "13:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "15:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "17:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "19:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "21:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); elif now == "23:00" : self.addSpawn(77732138,-90771,150017,-3627,0,False,590000) Announcements.getInstance().announceToAll("Teleporter has Spawned"); QUEST = Quest(90003,"90003_TvTTeleport_Buffs","TvTTeleport_Buffs") print "TvT Buffs Teleport Loaded!!!!" Thank you in advance for those who ever help me with this... peace.. -
i added the announcement after it, but the problem is everytime a character die, it always announce, even the character that been killed don't have any kill streak yet
-
aha
-
i know this share is kinda old.. but if you don't mind? can you add a "stop the killing streak" when players die? example, and player is already dominating, and somone kill him, and then it will reset his/her kill streak to 0, and it will announce 'Player1 just stop the killing streak o player2"
-
[Share]Visual NPC to PC transform [Freya/High Five]
shawshaw replied to pipiou21's topic in Server Shares & Files [L2J]
make sure the ID you put in FakePc table must be a real Npc ID from customNpc/Npc tables.. -
skill restriction item
shawshaw replied to shawshaw's question in Request Server Development Help [L2J]
i dont really have any idea where to start! or how to start the code... peace! :D -
hey do you have an AIO Buffer restriction? so the buffer cannot use it's skill outside peace zone... if you have, kindly share..
-
skill restriction item
shawshaw replied to shawshaw's question in Request Server Development Help [L2J]
btw what about using AccessLevel? if i give a char accesslevel example 5,then that char with accesslevel 5, will no longer can use any skill outside peace zone.. because i have a delevel manager with xp toggle, and change a player accesslevel to 20.. hhmmmm.. -
skill restriction item
shawshaw replied to shawshaw's question in Request Server Development Help [L2J]
+1 ... better to share with all your heart than to criticize someone tried to helped.. :) -
skill restriction item
shawshaw replied to shawshaw's question in Request Server Development Help [L2J]
btw the first post with this topic is asking/requesting for the code. How am i suppose to code for others while i can't even code for myself? :P and im not a java scripter, im a damn Airline Engineer,weird huh? but what's wrong with it if i enjoy learning some java from other's advice and teaching? nothings wrong at all.. anyways, it's not that important tho.. let's just forget what i posted.. :)) ..thanks for the time.. ciao. -
Freya Fake PC H5 Fake PC
-
skill restriction item
shawshaw replied to shawshaw's question in Request Server Development Help [L2J]
yes it blocks those type of skills and i can add more type, like PDAM MDAM COMBATPOINTHEAL and etc.. What i need is, to put this code in an "ITEM", where if an AIO buffer will have that ITEM, that buffer will no longer can use it skills outside peace zone [glow=red,2,300](for example Custom Nobless Item,if you get this Item, you will be Nobless)[/glow] just like what i need, if i put this item of an AIO buffer char, he will no longer can use any skills outside peace zone..And yes this topic is talking about the datapack, not the core.. i hope you get my point . :D
