Currency Functions¶
gObjCharacterReduceZen(lpObj, amount, log, check)¶
Reduces the player's Zen. Returns false if insufficient.
if gObjCharacterReduceZen(player, 100000, true, true) then
GCNoticeSend(player.Index, 1, "100,000 Zen deducted.")
end
gObjCharacterAddZen(lpObj, amount, log)¶
Adds Zen to the player.
gObjCharacterSetZen(lpObj, amount)¶
Sets the player's Zen to an exact amount. Available when EXTEND_MONEY == 1.
gObjCharacterReduceRuud(lpObj, amount, log, check)¶
Reduces the player's Ruud currency. Returns false if insufficient.
if gObjCharacterReduceRuud(player, 500, true, true) then
GCNoticeSend(player.Index, 1, "500 Ruud deducted.")
end
gObjCharacterAddRuud(lpObj, amount, log)¶
Adds Ruud to the player.
gObjCharacterSetRuud(lpObj, amount)¶
Sets the player's Ruud to an exact amount.
GDWareHouseReducePenaltyMoney(lpObj, money)¶
Reduces the warehouse penalty money (death penalty).
Help