Jump to content

Recommended Posts

Posted

Hello guys another interlude event coded by me.This one register the players into 2 teams The attackers and the defenders.Tha attackers are spawned outside of stutgart castle and they have to kill the 3 flags within 10 minutes.If they do the event stops automatically and rewards the attackers if not the defenders win. here are some pictures!

Register Proccess:

Z1cbLXQ.jpg

RDolo2W.jpg

 

Teleporting players:

s5sCXyQ.jpg

t0DI8hl.jpg

 

Photo of the flags:

v9B7iRS.jpg

ku3y8n6.jpg

 

i hope you like it here is the link that contains both dp and core part leave a nice comment thanks!

http://www.4shared.com/office/SRreSkT5/corecastle.html?

 

:not bad: :not bad:

Posted

if any flag killed it iwill win attacker even if its not the third

:

+        		if (getNpcId() == 36006)
+        			{
+        				if(!CastleWars.isFinished)
+        				{
+        					CastleWars.flagskilled++;
+        					CastleWars.attackersWin();
+        				}
+        				
+        			}
         

 

you should check

if(CastleWars.flagskilled == 3){
CastleWars.attackersWin();
}

Posted

if any flag killed it iwill win attacker even if its not the third

:

+        		if (getNpcId() == 36006)
+        			{
+        				if(!CastleWars.isFinished)
+        				{
+        					CastleWars.flagskilled++;
+        					CastleWars.attackersWin();
+        				}
+        				
+        			}
         

 

you should check

if(CastleWars.flagskilled == 3){
CastleWars.attackersWin();
}

 

Nope if you read the code you will see that this check CastleWars.flagskilled == 3 is already implemented in CastleWars.attackersWin() method ;)

Posted

Thanks bro!!!

 

Am I the only one around here who thinks that this fast coded events are buggy? o_0 btw gj for your work mate

Posted

Am I the only one around here who thinks that this fast coded events are buggy? o_0 btw gj for your work mate

Feel free to report any bugs if you find them i will be pleased to fix them i did some test before sharing them but neither do i think that it was enough to say that they were trully bugless

Posted

Thanks dude i will!

for example what happens if a player logouts or gets crashed? or what happens if we have a karma situation or cursed weapon... Or what happens if you leave the area... I mean this events need more time...

Posted

for example what happens if a player logouts or gets crashed? or what happens if we have a karma situation or cursed weapon... Or what happens if you leave the area... I mean this events need more time...

at happens if we have a karma situation or cursed weapon. i didn't add exception for that neither the player crashed,(although since the defaults are false in l2pcinstance after an rr it will resolve it's self) because i am working on an event engine with marwan and i will add exception for all events there..

Posted

omg, how to start event????? i watched script 10x times and didn't find a command... ? and in script where is 1 problem in frozen in this part " if (CastleWars.isRunning && (isinCastleWars && pk.isinCastleWars)" the problem is that variable " pk"  is not found.

Posted

omg, how to start event????? i watched script 10x times and didn't find a command... ? and in script where is 1 problem in frozen in this part " if (CastleWars.isRunning && (isinCastleWars && pk.isinCastleWars)" the problem is that variable " pk"  is not found.

Then your project is different than the one i coded also about the start thingy just make an admin command and put that inside CastleWars.openRegi();

Guest
This topic is now closed to further replies.



  • Posts

    • Added: 🎁 Seasonal Bonus System When the seasonal bonus is enabled, players receive additional bonus coins equal to bonus_season_percent of their donation amount. 💡 How it works (example): A player donates through their personal account and immediately receives regular coins. At the same time, bonus coins equal to 30% of the donation are credited. Example: Donation: 1000 coins → Bonus: 300 coins (30%) These bonus coins are not available immediately — they can be claimed later when the next season begins. 📅 When the bonus can be claimed: bonus_season_claim_start_date – the date when the "Claim" button becomes available. bonus_season_claim_end_date – the date after which the bonus can no longer be claimed. During this time window, the "Claim" button will appear in the personal account, allowing players to collect their accumulated bonus. 'bonus_season_enabled' => true, // Enable/disable the seasonal bonus system 'bonus_season_percent' => 30, // Percentage of the donation to be given as bonus coins (30 = 30%) 'bonus_season_claim_start_date' => '2025-07-30 00:00:00', // Date when the Claim button becomes available in the new season   'bonus_season_enabled' => true, // Вкл./Выкл Сезонную бонусную систему? 'bonus_season_percent' => 30, // Процент, при донате получает монеты в процентах 30 = 30%, которые может использовать в следующем открытии 'bonus_season_claim_start_date' => '2025-07-30 00:00:00', // Дата когда доступна кнопка Claim в новом сезоне 'bonus_season_claim_end_date' => '2025-08-15 20:00:00', // Дата окончания когда кнопка Claim в новом сезоне
    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market  
    • HELLO EVERYONE. WE ARE SELLING A LOT OF ADENA ON L2 REBORN DISCORD - GODDARDSHOP   HURRY TO BUY OR YOU MAY NOT MAKE IT!!!
    • you can find the extender at GX-EXT Discord! http://prntscr.com/coUwKnD4Zs_w https://l2servers.com.ar/   @GX-Ext
  • 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