Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/quest_getbribe.nss
Normal file
16
_module/nss/quest_getbribe.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "quest_inc"
|
||||
void main()
|
||||
{
|
||||
string sDB = CharacterDB(GetPCSpeaker());
|
||||
|
||||
int nReward = 11*GetCampaignInt(sDB, "QUEST_REWARD")/10;
|
||||
GiveGoldToCreature(GetPCSpeaker(), nReward);
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "Quest_Halt", TRUE);
|
||||
|
||||
if (GetCampaignInt(sDB, "QUEST_BACKGROUND") == 5) AdjustAlignment(GetPCSpeaker(), ALIGNMENT_EVIL, 3, FALSE);
|
||||
|
||||
DeleteQuest(GetPCSpeaker());
|
||||
RemoveJournalQuestEntry("random_quest", GetPCSpeaker(), FALSE);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user