Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cash Point - Not linked to client?

Junior Spellweaver
Joined
Jan 9, 2010
Messages
168
Reaction score
73
3yNp5LE - Cash Point - Not linked to client? - RaGEZONE Forums


using the command /pc addcash the table in the "loginserver>accounts" database seems to work, but my cash point in-game still 0. Is it a bug or i'm on the wrong db table here ? Appreciated ur help, thx:junglejane:
 

Attachments

You must be registered for see attachments list
Joined
Oct 28, 2011
Messages
2,465
Reaction score
1,258
You can dig further into the real issue.

Temporary work around:
com\bdoemu\core\network\receivable\CMCash.java

Code:
import com.bdoemu.commons.network.ReceivablePacket;
import com.bdoemu.commons.network.SendablePacket;
import com.bdoemu.core.network.GameClient;
import com.bdoemu.core.network.sendable.SMCash;
import com.bdoemu.gameserver.model.creature.player.Player;

public class CMCash extends ReceivablePacket<GameClient> {
    public CMCash(final short opcode) {
        super(opcode);
    }

    protected void read() {
    }

    public void runImpl() {
        final Player player = this.getClient().getPlayer();
        //if (player != null && !player.getBanController().checkChat()) { // The getBanController.checkChat() method caused cash not to be shown in pearl shop after adding to db
        if (player != null) { // Temporary replaced above line with this. Cash Points show in game if added to db via web or direct modification of db
            this.getClient().sendPacket(new SMCash(player.getAccountId()));
        }
    }
}
 
Upvote 0
Back
Top