Skip to content

One In The Chamber Event

Featured Replies

Hey guys , long time since i shared.

 

Event starts every x time , when the event start you get a bow and one arrow (all your arrows will be removed and will be back when event ends), respawn will in the event arena. When you kill someone you get one arrow , when you respawn you get one arrow , events ends in x time ,who gets the most kills is the winner.

 

All things are configurable through the variables in the code.

 

Code : http://pastebin.com/ZeP01sQJ

 

Don't forget to add on gameserver.java :

 

OneInTheChamber.getInstance();

 

Coded by me

 

haha cool Marwan, thnx

 

addArrow should be static :D

You should intialize variable such L2PcInstance to null.

L2PcInstance pls; sounds not wrong but less correct.

  • Author

haha cool Marwan, thnx

 

addArrow should be static :D

getInstance() ??

getInstance() ??

 

it should belong to the class not the the object, since it uses L2PcInstance not an object of the class

  • Author

it should belong to the class not the the object, since it uses L2PcInstance not an object of the class

Okay , code updated

Not bad, gj.

 

Btw if (players.size() != 2) should be >= 2.

  • Author

Btw if (players.size() != 2) should be >= 2.

My bad

Coded by me

 

@author Zoey76

 

I know, I know.. :troll:

 


 

Anyway, good share tho :D

I know, I know.. :troll:

 


 

Anyway, good share tho :D

 

noobs can't create a class by themselfs even with eclipse =D

Its like McDonalds, i'm lovin' it!

Great share!

  • Author

I know, I know.. :troll:

 


 

Anyway, good share tho :D

Just copied the voice handler code , too lazy to code a new one  ;D

Just copied the voice handler code , too unskilled to code a new one  ;D

 

fixed  :troll:

  • Author

fixed  :troll:

exactly

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.