marwan Posted August 19, 2013 Posted August 19, 2013 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
xdem Posted August 19, 2013 Posted August 19, 2013 haha cool Marwan, thnx addArrow should be static :D
Guest Elfocrash Posted August 19, 2013 Posted August 19, 2013 You should intialize variable such L2PcInstance to null. L2PcInstance pls; sounds not wrong but less correct.
marwan Posted August 19, 2013 Author Posted August 19, 2013 haha cool Marwan, thnx addArrow should be static :D getInstance() ??
xdem Posted August 19, 2013 Posted August 19, 2013 getInstance() ?? it should belong to the class not the the object, since it uses L2PcInstance not an object of the class
marwan Posted August 19, 2013 Author Posted August 19, 2013 it should belong to the class not the the object, since it uses L2PcInstance not an object of the class Okay , code updated
An4rchy Posted August 19, 2013 Posted August 19, 2013 Not bad, gj. Btw if (players.size() != 2) should be >= 2.
marwan Posted August 19, 2013 Author Posted August 19, 2013 Btw if (players.size() != 2) should be >= 2. My bad
SweeTs Posted August 19, 2013 Posted August 19, 2013 Coded by me @author Zoey76 I know, I know.. :troll: Anyway, good share tho :D
xdem Posted August 19, 2013 Posted August 19, 2013 I know, I know.. :troll: Anyway, good share tho :D noobs can't create a class by themselfs even with eclipse =D
marwan Posted August 19, 2013 Author Posted August 19, 2013 I know, I know.. :troll: Anyway, good share tho :D Just copied the voice handler code , too lazy to code a new one ;D
xdem Posted August 19, 2013 Posted August 19, 2013 Just copied the voice handler code , too unskilled to code a new one ;D fixed :troll:
Recommended Posts