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!
Vote NPC
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- u3games
- Posts: 1156
- Joined: Sun Feb 27, 2011 7:00 pm
- Location: España
- Contact:
Re: Vote NPC
Via Web --> viewtopic.php?f=94&t=21857Diana 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!
Code for npc, are outdated and buggy. I prefer via web.
- Diana
- Posts: 30
- Joined: Fri Jun 20, 2014 9:04 pm
- LasTravel
- Posts: 888
- Joined: Tue Jan 05, 2010 12:08 am
- Location: Spain
Re: Vote NPC
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
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
