Rune_PRC8/_module/nss/vat_setcharges.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

10 lines
229 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oItem = GetLocalObject(oPC, "MODIFY_ITEM");
int iCost = GetLocalInt(oPC, "iModifyCost");
TakeGoldFromCreature(iCost, oPC, TRUE);
SetItemCharges(oItem, 99);
}