Jump to content
  • 0

Castle Siege


Question

Posted

How on l2jfrozen make only Giran/Aden/Dion castle sieges? If i delete from Castle.sql everything and leave only Giran/Aden/Dion, then i got error in console and can't use any castle managers npc:

 

ecd6ff96f381b0bd475ae274bfd5a0fb653.png

Recommended Posts

  • 0
Posted
1 minute ago, melron said:

Then your brain...

 

I answered in his question about how to 'delete' some castle sieges because he cant delete them from the database. The weekly thing is not answered by me and im not gonna answer something like that. Who told you that my answer was Weekly Siege? wtf?

 

Someone is on his period today. Still if your best solution is to set 5 years for sieges to start to disable them i give up. 

  • 0
Posted
1 minute ago, Kara` said:

 

Someone is on his period today. Still if your best solution is to set 5 years for sieges to start to disable them i give up. 

no it is not 'my' solution. The solution could be by deleting the rows that you want and the server wont load the sieges for that castles. since is frozen and you cant do that i gave a temporary solution that dont need to edit the core side.

 

Once again you are wrong and i just approved the fact that you came here to blame instead of help. Good job Kara :D

  • 0
Posted (edited)

For other castles, SiegeDate: 1700000000000 (siege starts at 2023)

and your problem solved.

 

About errors on delete records, try to delete the Castle you want, and then remove it from xml/zones in your datapack. If it work good, if not, just let it start in 2023.

 

Giran/Aden/Dipn SiegeDate: 

https://www.epochconverter.com/

Edited by 'Baggos'
  • 0
Posted
9 minutes ago, 'Baggos' said:

For other castles, SiegeDate: 1700000000000 (siege starts at 2023)

and your problem solved.

 

About errors on delete records, try to delete the Castle you want, and then remove it from xml/zones in your datapack. If it work good, if not, just let it start in 2023.

de20aa4fbd81a35c8f8518dbfd64b846746.png

 

so if i make like that, it should be every week? Giran/Aden/Dion? Or i need to delete anything more?

  • 0
Posted (edited)
2 minutes ago, Dhrayn said:

so if i make like that, it should be every week? Giran/Aden/Dion? Or i need to delete anything more?

Giran/Aden/Dion SiegeDate: 

https://www.epochconverter.com/

Edited by 'Baggos'
  • 0
Posted
15 minutes ago, Dhrayn said:

so if i make like that, it should be every week? Giran/Aden/Dion? Or i need to delete anything more?

No. you can only set in database the next date. that means if you want weekly you have to change it every week manually as kara said. For weekly search in your configs about that, if not exists you have to edit your core side.

 

(Again: these values is only to 'remove' the castles you dont want)

  • 0
Posted (edited)

setNextSiegeDate Siege.java

 

getCastle().getSiegeDate().add(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);

Edited by 'Baggos'
  • Like 1
  • 0
Posted (edited)
32 minutes ago, 'Baggos' said:

setNextSiegeDate Siege.java

 

getCastle().getSiegeDate().add(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);

 

23bcc0d9987c5c2d329527db4c477d5044.png
 

518bea7be8634c598bc41171e6c220c448.png

 

8866860d658e650dfbef5e677b7d09a4307.png

 

no siege on this saturday. Maybe it's gonna start every week only after first siege?

Edited by Dhrayn
  • 0
Posted

If you still have problem with the day of sieges, compile from svn the acis files, go to Siege.java at method setNextSiegeDate and try to c/p the method and make it work for frozen..

(That's what I did for someone before some months. Also with this way you can set all castles with the day you want).

  • 0
Posted

You have to delete everything related to castles you delete, if you delete one entry on castles.sql. Notably associated zones (which is your error).

 

Regarding next date, you can easily test it by setting a really low date, which would be considered already past (at least 1 month in the past)- therefore the system recalculates the date at server start, and so you can test your edits.

  • 0
Posted
On 9/27/2018 at 7:36 PM, 'Baggos' said:

setNextSiegeDate Siege.java

 

getCastle().getSiegeDate().add(Calendar.DAY_OF_WEEK, Calendar.SATURDAY);

Where did you find this line? in what file? 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Trust and Honesty   We don’t need to brag - what matters is that you actually feel the service works the way it should. No surprises, no stress. With Vibe SMS, you can focus on your tasks knowing everything runs smoothly. Like having a friend by your side calm, reliable, and without unnecessary words.   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
    • The old Trances packs were built using Java 7, which is outdated. Our server is running on the latest Java version, fully up-to-date for 2025
    • Experience L2Gold like never before – available ONLY on Saturdays & Sundays! Custom Armors: Dynasty, Apella Custom Weapons: L2Gold Weapons Custom Jewelry: L2Gold Jewelry Custom Teleport System & AIO Buffer Custom Zones, NPCs & Raidbosses This is not just another private server – it’s a limited-time battleground for the ultimate L2 experience! Play only on weekends Website: https://l2kandra.online/ Info & Contact: https://www.facebook.com/profile.php?id=61578869175323  
    • 突发新闻! Twitter Premium(推特高级版) 现以优惠价发售!立即尝试 — 限时优惠! ➡ Twitter Premium X 订阅(适用于您的推特账户),可选 1 个月 / 1 年(任选)。需要登录授权您的推特账户。价格:每月 $7–13(每年 $75) ➡ Twitter X Premium Plus 订阅 + GROK AI 助手(适用于您的推特账户),可选 1 个月 / 1 年(任选)。需要登录授权您的推特账户。价格:每月 $48–55(每年 $480) ➡ 2010–2023 年老推特账号,带蓝色认证标志(Tier 1/2/3 国家)| 提供完整访问权限(含登录名、密码和令牌)| 价格:起价 $9 ➡ 2010–2023 年老推特 NFT 账号,带蓝色认证标志(Tier 1/2/3 国家)| 提供完整访问权限(含登录名、密码和令牌)| 价格:起价 $9 ➡ 2010–2023 年老推特账号,带蓝色认证标志 + 真实粉丝(100–20000,可自选)| Tier 1/2/3 国家 | 提供完整访问权限(含登录名、密码和令牌)| 支持补充:30+ 天 | 价格:起价 $9.5 ➡ 2010–2023 年老推特账号,带广告管理器(ADS Manager)和蓝色认证标志,并绑定信用卡 | 区域:Tier 1 国家 | 提供完整访问权限(含登录名、密码和令牌)| 价格:起价 $35 您可以在我们的网站商店或通过 Telegram 机器人购买! ➡ 数字商品商店(网站):前往 ➡ 商店 Telegram 机器人:前往 ➡ Telegram Stars 购买机器人:前往 ➡ SMM 面板:前往 – 推广您的社交媒体账户。 我们为您呈现最新的优惠与特别活动,用于购买我们平台的商品和服务: 1. 使用优惠码 OCTOBER2025(8% 折扣)在十月于我们的网站或机器人中购物!首次购买还可使用优惠码 SOCNET(15% 折扣) 2. 注册后在我们网站的论坛主题中按以下格式留言,即可获得 $1 商店余额或 10–20% 折扣:"SEND ME BONUS, MY USERNAME IS..." 3. 首次试用 SMM 面板即可获得 $1:只需在网站支持中心提交标题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道与 Telegram Stars 购买机器人每周举行 Telegram Stars 抽奖活动! 新闻资讯: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock