17 lines
469 B
Plaintext
17 lines
469 B
Plaintext
// Take mg assassin fee
|
|
void main()
|
|
{
|
|
object oChest=GetObjectByTag("MG_CHEST");
|
|
object oPC=GetPCSpeaker();
|
|
object oMod=GetModule();
|
|
int nFee=GetLocalInt(OBJECT_SELF,"nMAGEASSFEE");
|
|
int nPow;
|
|
object oItem=CreateItemOnObject("nw_it_gold001",oChest,nFee);
|
|
TakeGoldFromCreature(nFee,oPC,TRUE);
|
|
nPow=GetLocalInt(oMod,"nEvilPower");
|
|
nFee=nFee/100;
|
|
nPow=nPow+nFee;
|
|
SetLocalInt(oMod,"nEvilPower",nPow);
|
|
ExecuteScript("rise_of_evil",oMod);
|
|
}
|