diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/estate.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/functions/estate.txt b/npc/functions/estate.txt new file mode 100644 index 000000000..c6a5508a4 --- /dev/null +++ b/npc/functions/estate.txt @@ -0,0 +1,19 @@ +// TMW2: Moubootaur Legends scripts. +// Author: +// Jesusalva +// Description: +// Real Estate System +// Script Helpers +// For all your real estate purposes + +// This function reduces payment accordingly +// realestate_payment ( amount ) +function script realestate_payment { + REAL_ESTATE_CREDITS=REAL_ESTATE_CREDITS-getarg(0); + if (REAL_ESTATE_CREDITS < 0) { + Zeny+=REAL_ESTATE_CREDITS; + REAL_ESTATE_CREDITS=0; + } + return; +} + |