Skip to content

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.

gObjCharacterAddZen(player, 500000, true)

gObjCharacterSetZen(lpObj, amount)

Sets the player's Zen to an exact amount. Available when EXTEND_MONEY == 1.

gObjCharacterSetZen(player, 1000000)

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.

gObjCharacterAddRuud(player, 1000, true)

gObjCharacterSetRuud(lpObj, amount)

Sets the player's Ruud to an exact amount.

gObjCharacterSetRuud(player, 5000)

GDWareHouseReducePenaltyMoney(lpObj, money)

Reduces the warehouse penalty money (death penalty).

GDWareHouseReducePenaltyMoney(player, 50000)