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

    • New user panel SOURCE $ 200 for source code. R$ 1000,00 BRL for source code.    
    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
  • 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