Vote NPC

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Diana
Posts: 30
Joined: Fri Jun 20, 2014 9:04 pm

Vote NPC

Post by Diana »

Hello!
I'm wanting to add a vote reward system to my server, and I'm wondering if it is possible to add some npc that checks if character has voted or not and give him coins (example: Glittering Medals). is something like this possible to make without having to apply a patch through eclipse (I don't know how). If it is possible then can someone guide me through it or post me a link with a guide ^^?
Thank you very much for your time!
Image
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

Re: Vote NPC

Post by u3games »

Diana wrote:Hello!
I'm wanting to add a vote reward system to my server, and I'm wondering if it is possible to add some npc that checks if character has voted or not and give him coins (example: Glittering Medals). is something like this possible to make without having to apply a patch through eclipse (I don't know how). If it is possible then can someone guide me through it or post me a link with a guide ^^?
Thank you very much for your time!
Via Web --> viewtopic.php?f=94&t=21857

Code for npc, are outdated and buggy. I prefer via web.
Image
User avatar
Diana
Posts: 30
Joined: Fri Jun 20, 2014 9:04 pm

Re: Vote NPC

Post by Diana »

I dont understand the language of this guide ;x
Image
User avatar
LasTravel
Posts: 888
Joined: Tue Jan 05, 2010 12:08 am
Location: Spain

Re: Vote NPC

Post by LasTravel »

Well, thats not hard as it seems, the npc just should read the vote-page site like this (Not an ADV but idk how to explain it without, lol), as you can see there are the last player ip's at the bottom of the page.

So you can read that ips and comprare if one match with the player ip... But take care with the last 3 hidden numbers!

Currently there are many vote pages that already provide its own api to do it much more easily.

That's just one way to do it, ofc there are more, like insert the player ip around the db when they press the vote button and then just read id.

Just random ideas, hope it helps you :)
Post Reply