costismaros Posted October 23, 2010 Posted October 23, 2010 Kalispera sas . Gnorizo pos mporo na alakso tin proti imera tou siege. Thelo omos to Giran Siege na ginete kathe treis imeres kai i epilogi oras apo tous Owner na ginete mesa se ena euros oron (14:00 eos 22:00) . Iparxei kapoios tropos na to epitixo auto ? Euxaristo Quote
0 costismaros Posted November 24, 2010 Author Posted November 24, 2010 To vrika se ena allo site kai to metafero . Den einai diko mou . 1. Index: java/com/l2jserver/gameserver/model/entity/Siege.java 2. =================================================================== 3. --- java/com/l2jserver/gameserver/model/entity/Siege.java (revision 3770) 4. +++ java/com/l2jserver/gameserver/model/entity/Siege.java (working copy) 5. @@ -26,7 +26,6 @@ 6. import com.l2jserver.Config; 7. import com.l2jserver.L2DatabaseFactory; 8. import com.l2jserver.gameserver.Announcements; 9. -import com.l2jserver.gameserver.SevenSigns; 10. import com.l2jserver.gameserver.ThreadPoolManager; 11. import com.l2jserver.gameserver.datatables.ClanTable; 12. import com.l2jserver.gameserver.datatables.MapRegionTable; 13. @@ -1113,14 +1112,6 @@ 14. setNextSiegeDate(); 15. } 16. 17. - if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate())) 18. - { 19. - // no sieges in Quest period! reschedule it to the next SealValidationPeriod 20. - // This is usually caused by server being down 21. - corrected = true; 22. - setNextSiegeDate(); 23. - } 24. - 25. if (corrected) 26. saveSiegeDate(); 27. } 28. @@ -1406,19 +1397,9 @@ 29. { 30. while (getCastle().getSiegeDate().getTimeInMillis() < Calendar.getInstance().getTimeInMillis()) 31. { 32. - if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY && getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) 33. - getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY); 34. - // from CT2.3 Castle sieges are on Sunday, but if server admins allow to set day of the siege 35. - // than sieges can occur on Saturdays as well 36. - if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY && !Config.CL_SET_SIEGE_TIME_LIST.contains("day")) 37. - getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); 38. - // set the next siege day to the next weekend 39. - getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7); 40. + getCastle().getSiegeDate().setTimeInMillis(getCastle().getSiegeDate().getTimeInMillis() + 604800000L); 41. } 42. 43. - if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate())) 44. - getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7); 45. - 46. SystemMessage sm = new SystemMessage(SystemMessageId.S1_ANNOUNCED_SIEGE_TIME); 47. sm.addString(getCastle().getName()); 48. Announcements.getInstance().announceToAll(sm); Parakalo opos metakinithei to topic an einai se lathos section . Aplos prospatho na kliso ta topic pou anoiksa Quote
0 xepimetheus Posted November 24, 2010 Posted November 24, 2010 vasika mporeis na to kaneis kai apo to navicat an to psakseis ligo Quote
Question
costismaros
Kalispera sas .
Gnorizo pos mporo na alakso tin proti imera tou siege.
Thelo omos to Giran Siege na ginete kathe treis imeres kai i epilogi oras apo tous Owner na ginete mesa se ena euros oron (14:00 eos 22:00) .
Iparxei kapoios tropos na to epitixo auto ?
Euxaristo
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.