HoS_PRC8/_mod/_module/nss/cg_take_assfee.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

17 lines
468 B
Plaintext

// Take mg assassin fee
void main()
{
object oChest=GetObjectByTag("CG_CHEST");
object oPC=GetPCSpeaker();
object oMod=GetModule();
int nFee=GetLocalInt(OBJECT_SELF,"nCGAssCost");
int nPow;
object oItem=CreateItemOnObject("nw_it_gold001",oChest,nFee);
TakeGoldFromCreature(nFee,oPC,TRUE);
nPow=GetLocalInt(oMod,"nEvilPower");
nFee=nFee/500;
nPow=nPow+nFee;
SetLocalInt(oMod,"nEvilPower",nPow);
ExecuteScript("rise_of_evil",oMod);
}