C# Vote NPC idea

01/03/2012 08:45 Spirited#16
Quote:
Originally Posted by -GeniuS- View Post
I bet you also can't figure it out, and the private server won't be destroyed if there isn't that npc, never mind.
I'm not sure how to respond to that....
Uhm.... if I couldn't code an NPC by now... that would be fucking pathetic.
01/03/2012 15:04 -GeniuS-#17
And I didn't ask you to code it neither to help me, PLEASE get out of my thread, you are always hating & flaming.

Quote:
Originally Posted by pro4never View Post
still simple but the issue is then changed to PHP and the website itself.

There's lots of ways to do it, the easiest being a simple in/out page for the website. Out page on website checks conditions and forwards users to the vote page while updating the vote database.

In page handles the returned click from the top 100 site, checks conditions in db and handles awarding of cps/items.

Really quite simple.. We did it on hellmouth for the first bit but it's not a very nice system unless your server is currently top 5-10 (user had to find the banner and click it in order to get a reward).

Last I saw trinity was using a similar system but possibly basing it on a more advanced framework.
I already know that idea, but I need another one.
01/03/2012 15:07 Korvacs#18
Quote:
Originally Posted by Kiyono View Post
Is it really the simple? I have seen voting NPCs before but none that FORCE you to vote, most just lead you to the voting page and you can still choose not to vote while still receiving voting benefits for clicking.
Its not possible to just do the vote from the npc, you would need to vote on the server side if your intention was for the client to never get involved.

If you sacrifice the fact that the client has to open a webpage from the client by way of the npc, then you still cant do a direct vote because the site requires captcha, so unless you feel like trying to get hold of a reverse captcha script you cant do it this way.

Also the entire voting for reward system is flawed because you can never confirm that the user has ever actually voted, the xtop style sites dont have a returning redirection back to your site so you can never actually get confirmation of the vote being made, the most you can do is record the fact that they visited the vote page.

So the simplest and really the only way to do this is to have the client open the vote page, or as pro says if you need to record the fact you 'voted', have the client open a webpage of your own that records the fact you have 'voted' and redirects you to the actual vote page.

And to that end this thread includes everything you need to achieve that.
01/03/2012 18:03 I don't have a username#19
Quote:
Originally Posted by Y u k i View Post
...
The problem is Xtremetop100 is not updating votes every time, but at intervals.
Also would be far better using HttpWebRequest.
01/03/2012 18:50 I don't have a username#20
Quote:
Originally Posted by Y u k i View Post
thats why it loops for a time.

webrequest? uh no, not in this case.
Always. Instead parsing whole text you can just select the part.
01/05/2012 21:35 sonofskeletor#21
Im working on a system, for example like this, Login, votepage pops up = [Only registered and activated users can see links. Click Here To Register...], then from there im trying to get it so, if you CLICK the button, it counts the vote even if the code is wrong, then from there it will reload an alternative page, u login, and it will save a number 1 in an empty document containing the character name, then the server will read the document some how and give the rewards, im still building it tho its not as easy as people make out.

if i can getting it working i will release it, but it will be encrypted, its for flatfile 5165

Quote:
<iframe src="http://www.xtremetop100.com/in.php?site=1132326129" id="inneriframe" scrolling="no" frameborder="0" allowtransparency="true" onclick="show_confirm()" value="Show confirm box></iframe>
This is were im struggling lol, the rest will be easy
01/05/2012 22:33 pro4never#22
Quote:
Originally Posted by sonofskeletor View Post
Im working on a system, for example like this, Login, votepage pops up = [Only registered and activated users can see links. Click Here To Register...], then from there im trying to get it so, if you CLICK the button, it counts the vote even if the code is wrong, then from there it will reload an alternative page, u login, and it will save a number 1 in an empty document containing the character name, then the server will read the document some how and give the rewards, im still building it tho its not as easy as people make out.

if i can getting it working i will release it, but it will be encrypted, its for flatfile 5165



This is were im struggling lol, the rest will be easy
Few things..

#1: Use a database... will be MUCH simpler with the php you need to write.

#2: The simplest way to 'check' for vote is only count the vote if they exit your site AND return from top 100.

As I said before, the simplest way but not the most effective.

All vote links go to something like [Only registered and activated users can see links. Click Here To Register...]

This checks if their ip has voted within last 12 hours (checks database). If they have not voted yet, it sets outTime in database to now.

They must then click your banner on the top 100 site after voting which routes to a [Only registered and activated users can see links. Click Here To Register...] which checks if their ip is in the database, outTime is within last... 5 minutes? and they have not already claimed their prize.

Assuming all conditions are passed in the votein then you award the account in database. Note: The only SLIGHT issue is handling which account it gets credited to... that's why I'd make them log into your website before continuing and use that login to handle awarding the proper character.

For them to claim reward without voting they'd have to understand how the system works, go through the vote out page and then still do the votein page (url could change any time you wish if you find people are abusing it). Most people are going to take the time in this case to just type the damn captcha.

The other issue is making sure the explanation is clear AND being a top 5-10 server (if not looking for the linkback is difficult). I'm positive their system is more advanced but I seem to remember trinity using this type of a system. We also experimented with it on hellmouth and it worked quite well.
01/05/2012 22:53 sonofskeletor#23
What i need to do is steal xtreamtop100's source for my vote page, get it fully functional under my ip address, and just record who clicks the Submit button, but its getting the capture and shit to load is proving to be a totaly asshole lol.


PHP Code:
            <form method="POST" action="in.php" style="display: inline;">
            <
input type="hidden" value="1132326129" name="site" /> // THIS IS THE ID IT SENDS THIS DATA AFTER THE CAPTURE
            
<p style="text-align: center">
<
script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6Lc-vgUAAAAAAFuincwPfoVieQ5gVbUtlShMRpRe"></script>

    <noscript>
          <iframe src="http://api.recaptcha.net/noscript?k=6Lc-vgUAAAAAAFuincwPfoVieQ5gVbUtlShMRpRe" height="300" width="500" frameborder="0"></iframe><br/>
          <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
          <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
    </noscript><br /><input type="submit" value="Vote for DISLOCATION-CO" name="submit"><br /><br />
<table border="0" width="100" cellspacing="0" cellpadding="0" id="table4"> 
Submit button = [Only registered and activated users can see links. Click Here To Register...]
But at the same time it sends data to that page witch is the ID/MySite