CodeIn that case you have to edit the script itself aswell as classes/player.php as you wrote above.
Might have to change a couple of more things aswell, might be easier to change the store to use premium_points insted.
Let's hope that websites uses the same schemas ~ with 2.0, that would make things alot easier![]()
add auction?
Add auction is ok, when we click on characters this redirection to another page and the page is all white/blank.
http://IP/index.php?subtopic=sellchar&action=show&id=1
add tables?
link
CREATE TABLE `characters_auctions` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`state` TINYINT( 1 ) NOT NULL DEFAULT '0' ,
`finish_time` INT NOT NULL ,
`char_id` INT NOT NULL ,
`buy_now` INT NOT NULL ,
`bid` INT NOT NULL ,
`bidder` INT NOT NULL ,
INDEX ( `finish_time` ));
i have changed OTS_PlayerI took a quick look at this a couple of days ago, I am planning to rewrite it for 1.2, hopefully during this week.
1. Use find and replace in the PHP file, remove "OTS_" from ex OTS_Player
2. Then you got world ids and promotion codes that 2012 dosn't have a compat for, so you need to create compats for those functions in classes/player.php or remove them from the script.
some error on screen?Add auction is ok, when we click on characters this redirection to another page and the page is all white/blank.
http://IP/index.php?subtopic=sellchar&action=show&id=1
public $data = array('coins' => null,
public static $fields = array( 'coins',
public function setCoins($value){$this->data['coins'] = $value;}
public function getCoins(){return $this->data['coins'];}
I took a quick look at this a couple of days ago, I am planning to rewrite it for 1.2, hopefully during this week.
1. Use find and replace in the PHP file, remove "OTS_" from ex OTS_Player
2. Then you got world ids and promotion codes that 2012 dosn't have a compat for, so you need to create compats for those functions in classes/player.php or remove them from the script.
</td><td>' . $player['name'] . '</td><td>' . ($vocation_name[$player['vocation']]).[$player['promotion']][$player['vocation']] . '</td><td style="float: right;">
</td><td>' . $player['name'] . '</td><td>' . ($vocation_name[$player['vocation']]).[$player['vocation']] . '</td><td style="float: right;">
i have changed OTS_Player
some error on screen?
u need add in classes/account.php
andPHP:public $data = array('coins' => null,
search for premium_pointsPHP:public static $fields = array( 'coins',
below add
PHP:public function setCoins($value){$this->data['coins'] = $value;} public function getCoins(){return $this->data['coins'];}
or Open sellchar.php change getCoins for getpremium_points
and setCoins for setpremium_points
Hey you mean in this line?
PHP:</td><td>' . $player['name'] . '</td><td>' . ($vocation_name[$player['vocation']]).[$player['promotion']][$player['vocation']] . '</td><td style="float: right;">
when removed:
PHP:</td><td>' . $player['name'] . '</td><td>' . ($vocation_name[$player['vocation']]).[$player['vocation']] . '</td><td style="float: right;">
dont work, I did wrong changes?
$auctionChar->getPromotion()
public function getWorld() { return 0; }
public function getWorldID() { return 0; }
public function getPromotion() { return $this->getVocation() > 4 ? 1 : 0; }
public function find($name) { $this->loadByName($name); }
Coins? No.
Gesior uses premium_points, there is no need for other columns that do the exact same thing or maybe you are using the Store ingame aswell?
i use store ingame
edit is getPremiumPoints and SetPremiumPoints
CodeIn that case you have to edit the script itself aswell as classes/player.php as you wrote above.
Might have to change a couple of more things aswell, might be easier to change the store to use premium_points insted.
Let's hope that websites uses the same schemas ~ with 2.0, that would make things alot easier![]()
Code
changed to PremiumPoints
dont need change classes/player.phpAnd in player.php?
like what?there were some bugs on the previous version so maybe yay
Hey, have bug abuse? Like @StreamSide says ?dont need change classes/player.php
Edit
SORRY, MY BAD. Its works..
Hey, looking into this, can have any bug abuse?![]()
there were some bugs on the previous version so maybe yay
i use to some time without errors, but the rename function after the purchase does not work or is missing
is true
bugs like what?