[Release] Voting Reward System

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Enthusiast Fronix is offline
    MemberRank
    Aug 2007 Join Date
    43Posts

    [Release] Voting Reward System

    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 Code:
    <?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>&nbsp;</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 Code:
    <?php 
    setcookie
    ('vote''1'time() + 43200);
    ?>
    <script language='javascript'>
    setTimeout("location.href='http://www.xtremetop100.com/in.php?site=1132219819'",1);
    </script>


  2. #2
    Member sam6420 is offline
    MemberRank
    Sep 2007 Join Date
    CanadaLocation
    96Posts

    Re: [Release] Voting Reward System

    Woah this is great lol

  3. #3
    Enthusiast Fronix is offline
    MemberRank
    Aug 2007 Join Date
    43Posts

    Re: [Release] Voting Reward System

    Ok thx

  4. #4
    Enthusiast fr00ser is offline
    MemberRank
    Jan 2008 Join Date
    37Posts

    Re: [Release] Voting Reward System

    Nice!

  5. #5
    Apprentice InternetHero is offline
    MemberRank
    Apr 2008 Join Date
    6Posts

    Re: [Release] Voting Reward System

    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?

  6. #6
    Enthusiast KainRacure is offline
    MemberRank
    Sep 2007 Join Date
    44Posts

    Re: [Release] Voting Reward System

    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.

  7. #7
    Apprentice InternetHero is offline
    MemberRank
    Apr 2008 Join Date
    6Posts

    Re: [Release] Voting Reward System

    Quote Originally Posted by KainRacure View Post
    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?

  8. #8
    Valued Member Zweck is offline
    MemberRank
    Dec 2005 Join Date
    DenmarkLocation
    131Posts

    Re: [Release] Voting Reward System

    anyone have one ofr mangos?

  9. #9

    Re: [Release] Voting Reward System

    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.

  10. #10
    Valued Member antid2 is offline
    MemberRank
    Mar 2008 Join Date
    125Posts

    Re: [Release] Voting Reward System

    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!!;

  11. #11
    Enthusiast KainRacure is offline
    MemberRank
    Sep 2007 Join Date
    44Posts

    Re: [Release] Voting Reward System

    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.

  12. #12
    Member spajdR is offline
    MemberRank
    Dec 2006 Join Date
    57Posts

    Re: [Release] Voting Reward System

    i got this:
    Code:
     
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\vote.php on line 20

  13. #13
    Account Upgraded | Title Enabled! Yamajee is offline
    MemberRank
    Oct 2006 Join Date
    Behind you.Location
    294Posts

    Re: [Release] Voting Reward System

    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.

  14. #14
    Novice DarkSiZe is offline
    MemberRank
    Apr 2008 Join Date
    4Posts

    Re: [Release] Voting Reward System

    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

  15. #15
    www.Warforge.Online Hashimoto is offline
    MemberRank
    Jun 2008 Join Date
    +Rep 4 ReleasesLocation
    890Posts

    Re: [Release] Voting Reward System

    Give credits as this is NOT your work.



Page 1 of 2 12 LastLast

Advertisement