Jump to content

HitMan Event


marwan

Recommended Posts

Hello guys , I'am here with a new share

 

Hitman event , every 60 minutes random player in server will be chossen to be the hitman , Hitman player name color will be changed to red  and will be announced that he/she is the  hitman.

The first player who kills the hitman will be rewarded , event ends in 5 minutes

 

update  : http://pastebin.com/fvBvWe11

 

PS : Not tested

 

coded in L2JServer hi5

 

credits to me

 

oh forgot ,add in gameserver.java

Hitman.getInstance();

 

Update : fixed a bug in pickplayer() method now its working properly

Link to comment
Share on other sites

Does is have any protection from clan/ally and ip killing?

 

If it will have it's gonna be unfair. Anyway, with and w/o protection it's gonna be unfair.

Since with prot, clan/ally members won't be able to take reward by killing Hitman and without prot you can easily let your clan/ally member kill ya to get reward..

So both cases and not so fair, you got the point :D

Link to comment
Share on other sites

  • 2 weeks later...

Not imports, boolean.

I adapted it to interlude l2jfrozen.

And i have one problem. If hitman player gets killed, winner don't get reward, no announcements appear and title of hitman stays the same - red, witch says HitMan target.

How to solve it?

No errors in eclipse or gameserver. :)

Link to comment
Share on other sites

Chiomegarho3AF0sigmaftau3AF0taulambdaomicron_zps3f0db64d.png

 

missing import and pcinstance part?

 

 

oh forgot to add pcinstance part

http://pastebin.com/fvBvWe11

 

Not imports, boolean.

I adapted it to interlude l2jfrozen.

And i have one problem. If hitman player gets killed, winner don't get reward, no announcements appear and title of hitman stays the same - red, witch says HitMan target.

How to solve it?

No errors in eclipse or gameserver. :)

becausse of the missing party in pcinstance add it and test

http://pastebin.com/fvBvWe11

Link to comment
Share on other sites

Where method setHitman()? Please show me code of this method.

I have error:

 

[javac]  error: cannot find symbol

[javac]  symbol:  method setHitman(boolean)

[javac]  location: variable pl of type L2PcInstance

 

Link to comment
Share on other sites

Where method setHitman()? Please show me code of this method.

I have error:

 

[javac]  error: cannot find symbol

[javac]  symbol:  method setHitman(boolean)

[javac]  location: variable pl of type L2PcInstance

 

in the code

 
+       public boolean _hitman = false;

+       public void setHitman(boolean h)
+       {
+              
+               _hitman = h;
+       }
+      
+       public boolean isHitman()
+       {
+               return _hitman;
+       }
+      

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...