Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 17:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Vote With Block IP

Discussion on Vote With Block IP within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 14
Received Thanks: 0
Question Vote With Block IP

Any got sistem vote to coins with block ip each 12 hours ?
Bustamante- is offline  
Old 12/21/2011, 23:12   #2
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
There is a script on this forum , trying searching for it, i found it once long time ago but i didn't save it.
BioNicX is offline  
Thanks
2 Users
Old 12/22/2011, 00:42   #3
 
Synns's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 20
Received Thanks: 12
look it....

Run the following SQL under your charLogon Database
Code:
Code:
CREATE TABLE `voteprotip` (
  `acip` varchar(16) character set utf8 collate utf8_unicode_ci NOT NULL,
  `ctime` int(11) NOT NULL,
  PRIMARY KEY  (`acip`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

CREATE TABLE `voteprotacc` (
  `acct` int(10) NOT NULL,
  `ctime` int(11) NOT NULL,
  PRIMARY KEY  (`acct`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;


Code:
    <?php
     
    $sqlHost="localhost";
    $sqlUser="root";
    $sqlPassword="ascent";
    $sqlDatabase="charDB";
     
    $remoteIP = $_SERVER['REMOTE_ADDR'];
    $invalidChar=false;
    $voteIP=false;
    $voteAccount=false;
    $resultText="";
     
    if(!empty($_POST['CharName']))
    {
     
     
      $con_dex = mysql_connect($sqlHost, $sqlUser, $sqlPassword);          
      if (!$con_dex)
      {
             
        $resultText="Could not connect to the SQL.";
     
      } else {
     
         
        $db_bool = mysql_select_db($sqlDatabase, $con_dex);
        if (!$db_bool)
        {
                 
          $resultText="Could not select the Database";        
        } else {
             
          $nameStr = strtolower(mysql_real_escape_string($_POST['CharName']));
          $today = date("mdHi");
          $result = mysql_query("SELECT * FROM characters WHERE name='$nameStr' LIMIT 1", $con_dex);
     
          if($row = mysql_fetch_array($result))
          {
               
            $guidNumber = $row['guid'];
            $acctNumber = $row['acct'];
     
            $res = mysql_query("SELECT * FROM voteprotacc WHERE acct='$acctNumber' LIMIT 1", $con_dex);
            if($res2 = mysql_fetch_array($res))
            {
              $ct = $res2['ctime'];        
              if($today-$ct > 1200)
              {
                $voteAccount=true;
              } else {
                $voteTimeleft = $ct-$today;
                $voteTimeleft = 1200 + $voteTimeleft;
              }
            } else {
              $voteAccount=true;
            }
     
            $res = mysql_query("SELECT * FROM voteprotip WHERE acip='$remoteIP' LIMIT 1", $con_dex);
            if($res2 = mysql_fetch_array($res))
            {
              $ct = $res2['ctime'];        
              if($today-$ct > 1200)
              {
                $voteIP=true;
              } else {
                $voteTimeleft = $ct-$today;
                $voteTimeleft = 1200 + $voteTimeleft;
              }
            } else {
              $voteIP=true;
            }
     
          } else {
            $invalidChar=true;
          }
        }
      }
     
             
      if($voteAccount)
      {
        // if here than player has not voted for account in 12 hours and deserves a voting coin
           
        mysql_query("DELETE FROM voteprotacc WHERE acct='$acctNumber' LIMIT 1", $con_dex);
        mysql_query("DELETE FROM voteprotip WHERE ip='$remoteIP' LIMIT 1", $con_dex);
        mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack)
       VALUES ($guidNumber, $guidNumber, 'We appreciate your vote.', 'Enjoy!', 0, 0, 19701, 1)", $con_dex); // 19701 is my voting point item
                   
        mysql_query("INSERT INTO voteprotacc(acct, ctime) VALUES($acctNumber, $today)", $con_dex);
        mysql_query("INSERT INTO voteprotip(acip, ctime) VALUES('$remoteIP', $today)", $con_dex);
       
        $voteIP-false;
      } else {
        if($voteIP)
        {
          // if here player has voted for acc within past 12 hours but has not voted on their currentIP. to control vote points we
          // give them a flask instead of a voting point, as the vote still goes through.
          mysql_query("DELETE FROM voteprotip WHERE ip='$remoteIP' LIMIT 1", $con_dex);
          mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack)
         VALUES ($guidNumber, $guidNumber, 'We appreciate your vote.', 'Enjoy!', 0, 0, 33208, 1)", $con_dex); // 33208 Flask of Chromatic Wonder (strip level req and it makes a nice leveling treat)
                           
          mysql_query("INSERT INTO voteprotip(acip, ctime) VALUES('$remoteIP', $today)", $con_dex);
                   
        }    
      }
     
      mysql_close($con_dex);
         
      if($voteIP || $voteAccount)
      {
        header('Location:[url]http://radracer.ipower.com/');[/url]
        die();
      } else {
        if ($invalidChar)
        {
          $resultText="We could not find your character's name in the database.";
        } else {
          $resultText="You are not allowed to vote at this time, please try again in $voteTimeleft minutes.";
        }
      }
     
     
    } else {
     
      $resultText="Pleeasse vote!"; // charname field is empty
    }
     
    ?>
     
    <form action="votescript.php" method="post">
      Charname: &nbsp; &nbsp; </font>
      <input type="text" size="20" maxlength="17" value="" name="CharName" height=""></input>
      <br>
      <input type="submit" value="Vote!"></input>
      <br>
    </form>
    <?=$resultText?>
Quote:
Change line 3, 4, 5, and 6 to your mySql information.
Change line 112 to the (top100 vote supplied url)
Save text as votescript.php, or change line 131 to the page name you will be using.

and as said above include any where on your page.

Note: Line 88 contains coin being sent, line 101 contains lesser item when voting on a diff IP
Synns is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] Vote 4 Coins (Besseres) (Extern) up to 5 Vote-Sites!
05/12/2020 - Metin2 PServer Guides & Strategies - 83 Replies
Liebe Gemeinde, da von Akaja mein Vote 4 Coins Script damals verbotener Weise hier veröffentlicht wurde, werde ich nun meine neue Version direkt publizieren. Ich weise darauf hin das ich das Script nur anpasse oder Supporte wenn es bei mir gekauft wurde. Sonst habt ihr meinerseits auf keinen Support zu zählen. Demo http://bloody-marry.de/test.html Features IP Kontrolle
[B] Vote 4 Coins Script (IP & Account Abfrage) bis zu 5 Vote Seiten! (Eigenständig)
10/11/2011 - Metin2 Trading - 2 Replies
Ich habe ein Vote System programmiert, bei dem Spieler für Coins voten können. Bis zu 5 Seiten können eingetragen werden (Kann ich beliebig erweitern) Es wird in einer Datenbank die IP & AccountID gespeichert, somit kann man mit einer IP auch nur einmal Voten und pro Account auch nur einmal auch wenn man die IP resetten sollte. Somit ist ein Betrug vollkommen ausgeschlossen. Das Script ist eigenständig und passt somit zu jeder Website!
[Guide] Vote abuse for any private server with vote reward system
08/12/2011 - Off Topic - 3 Replies
I do not know if this is the right place to post this @_@ Source : http://tachael.vacau.com/Thread-Vote-abuse-for-any -private-server?pid=59#pid59 What you need: Lots of account http://fileace.com/h0l0a First step: Register accounts in the private server you want to vote abuse.



All times are GMT +1. The time now is 17:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.