#include "aps_include"
void main()
{
int dep=GetLocalInt(OBJECT_SELF, "deposit");
TakeGoldFromCreature(dep, GetPCSpeaker(), TRUE);
int balance=GetPersistentInt(GetPCSpeaker(), "cc_bank_gold");
SetPersistentInt(GetPCSpeaker(), "cc_bank_gold", dep+balance);
DeleteLocalInt(OBJECT_SELF, "deposit");
}
My questions are: What is the best way and the proper equation for subtracting 10% from the deposit and making that the amount that gets deposited?
Thanks for your help.
Modifié par Badwater, 22 mars 2011 - 07:22 .





Retour en haut






