-
Posts
1,418 -
Credits
0 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by ^Wyatt
-
okz
-
You should explain which errors do you have, which code did you apply, etc etc
-
Ok, Config.java is wrong, use this ### Eclipse Workspace Patch 1.0 #P L2J_Server Index: java/com/l2jserver/gameserver/model/olympiad/Olympiad.java =================================================================== --- java/com/l2jserver/gameserver/model/olympiad/Olympiad.java (revision 6193) +++ java/com/l2jserver/gameserver/model/olympiad/Olympiad.java (working copy) @@ -586,18 +586,30 @@ { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.OLYMPIAD_PERIOD_S1_HAS_STARTED); sm.addNumber(_currentCycle); - Announcements.getInstance().announceToAll(sm); - Calendar currentTime = Calendar.getInstance(); - currentTime.add(Calendar.MONTH, 1); - currentTime.set(Calendar.DAY_OF_MONTH, 1); - currentTime.set(Calendar.AM_PM, Calendar.AM); - currentTime.set(Calendar.HOUR, 12); - currentTime.set(Calendar.MINUTE, 0); - currentTime.set(Calendar.SECOND, 0); - _olympiadEnd = currentTime.getTimeInMillis(); + int nearest = 0; + Calendar[] cals = new Calendar[Config.ALT_OLY_END_DATE.length]; + for (int i = 0; i < cals.length; i++) + { + cals[i] = Calendar.getInstance(); + cals[i].set(Calendar.DAY_OF_MONTH, Config.ALT_OLY_END_DATE[i]); + if (cals[i].before(currentTime)) + { + cals[i].add(Calendar.MONTH, 1); + } + if (cals[i].before(cals[nearest])) + { + nearest = i; + } + } + + cals[nearest].set(Calendar.HOUR_OF_DAY, Config.ALT_OLY_END_HOUR[0]); + cals[nearest].set(Calendar.MINUTE, Config.ALT_OLY_END_HOUR[1]); + cals[nearest].set(Calendar.SECOND, Config.ALT_OLY_END_HOUR[2]); + _olympiadEnd = cals[nearest].getTimeInMillis(); + Calendar nextChange = Calendar.getInstance(); _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD; scheduleWeeklyChange(); Index: java/com/l2jserver/Config.java =================================================================== --- java/com/l2jserver/Config.java (revision 6193) +++ java/com/l2jserver/Config.java (working copy) @@ -563,6 +563,8 @@ public static String CHAT_FILTER_CHARS; public static int[] BAN_CHAT_CHANNELS; public static int ALT_OLY_START_TIME; + public static int[] ALT_OLY_END_DATE; + public static int[] ALT_OLY_END_HOUR = new int[3]; public static int ALT_OLY_MIN; public static long ALT_OLY_CPERIOD; public static long ALT_OLY_BATTLE; @@ -2832,6 +2834,17 @@ } ALT_OLY_START_TIME = Integer.parseInt(Olympiad.getProperty("AltOlyStartTime", "18")); + String[] Split = Olympiad.getProperty("AltOlyEndDate", "1").split(","); + ALT_OLY_END_DATE = new int[split.length]; + for (int i = 0; i < Split.length; i++) + { + ALT_OLY_END_DATE[i] = Integer.parseInt(Split[i]); + } + Split = Olympiad.getProperty("AltOlyEndHour", "12:00:00").split(":"); + for (int i = 0; i < 3; i++) + { + ALT_OLY_END_HOUR[i] = Integer.parseInt(Split[i]); + } ALT_OLY_MIN = Integer.parseInt(Olympiad.getProperty("AltOlyMin", "00")); ALT_OLY_CPERIOD = Long.parseLong(Olympiad.getProperty("AltOlyCPeriod", "21600000")); ALT_OLY_BATTLE = Long.parseLong(Olympiad.getProperty("AltOlyBattle", "300000")); and olympiad.properties: # Olympiad End Period Date - day(s) of month # (e.g. 1 would mean oly period ends every 1st day of month) # (e.g. 1,15 would mean oly period ends every 1st and 15th day of month) # CAUTION: You should set the AltOlyWPeriod and AltOlyVPeriod according to the changes done here!</font></b> # Default: 1 AltOlyEndDate = 1 # Olympiad End Period Time - in format hh:mm:ss (24 hours format) # Default: 12:00:00 AltOlyEndHour = 12:00:00
-
But he is a player, not the admin, so he can't edit java source :y u no?:
-
Then it's client side, I hope u'll find help here, I'll try to help u aswell after launch :)
-
I said that coz in your picture u have painted with red color what I said is incorrect, but whatever...
-
:rage: Users active in past 1440 minutes = 24 hours Local time 28 August 5 PM Last active 27 August 6 PM Local time - Last active = 23 hours What the -beep- are u saying? :y u no?: Not talking 'bout the guests btw.
-
If he is not Admin and is just a player that wants the dmg in screen, he doesn't care if people likes it or not, since the only one that will see it will be him...
-
Ty :p I think I leave it finished :rage:
-
Moved to client dev help section. Btw are u admin of the server or just a player?
-
http://maxcheaters.com/forum/index.php?action=profile;area=showposts;u=156813
-
Well dunno what the hack are u doing but i think that i gave you all to add it ok. I'm sleeping now, hope u can find out whats wrong in ur workspace.
-
change String[] propertySplit = Olympiad.getProperty("AltOlyEndDate","1").split(","); for propertySplit = Olympiad.getProperty("AltOlyEndDate","1").split(","); and from Olympiad.java your void should look like this: protected void setNewOlympiadEnd() { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.OLYMPIAD_PERIOD_S1_HAS_STARTED); sm.addNumber(_currentCycle); Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance(); int nearest = 0; Calendar[] cals = new Calendar[Config.ALT_OLY_END_DATE.length]; for (int i = 0; i < cals.length; i++) { cals[i] = Calendar.getInstance(); cals[i].set(Calendar.DAY_OF_MONTH, Config.ALT_OLY_END_DATE[i]); if (cals[i].before(currentTime)) { cals[i].add(Calendar.MONTH, 1); } if (cals[i].before(cals[nearest])) { nearest = i; } } cals[nearest].set(Calendar.HOUR_OF_DAY, Config.ALT_OLY_END_HOUR[0]); cals[nearest].set(Calendar.MINUTE, Config.ALT_OLY_END_HOUR[1]); cals[nearest].set(Calendar.SECOND, Config.ALT_OLY_END_HOUR[2]); _olympiadEnd = cals[nearest].getTimeInMillis(); Calendar nextChange = Calendar.getInstance(); _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD; scheduleWeeklyChange(); }
-
the "public static int[] ALT_OLY_END_DATE;" just... CNTRL + F "ALT_OLY_ENCHANT_LIMIT" for example... and the rest just...CNTRL + F "ALT_OLY_ENCHANT_LIMIT" again and put it there...
-
Moved to [Request] General Help, has nothing to do with java, it's php.
-
How to make Blow skills work with SS?
^Wyatt replied to GLO's question in Request Server Development Help [L2J]
Ok. -
http://maxcheaters.com/forum/index.php?topic=282583.0 title with rates
-
Help Correct Full Buffs ( Fortune Seeker ) !
^Wyatt replied to Manu's topic in Request Support [English]
You should explain more what are u asking for. And probably tell us if are u playing in high/mid/low rate and how many buff slots. :dat: P.S: Moved to help section, I don't think that it's a discussion. -
Locked.
-
Ye... Olympiad.java Calendar currentTime = Calendar.getInstance(); +int nearest = 0; +Calendar[] cals = new Calendar[Config.ALT_OLY_END_DATE.length]; +for (int i = 0; i < cals.length; i++) +{ + cals[i] = Calendar.getInstance(); + cals[i].set(Calendar.DAY_OF_MONTH, Config.ALT_OLY_END_DATE[i]); + if (cals[i].before(currentTime)) + { + cals[i].add(Calendar.MONTH, 1); + } + if (cals[i].before(cals[nearest])) + { + nearest = i; + } +} +cals[nearest].set(Calendar.HOUR_OF_DAY, Config.ALT_OLY_END_HOUR[0]); +cals[nearest].set(Calendar.MINUTE, Config.ALT_OLY_END_HOUR[1]); +cals[nearest].set(Calendar.SECOND, Config.ALT_OLY_END_HOUR[2]); +_olympiadEnd = cals[nearest].getTimeInMillis(); -currentTime.add(Calendar.MONTH, 1); -currentTime.set(Calendar.DAY_OF_MONTH, 1); -currentTime.set(Calendar.AM_PM, Calendar.AM); -currentTime.set(Calendar.HOUR, 12); -currentTime.set(Calendar.MINUTE, 0); -currentTime.set(Calendar.SECOND, 0); -_olympiadEnd = currentTime.getTimeInMillis(); Calendar nextChange = Calendar.getInstance(); _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD; scheduleWeeklyChange(); Config.java public static int[] ALT_OLY_END_DATE; String[] propertySplit = Olympiad.getProperty("AltOlyEndDate","1").split(","); ALT_OLY_END_DATE = new int[propertySplit.length]; for (int i = 0; i < propertySplit.length; i++) { ALT_OLY_END_DATE[i] = Integer.parseInt(propertySplit[i]); } olympiad.properties # Olympiad End Period Date - day(s) of month # (e.g. 1 would mean oly period ends every 1st day of month) # (e.g. 1,15 would mean oly period ends every 1st and 15th day of month) # CAUTION: You should set the AltOlyWPeriod and AltOlyVPeriod according to the changes done here!</font></b> # Default: 1 AltOlyEndDate = 1 I guess it's all there, I don't find the patch. Credits:Zoey76
-
http://maxcheaters.com/forum/index.php?action=profile;area=showposts;u=54739 opening topics like a mad, english lvl -2 + poor explanation + double post + incorrect sections
-
You can try this one.
-
Yep but isn't the same systemmessage. It can be done using both ways, with different message. public static void givereward(L2PcInstance player) { if(player.isInsideZone(L2Character.ZONE_MULTIFUNCTION)) { SystemMessage systemMessage = null; for (int[] reward : rewards) { PcInventory inv = player.getInventory(); if (ItemTable.getInstance().createDummyItem(reward[0]).isStackable()) { inv.addItem("L2MultiFunctionZone ", reward[0], reward[1], player, player); if (reward[1] > 1) { systemMessage = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S); systemMessage.addItemName(reward[0]); systemMessage.addItemNumber(reward[1]); } else { systemMessage = SystemMessage.getSystemMessage(SystemMessageId.EARNED_ITEM_S1); systemMessage.addItemName(reward[0]); } player.sendPacket(systemMessage); } else { for (int i = 0; i < reward[1]; ++i) { inv.addItem("L2MultiFunctionZone ", reward[0], 1, player, player); systemMessage = SystemMessage.getSystemMessage(SystemMessageId.EARNED_ITEM_S1); systemMessage.addItemName(reward[0]); player.sendPacket(systemMessage); } } } } } or public static void givereward(L2PcInstance player) { if(player.isInsideZone(L2Character.ZONE_MULTIFUNCTION)) { for (int[] reward : rewards) { player.addItem("Multifunction Reward", reward[0], reward[1], player, true); } } }
-
This..?.. -activeChar.sendMessage(getText("VGhpcyBTZXJ2ZXIgdXNlcyBMMkosIGEgUHJvamVjdCBmb3VuZGVkIGJ5IEwyQ2hlZg==\n")); -activeChar.sendMessage(getText("YW5kIGRldmVsb3BlZCBieSB0aGUgTDJKIERldiBUZWFtIGF0IHd3dy5sMmpzZXJ2ZXIuY29t\n"));