View Single Post
  #3  
Old 08-20-2009, 11:39 AM
SleepWalker SleepWalker is offline
Member
 
Join Date: Jul 2009
Posts: 32
Credits: 3,853
SleepWalker
Default RE: Experience points

In the first version,there is that method:the variables is:
$level=the level of the adopt
$mlevel=the level of the monster.
PHP Code:
$plusexp currentexp 20

//Set EXP in the database

$query "UPDATE " .$prefix."owned_adoptables SET
currentexp='"
.$plusexp"' WHERE aid='".$id."'";
    
mysql_query($query); 
This code needs updates,and it works when is a win.
EDIT:I found a random link script in PHP.
Reply With Quote