Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Voting Reward System

Status
Not open for further replies.
Newbie Spellweaver
Joined
Aug 23, 2007
Messages
42
Reaction score
0
Ok i did take my private time to make one for you lazy idiots thats requesting this so just be happy.

Now this does not store cokies cause i dint bother doing that if someone else wants to feel free to make anotherone with that stores cokies. BUT YOU MUST RELEASE IT HERE TO EVERYONE OR YOU ARE NOT ALLOWED TO USE MY SCRIPT.

Please leave the "Made by FrOn|X" line

As i said this script does not block 12 hour voting im not going to make that

Edit your reward item on line 17

PHP:
<?php
$user="root";
$password="PASSS!!!";
$database="CHARDB"; //Your character database
if(($_COOKIE['vote']) != '1')
{
    if(!empty($_POST['name']))
    {
        mysql_connect(localhost,$user,$password);
        @mysql_select_db($database) or die( "Unable to select database");
        $name = mysql_real_escape_string($_POST['name']);
        $query="SELECT * FROM characters WHERE name='$name' LIMIT 1";
        $result = mysql_query($query);
        if($row = mysql_fetch_array($result))
        {
@@            $guid = $row['guid'];
@@            $item = YOUR REWARD ITEM!!;
@@            mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack) VALUES ($guid, $guid, 'Thankyou for voting for Ghost WoW', 'Use this item to get vote rewards from the votereward vendors in the malls. Vote again in 12 hours', 0, 0, $item, 1)");
            echo "Thank you for voting!";
            echo "<script language=javascript>setTimeout(\"location.href='" . "http://www.xtremetop100.com/in.php?site=1132219819" . "'\",3000);</script>";
        }
        else
        {
            echo "A char with that name was not found.";
        }
        mysql_close();
    }
    else
    {
    ?>
    Vote for Ghost WoW Here and get rewarded! <br />
    <form method='post' action='vote.php'>
        Character Name:<input type='text' name='name' />
        <input type='submit' value='Vote!' />
    </form>
    <p>
      <?php
    }
}
else
{
    echo "You already voted! You can vote once every 12 hours. Thank you :)";
}
?>
</p>
    <p> </p>
    <p>Made by FrOn|X</a></p>


This can be useful for you who wants to make the cokie thing

Code:
CREATE TABLE `votecokie` (
  `acct` int(10) NOT NULL,
  `timeleft` int(11) NOT NULL,
  PRIMARY KEY (`acct`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;


and this

PHP:
<?php 
setcookie('vote', '1', time() + 43200);
?>
<script language='javascript'>
setTimeout("location.href='http://www.xtremetop100.com/in.php?site=1132219819'",1);
</script>
 
Newbie Spellweaver
Joined
Apr 24, 2008
Messages
6
Reaction score
0
So say I have more than one voting site that my users we need to go to... do I just add more urls to the code?

echo "<script language=javascript>setTimeout(\"location.href='" . "http:// VOTING SITE" . "'\",3000);</script>";
echo "<script language=javascript>setTimeout(\"location.href='" . "http:// VOTING SITE" . "'\",3000);</script>";
echo "<script language=javascript>setTimeout(\"location.href='" . "http:// VOTING SITE" . "'\",3000);</script>";

Is that right or would there need to be a button submit for each voting site?
 
Newbie Spellweaver
Joined
Sep 21, 2007
Messages
11
Reaction score
0
I am checking this and i was wondering, does this check to see if you already voted? Because as far as I can tell you could potentially use this over and over and over getting the reward each time.
 
Newbie Spellweaver
Joined
Apr 24, 2008
Messages
6
Reaction score
0
I am checking this and i was wondering, does this check to see if you already voted? Because as far as I can tell you could potentially use this over and over and over getting the reward each time.

Ok, so is there a way to make it so it won't let you vote over and over again. What's a good script to make it so it says you voted already... please wait or something like that?
 
Initiate Mage
Joined
Dec 4, 2006
Messages
1
Reaction score
0
Zweck, Mangos Is a private Server, for Testing Purpose. Ascent is a public Server. not Mangos. it is not allowed to make a public server with Mangos.
 
Newbie Spellweaver
Joined
Mar 7, 2008
Messages
95
Reaction score
0
Code:
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\cms\vote.php on line 17



line 17:
Code:
@@            $item = YOUR REWARD ITEM!!;
 
Newbie Spellweaver
Joined
Sep 21, 2007
Messages
11
Reaction score
0
I have been looking around and this is a copy (incomplete however) of someone else's script from mmopro

In that script there IS a check to make sure you only vote every 12 hours.

The original is made by Brae.
 
Newbie Spellweaver
Joined
Dec 11, 2006
Messages
55
Reaction score
0
i got this:
Code:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\vote.php on line 20
 
Newbie Spellweaver
Joined
Oct 27, 2006
Messages
44
Reaction score
0
MaNGOS isn't really neccessarily for Private Server Testing, though it's highly recommended for testing purposes only, Ascent is for Public yes but MaNGOS can be public too but not a lot of people use it so that's why they stopped releasing scripts, etc. for it.
 
Initiate Mage
Joined
Apr 22, 2008
Messages
4
Reaction score
0
i have a error with line 17 who can me help there is somthing wrong i think so
who can help me

i have this do

i have create a database named "vote" and put this table
Code:
CREATE TABLE `votecokie` (
  `acct` int(10) NOT NULL,
  `timeleft` int(11) NOT NULL,
  PRIMARY KEY (`acct`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

and the First php code have i named index.php and the 2nd php code vote.php
and change the password to my password and the database to my database
and now have i this error

Code:
Parse error: syntax error, unexpected '!' in C:\Kodack X BlizzRepack\Server\Xampp\htdocs\vote\index.php on line 17

i have changed line 17 to

Code:
@@            $item = 22571!!;

i hope that you can help me !

Greetz DarkSiZe
 
Initiate Mage
Joined
Jan 13, 2009
Messages
2
Reaction score
0
Thanks for te voting script im going to use it for are website:



If you want to help HTML are server i would be more then happy to put u on are team !

please contact me if interested at:

brycejungquist_65@hotmail.com
 
Status
Not open for further replies.
Back
Top