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

22 lines
589 B
Plaintext

// pelben_c_complet
void main()
{
object oPC=GetPCSpeaker();
object oMod=GetModule();
int nQuests=GetLocalInt(oPC,"nQuests");
object oOb;
nQuests++;
GiveGoldToCreature(oPC,5000);
SetLocalInt(oPC,"nQuests",nQuests);
AddJournalQuestEntry("portelben",3,oPC,FALSE,FALSE);
oOb=GetFirstPC();
while(oOb!=OBJECT_INVALID)
{ // journal
if (oOb!=oPC) AddJournalQuestEntry("portelben",5,oOb,FALSE,FALSE);
oOb=GetNextPC();
} // journal
SetLocalInt(oMod,"bPelbenQuestCleared",TRUE);
oOb=GetItemPossessedBy(oPC,"rts_plotear");
DestroyObject(oOb);
}