Page 1 of 1
Vote NPC
Posted: Sat Jul 05, 2014 9:27 pm
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!
Re: Vote NPC
Posted: Sun Jul 06, 2014 11:57 am
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.
Re: Vote NPC
Posted: Sun Jul 06, 2014 5:46 pm
by Diana
I dont understand the language of this guide ;x
Re: Vote NPC
Posted: Sun Aug 03, 2014 3:55 am
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
