Jump to content
  • 0

[REQUEST/HELP]Vote Reward Engine


r3vdaa

Question

Hi all, i need a vote reward engine !

 

I see 3 exemples of them ...and dont work for me ( maybe That Work but i cant adapt it for work on l2js ) !

 

L2js have the code alitle difrent from l2jserver!

u can see here (com.l2js) :

Config.java

and here (com.l2js.mods) :

ConfigCustom.java

 

the razon for the code no work  i will show, that part of code i need add them on ConfigCustom.java :

HOPZONE_REWARD_CHECK_TIME = Integer.parseInt(elcardia.getProperty("HopzoneRewardCheckTime", "5"));

                String HOPZONE_SMALL_REWARD_VALUE = elcardia.getProperty("HopzoneSmallReward", "57,100000000;");

                String[] hopzone_small_reward_splitted_1 = HOPZONE_SMALL_REWARD_VALUE.split(";");

                for (String i : hopzone_small_reward_splitted_1)

                {

                String[] hopzone_small_reward_splitted_2 = i.split(",");

                HOPZONE_SMALL_REWARD.put(Integer.parseInt(hopzone_small_reward_splitted_2[0]), Integer.parseInt(hopzone_small_reward_splitted_2[1]));

                }

i need adapt the red line to " getBoolean(properties, "

and green line to " getString(properties," << maybe i'm not sure

 

but after i try adapt the code ...other error, on:

 

public static int HOPZONE_REWARD_CHECK_TIME;

public static Map<Integer, Integer> HOPZONE_SMALL_REWARD = new FastMap<Integer, Integer>();

public static Map<Integer, Integer> HOPZONE_BIG_REWARD = new FastMap<Integer, Integer>();

public static int HOPZONE_DUALBOXES_ALLOWED;

 

i know, i need import map or fastmap ....somethink like this ...

 

after like +/- 6h trying adapt that code, i'm pure crazy ...

 

soo i come here to request help from u guys !

 

i just need the config.java / ConfigCustom.java for the code work ( i think ) and after that maybe that work witch the new hopzone website.

 

 

why i use l2js? just becose the server runs more fast.  ( i have the last synchronization with l2jserver made my be ) but u can still can help me witch that svn : http://subversion.assembla.com/svn/L2jSProject/trunk/

 

help me pls guys !

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

its so simple ! i use all vote reward systems and no one work with the new hopzone website ...and i still want a auto-reward for x votes ....ahhh and for free ....

 

 

 

 

damn i will start a server witchout auto-vote reward and  my server will fail

Link to comment
Share on other sites

  • 0

auto vote reward isnt key to success :)

If website changed, that mean Java code is reading Vote Number from wrong place, u will need to correct that. Find line of code that reads hopzone website.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • ??? error   https://ibb.co/Srn4LsX No support  :S   No support : S ? :S
    • I also think this feature would bring more harm than good... another example is a dwarf rushing against your mobs so he takes priority, then he plays fake death and proceeds to grief the shit out of you. A minimum damage threshold is necessary, which would basically converge to what is the default feature (i.e. biggest damage dealer)
    • I bought the premium to watch the video and it's private. 😢
    • For some Majestic reason OP can't edit their topics anymore?    Let me update the potential offers, I got up to 2 spots to fill.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1     A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks, side gigs are fine, as long as you are able to combine your gig and main.  All necessary tools are provided.  The team is consistent with > 10 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s. mobius is fine too for referrence only. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard, java knowledge is optional.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that. There's a small 30min interview process to demonstrate knowledge and just to meet each other.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1
    • Thanks for the detailed info. I also have some ideas in mind but the execution may be hard. Thanks again!
  • Topics

×
×
  • Create New...