Atrinik Server  4.0
Macros
Bank return values

Macros

#define BANK_SYNTAX_ERROR   -1
 
#define BANK_SUCCESS   0
 
#define BANK_WITHDRAW_HIGH   1
 
#define BANK_WITHDRAW_MISSING   2
 
#define BANK_WITHDRAW_OVERWEIGHT   3
 
#define BANK_DEPOSIT_COPPER   1
 
#define BANK_DEPOSIT_SILVER   2
 
#define BANK_DEPOSIT_GOLD   3
 
#define BANK_DEPOSIT_JADE   4
 
#define BANK_DEPOSIT_MITHRIL   4
 
#define BANK_DEPOSIT_AMBER   4
 

Detailed Description

Meaningful constants of values returned by bank_withdraw() and bank_deposit().

BANK_WITHDRAW_xxx constants can only be returned by bank_withdraw(), while BANK_DEPOSIT_xxx constants can only be returned by bank_deposit(). Any other constants can be returned by both functions.

Macro Definition Documentation

#define BANK_DEPOSIT_AMBER   4

Player doesn't have enough amber coins on hand.

Definition at line 72 of file global.h.

#define BANK_DEPOSIT_COPPER   1

Player doesn't have enough copper coins on hand.

Definition at line 62 of file global.h.

#define BANK_DEPOSIT_GOLD   3

Player doesn't have enough gold coins on hand.

Definition at line 66 of file global.h.

#define BANK_DEPOSIT_JADE   4

Player doesn't have enough jade coins on hand.

Definition at line 68 of file global.h.

#define BANK_DEPOSIT_MITHRIL   4

Player doesn't have enough mithril coins on hand.

Definition at line 70 of file global.h.

#define BANK_DEPOSIT_SILVER   2

Player doesn't have enough silver coins on hand.

Definition at line 64 of file global.h.

#define BANK_SUCCESS   0

Successfully withdrawn/deposited money.

Definition at line 52 of file global.h.

#define BANK_SYNTAX_ERROR   -1

Syntax error: did not get text in expected format.

Definition at line 50 of file global.h.

#define BANK_WITHDRAW_HIGH   1

Withdraw value was too high.

Definition at line 55 of file global.h.

#define BANK_WITHDRAW_MISSING   2

Player wanted to withdraw more than they have in bank.

Definition at line 57 of file global.h.

#define BANK_WITHDRAW_OVERWEIGHT   3

Withdrawing that much money would make the player overweight.

Definition at line 59 of file global.h.