/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Forsettii's Quest Builder System. Version 1.0 Created for Layonara Online Forsettii Forsettii@yahoo.com April 7, 2004 Quest Style 1 : Give Rewards Script (Used For Parties) Variables: Quest_Name - Same as Journal Entry gold_2_give - Amount of Gold Given item_2_take - Item to Take #1 xp is given to Player from the Journal -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ #include "nw_i0_tool" #include "x0_i0_partywide" void main() { string sName = GetLocalString(OBJECT_SELF, "quest_name"); int iGold = GetLocalInt(OBJECT_SELF, "gold_2_give"); int iXp = GetJournalQuestExperience(sName); string sGet_Item = GetLocalString(OBJECT_SELF, "item_2_take"); object oPC = GetPCSpeaker(); // Give the speaker some gold //GiveGoldToCreature(oPC, iGold); RewardPartyGP(iGold, oPC); // Give the speaker some XP (XP to Party) //GiveXPToCreature(oPC, iXp); RewardPartyXP(iXp, oPC); // Remove items from the player's inventory object oItem = GetObjectByTag(sGet_Item); if(GetIsObjectValid(oItem) != 0) DestroyObject(oItem); // Set the variables SetLocalIntOnAll(oPC, sName, 3); AddJournalQuestEntry(sName, 3, oPC, TRUE, FALSE, FALSE); }