^Wyatt Posted August 18, 2013 Author Posted August 18, 2013 just use L2SkillTeleport, the command definetly needs delay dammit all of you wanna me to die D: xd I'll do that tomorrow :Y Leluche check it I already uploaded that. V.2 Added Timer to end the event if nothing happens. Added reward for the pk if he survives when the time is over. Added command .pkinfo to know if you are near or far from the pk location. Quote
An4rchy Posted August 18, 2013 Posted August 18, 2013 very nice, gj mate. However you could have avoided making everything static for organization and optimization of the code. Quote
xdem Posted August 18, 2013 Posted August 18, 2013 very nice, gj mate. However you could have avoided making everything static for organization and optimization of the code. if it was non-static he could run multiple instances of it throuth new, however he chose to use static because the event runs once every time Quote
Mimosin Posted August 18, 2013 Posted August 18, 2013 ... xd just add it over here then <----- if (!activeChar.canRevive()) { return; } Tanks!! Much error's in gameserver console, fail event sorry xD Quote
SubZεro Posted August 19, 2013 Posted August 19, 2013 Tanks!! Much error's in gameserver console, fail event sorry xD Or maybe you are noob Quote
f0zi Posted August 19, 2013 Posted August 19, 2013 I didn't tested yet, but this idea is great! Quote
^Wyatt Posted August 19, 2013 Author Posted August 19, 2013 There's some duration in this event? Yes there is, check the v2. if it was non-static he could run multiple instances of it throuth new, however he chose to use static because the event runs once every time +1 Much error's in gameserver console, V2 was under test when you probably added it. Now V2 is tested and 0 errors in my gs. V1 no errors too. Quote
An4rchy Posted August 19, 2013 Posted August 19, 2013 It could have been done like a task to begin on pk. Having everything static isn't the best way to do it. Also about running multiple events just a static boolean would solve the problem. Quote
^Wyatt Posted August 19, 2013 Author Posted August 19, 2013 It could have been done like a task to begin on pk. Having everything static isn't the best way to do it. Also about running multiple events just a static boolean would solve the problem. Ye well there are 100000 ways to code everything, I chose this. And I don't wanna run multiple events. If someone needs to have all his patchs with the perfect code style... he'll need to modify it, I'm just sharing something. Quote
Stereotype Posted August 19, 2013 Posted August 19, 2013 Wyatt is one of the bests L2J Developer i meet here. Thanks for share very usefull. And keep going... A W E S O M E :) Quote
Mimosin Posted August 19, 2013 Posted August 19, 2013 Or maybe you are noob Copy/paste noob? jaja ok. Quote
^Wyatt Posted August 20, 2013 Author Posted August 20, 2013 Already added the thing about L2SkillTeleport. We maybe should add a config to allow/or not, the GM's being the PK of the event, to test/live switch, I'll do it soon... I tested it and I can't see any error right now. If someone has any error or any suggestion to add just tell me :P Quote
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.