Jump to content

Recommended Posts

Posted

Explanation: When an admin press //startae  every 1 hour the players that is online over 4 hours will get +1(weapon)

he can stop it by pressing //stopae . simple and easy :P

 

Code: http://pastebin.com/ukhfMDQ3

 

(if you find any bug with enchant just report it and i will fix it.)

 

Credits me(AbsolutePower)

Posted

thanks for share

 

if you can add a chance it will be better ..

i made it with this way because its simple but if you want chance then:

final int chance = 70;

 

else if(players.OnlineTime() > Hours && Rnd.get(100) < chance)  then enchant bla bla :P

Posted

i made it with this way because its simple but if you want chance then:

final int chance = 70;

 

else if(players.OnlineTime() > Hours && Rnd.get(100) < chance)  then enchant bla bla :P

ahhahah Bad idea.. this will make more server with afk players

 

It would be better if you make it every some pvp or every some votes or both

if x pvp and x vote auto enchance weapon 1 :)

Posted

ahhahah Bad idea.. this will make more server with afk players

 

It would be better if you make it every some pvp or every some votes or both

if x pvp and x vote auto enchance weapon 1 :)

the whole code is a example i won't make it better for free.
Posted

Yea this examples make most server fail

read the "Explanation": When an admin press //startae  every 1 hour the players that is online over 4 hours will get +1(weapon)

he can stop it by pressing //stopae . simple and easy  this is how it works.

 

i won't add some booleans to avoid the afkers if you want you can make it.

 

edit: no one forced you to use the code as it is.... you can change it.

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.

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...