• 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!

[TFS 1.2] Scarab Coin NPC

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hello folks, how to make this script to instead of selling the item by using money uses a scarab coins as the main currency in that npc?

For example the npc will sell to the player a Dragon Backpack not for money but for scarab coins. Maybe it is in here? Don't know.

Thanks for the support.
 
player:getMoney() -> player:getItemCount(scarab_coin)
player:removeMoney(amount) -> player:removeItem(scarab_coin, amount)
player:addMoney(amount) -> player:addItem(scarab_coin, amount)
 
@EvulMastah
It's possible to replace the gold of the trade? If yes, where I can do it? By the way, on trade the money still counts.

Tb-biEK.png
 
Back
Top