Boorinio Posted January 31, 2013 Posted January 31, 2013 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: Teleporting players: Photo of the flags: 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:
marwan Posted January 31, 2013 Posted January 31, 2013 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(); }
Boorinio Posted January 31, 2013 Author Posted January 31, 2013 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 ;)
Nightw0lf Posted January 31, 2013 Posted January 31, 2013 Indeed unique gj once again you are on fire this week!
Boorinio Posted January 31, 2013 Author Posted January 31, 2013 Indeed unique gj once again you are on fire this week! Thanks bro!!!
xdem Posted January 31, 2013 Posted January 31, 2013 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
Boorinio Posted January 31, 2013 Author Posted January 31, 2013 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
Boorinio Posted January 31, 2013 Author Posted January 31, 2013 Good job dude! Keep sharing! Thanks dude i will!
xdem Posted February 1, 2013 Posted February 1, 2013 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...
Boorinio Posted February 1, 2013 Author Posted February 1, 2013 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..
iitmtii Posted February 2, 2013 Posted February 2, 2013 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.
Boorinio Posted February 2, 2013 Author Posted February 2, 2013 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();
iitmtii Posted February 2, 2013 Posted February 2, 2013 i dont know how to do it, can you write all part of the code?
Recommended Posts