Skip to content

Admin Command: Hero For A Limited Time..!

Featured Replies

Solved by ^Wyatt

  • Author

Check this.

 

http://pastebin.com/X50RHX7G

 

You need only the sql part. I guess it's good.

thank you my friend!

  • Solution

Which devlin posted still misses sql queries and so. Try this one...

 

http://pastebin.com/FWVTjQi4

 

Should work, u must add the line in MasterHandler.java to load the admincommand and modify your characters table adding customherotime field, at the end.

The command should work like //admin customhero 30   -> 30 or any number (hero days) 0 to make it unlimited or without any number.

  • Author

Which devlin posted still misses sql queries and so. Try this one...

 

http://pastebin.com/FWVTjQi4

 

Should work, u must add the line in MasterHandler.java to load the admincommand and modify your characters table adding customherotime field, at the end.

The command should work like //admin customhero 30   -> 30 or any number (hero days) 0 to make it unlimited or without any number.

i'm gonna test it now..! i will update the post if it works..!

  • Author

so... the code is working good as i see for now.. but if i will do a char hero and will make restart.. he will still be hero only if i will make CharacterDataStoreInterval = 0

so... the code is working good as i see for now.. but if i will do a char hero and will make restart.. he will still be hero only if i will make CharacterDataStoreInterval = 0

on logout the variables should be saved, nothing to do with the interval :s

  • Author

on logout the variables should be saved, nothing to do with the interval :s

what can i do?!

what can i do?!

 

fix your UPDATE CHARACTER

fix your UPDATE CHARACTER

This.

 

The command itself miss the db update.

This.

 

The command itself miss the db update.

Didn't I add it in the pastebin code? I think yes  :rage:

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.