VoteReward API

Started by seedofextermination, March 15, 2015, 08:59:17 AM

Previous topic - Next topic

seedofextermination

Hi xtream, please, can you add a link for VoteReward API with the java source for implement on our servers?. I think that must be similar to TopZone VoteReward, true?, but i only want confirm it.

Can you add in same section, where we can see API id and other info???

Thank you in advance.

Good job!.

xtream

Hello, yes our vote reward API work very well with the l2topzone.com vote reward server side script funded here https://github.com/UnAfraid/topzone . The only change need to be made is this line:

private static final String API_URL = "http://l2topzone.com/api.php?API_KEY=%s&SERVER_ID=%d&IP=%s";
with
private static final String API_URL = "https://xtremetop300.com/api.php?API_KEY=%s&ID=%d&IP=%s";

From this file  : https://github.com/UnAfraid/topzone/blob/master/l2j/game/data/scripts/custom/VotingReward/VotingReward.java

All credits go to UnAfraid




seedofextermination

I saw replay now.

PERFECT man!.

Implementing...

Regards.

seedofextermination

private static final String USER_AGENT = "L2TopZone";
or...
private static final String USER_AGENT = "Mozilla/4.76";
or...
private static final String USER_AGENT = "XtremeTop300";

Can you tell us exactly?, please?.

Thanks.

xtream

Hello, use
private static final String USER_AGENT = "Mozilla/4.76";

seedofextermination

I suspected! ... xD. Tentatively, I put it like that, but wanted to make sure before.

Thank you very much ... I have implemented all now!!!. The TopZone and the XtremeTop300 was on two different tables and has two different commands. Some things in texts also to differentiate between them and donĀ“t make crazy players... ;)

Close topic then when you want.

A Greeting.