• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

sell/buy characters on gesior acc please

Solution
In 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 :p
Code
changed to PremiumPoints
add tables?
link

in sql? yep:

PHP:
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 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.
 
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.
i have changed OTS_Player

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
some error on screen?

u need add in classes/account.php

PHP:
public $data = array('coins'  => null,
and
PHP:
public static $fields = array( 'coins',
search for premium_points
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 getPremiumPoints
and setCoins for setPremiumPoints
 
Last edited:
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.

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?
 
i have changed OTS_Player


some error on screen?

u need add in classes/account.php

PHP:
public $data = array('coins'  => null,
and
PHP:
public static $fields = array( 'coins',
search for premium_points
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

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?

[GESIOR ACC] Sell characters on auctions (+ 'Buy Now') [ for premium points ]
That is the one I am gonna convert.

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?

Ex;
PHP:
$auctionChar->getPromotion()

The getPromotion function does not exist in Gesior 1.x
This is a hack I kinda wrote to just get it to work, no ide if it's correct or not but it should make the script loadable atleast;

Add this to classes/player.php
PHP:
        public function getWorld() { return 0; }
        public function getWorldID() { return 0; }
        public function getPromotion() { return $this->getVocation() > 4 ? 1 : 0; }

Add it below;
PHP:
public function find($name) { $this->loadByName($name); }
 
i use store ingame

edit is getPremiumPoints and SetPremiumPoints

In 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 :P
 
In 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 :p
Code
changed to PremiumPoints
 
Solution
Edit
SORRY, MY BAD. Its works..

Hey, looking into this, can have any bug abuse? o_O
 
Last edited by a moderator:
Back
Top