Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 23:53

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

Advertisement



Ref - Link Script (Schneeballsystem)

Discussion on Ref - Link Script (Schneeballsystem) within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2014
Posts: 203
Received Thanks: 25
Ref - Link Script (Schneeballsystem)

Hallo ich wollte fragen ob jemand so ein script braucht da man damit auch super spieler für seinen Server werben kann ?
Chill3rruXx is offline  
Old 09/17/2014, 15:59   #2

 
elite*gold: 0
Join Date: Dec 2008
Posts: 2,825
Received Thanks: 1,538
Würde mich interessieren
Release es doch einfach.
.Colossus. is offline  
Old 09/17/2014, 18:00   #3
 
elite*gold: 0
Join Date: Jan 2014
Posts: 203
Received Thanks: 25
ne wenn dann nur vk sry.
Chill3rruXx is offline  
Old 09/17/2014, 18:12   #4

 
elite*gold: 0
Join Date: Dec 2008
Posts: 2,825
Received Thanks: 1,538
Dann ist das die falsche Section.

#Moverequest.
.Colossus. is offline  
Old 09/17/2014, 18:34   #5
 
elite*gold: 331
Join Date: Sep 2014
Posts: 196
Received Thanks: 26
release doch einfach...als ob das einer kauft
.Ambition シ is offline  
Old 09/17/2014, 18:41   #6
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
mit ref link versteh ich jetzt so das man in die homepage ein script einbaut welches automatisch nach x sekunden auf hompeage x weiter leitet sowas oder was meinst damit?
lfcmaus is offline  
Old 09/17/2014, 19:06   #7
 
elite*gold: 0
Join Date: Jan 2014
Posts: 203
Received Thanks: 25
nein das ist so wie bei meiner ex seite jeder user der da drauf geht bekommt einen extra link den er weiter schicken muss. Dann bekommt man pro klick auf deinen link einen Punkt oder what ever
Chill3rruXx is offline  
Old 09/17/2014, 19:22   #8
 
.Tobias's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,398
Received Thanks: 663
Das hat man in 2 Minuten gecodet.
.Tobias is offline  
Old 09/17/2014, 23:42   #9
 
elite*gold: 0
Join Date: Jan 2014
Posts: 203
Received Thanks: 25
schön für dich aber dein server sieht trotzdem nach Müll aus
Chill3rruXx is offline  
Old 09/17/2014, 23:45   #10
 
.Tobias's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,398
Received Thanks: 663
Achso
Mit deinem Ref Link Script was man in 5 Minuten Codet sieht ein Server natürlich viel besser aus.
Ich wusste das ja nicht.

Falls jemand das haben will meldet euch ich Scripte euch das kostenlos.
.Tobias is offline  
Thanks
1 User
Old 09/18/2014, 02:38   #11
 
Coniesan's Avatar
 
elite*gold: 1000
Join Date: Mar 2009
Posts: 1,408
Received Thanks: 1,007
For Hen Script (mysql_query API) @ Quick Coding:

100 Coins als Belohnung dafür dass man den Link verbreitet und wenn jemand drauf klickt
1x Pro IP
Weitere Prüfungen sind nurnoch Formsache...
Dauer des Codings hierfür: 10min
PHP Code:
<?
class reflink {
    private 
$db;
    private 
$bonus;
    
    public function 
__construct($database)
    {
        
$this->db $database;
        
        
// Coins für Reflink klick
        
$this->bonus 100;
    }
    
    public function 
getLink($value)
    {
        
$qry 'SELECT id FROM account.account WHERE login LIKE "'.$_SESSION['user_name'].'";';
        
$exec mysql_query($qry$this->db)or die(mysql_error());
        
$id mysql_fetch_object($exec)->id;
        if(empty(
$id))
            throw new 
Exception('No id found');
        return 
$id;
    }
    
    public function 
doAction($value)
    {
        if(!
$this->checkInt($value))
            return 
'Invalid reflink!';
        
        if(!
$this->checkRef($value))
            return 
'You already voted';
        
        
$qry 'INSERT INTO account.refcheck VALUES ("'.$value.'","'.$this->getIP().'",NOW());';
        
$exec mysql_query($qry$this->db);
        
        
$qry 'UPDATE account.account SET coins=coins+'.$this->bonus.' WHERE id="'.$value.'";';
        
$exec mysql_query($qry$this->db);
        
        return 
'Reflinking successful!';
    }
    
    private function 
checkRef($value)
    {
        
        
$qry 'SELECT count(ip) AS sum FROM account.refcheck WHERE id="'.$value.'" AND ip="'.$this->getIP().'" and AND `date` >= CAST(NOW() - INTERVAL 1 DAY AS DATE);';
        
$exec mysql_query($qry$this->db);
        
$count mysql_fetch_object($exec)->sum;
        if(
$count 0)
            return 
false;
        return 
true;
    }
    
    private function 
getIP()
    {
        
$ip trim(addslashes($_SERVER['REMOTE_ADDR']));
        return 
$ip;
    }
    private function 
checkInt($value) {
        
$checkit preg_match("/^[0-9]+$/",$value);
        if(
$checkit) return true;
        else return 
false;
    }
}
    
$this->reflink = new reflink($sqlServ);

if(!empty(
$_SESSION['user_name']))
{
    echo 
'Your reflink: 
        <input type="text" value="http://your-page.com/?p=reflink&id='
.$this->reflink->getLink($_SESSION['user_name']).'" />
    '
;
}
if(!empty(
$_GET['p']) && $_GET['p']=='reflink' && !empty($_GET['id']))
{
    echo 
$this->reflink->doAction($_GET['id']);
}

?>
PS: Dieses Script ist nicht getestet (Fee-Coding)
HF damit

#Edit:
Hatte nochn bissel LW und ne lustige Idee:
Leveln durch Reflink, damit meine ich:
Pro erfolgreichen Reffer bekommt man exp und steigt auf der HP im Level auf, wobei man pro lv. Coins oder anderes Zeug bekommt (Items, was weiß ich!?)
Hier mal ein kleiner Entwurf:
exp Class
PHP Code:
class exp {
    private 
$db;
    
    public function 
__construct()
    {
        
$this->db = new $database;
    }
    
    public function 
setExp($userID$exp)
    {
        if(
$exp 0)
            
$exp '+'.$exp;
            
        
$sql 'UPDATE '.$this->db->webdb['level'].'.exp SET exp=exp'.$exp.' WHERE uid='.$userID.';';
        
$result $this->db->exec($this->db->web$sql);
        if(empty(
$result) || $result === false)
            return 
false;
        else
            return 
true;
    }
    
    public function 
getExp($userID)
    {
        
$sql 'SELECT exp FROM '.$this->db->webdb['level'].'.exp WHERE uid='.$userID.';';
        
$result mysqli_fetch_object($this->db->exec($this->db->web$sql))->exp;
        if(empty(
$result) || $result === false)
            return 
false;
        else
            return 
true;
    }

Level Class
PHP Code:
<?php
class level {
    private 
$exp;
    private 
$expTmp;
    private 
$expNeed;
    private 
$level;
    
    public function 
__construct()
    {
    }
    
    public function 
getLevel($userID)
    {
        
$this->exp = new exp;
        
$this->expTmp $this->exp->getExp($userID);
        
$this->expNeed 100;
        
        
$this->level 0;
        while(
$this->expTmp >= $this->expNeed)
        {
            
$this->expNeed $this->expNeed + ($this->expNeed 50);
            
$this->expTmp $this->expTmp $this->expNeed;
            
$this->level++;
        }
        return 
$this->level;
    }
}
?>
example php
PHP Code:
    function __autoload($name) {
        include(
"./".$name.".class.php");
    }
    
spl_autoload_register("__autoload");
    
    
$level = new level;
    echo 
$level->getLevel(1); 
Coniesan is offline  
Thanks
13 Users
Closed Thread


Similar Threads Similar Threads
[Selling] Ref - Link Script (Schneeballsystem)
09/26/2014 - Trading - 6 Replies
Hallo ich wollte euch ein Ref - Link script anbieten wo ihr für Verschiedene Bereiche nutzen könnt. Für ein Beispiel pn bitte #up #up
bdswiss.com, offensichtliches Schneeballsystem
03/13/2014 - Off Topic - 17 Replies
Moin Leute, man sieht auf DMAX oft Werbung für eine Seite names BDswiss.com. Es wird versprochen, bzw. in aussicht gestellt, aus 100€ etwa ~200€ in 60 Sekunden zu machen. Und das angeblich mit dem Verfolgen eines Kuses welcher steigen und fallen kann. Mal ganz davon ab das das Unternehmen, laut Homepage, in Zypern angemeldet ist meine ich mich zu erinnern das Systeme welche nicht tranzparent sind und versprechen etwas zu bieten in Deutschland nicht erlaubt sind. Was es nicht so das man sich...
Bypass Link Adf Php-Script
05/06/2012 - Coding Releases - 0 Replies
Bypass Link Adf Script Mit diesen Script können Sie Adf Links umwandeln. Damit Sie gleich den Link bekommen. Keine Werbung mehr sehen. Oder um zuschauen welche Seite es wirklich ist. Demo auf Anfrage!



All times are GMT +1. The time now is 23:54.


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.