View Full Version : A little help here !!
mikjail
01-17-2016, 02:58 PM
can somebody help me on how to use this function Self.WithdrawMoney
Merre
01-17-2016, 02:59 PM
What do you need help with?
Self.WithdrawMoney(500) --will withdraw 500 gp
Self.WithdrawMoney(500*50) --will withdraw money enough to buy 500 mana potions
Self.WithdrawMoney(((500-(Self.ItemCount(268)))*50)) --will withdraw money depending on how many mana potions you're missing from 500
mikjail
01-19-2016, 03:42 AM
the third one, don't understand what exactly does, can you explaining to me step by step?
Thanks
viser14
01-19-2016, 05:20 AM
say you want to carry 500 mana potions, the third one will withdraw enough money to buy up to 500 mana potions by doing a check Self.ItemCount(268) for how many you have and subtract that amount from 500..the *50 is the cost of the mana potion multiplied by the number remaining from the first equation (500-(Self.ItemCount(268))
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.