28 lines
737 B
Plaintext
28 lines
737 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: FileName deronsafe
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Script Wizard
|
||
|
//:: Created On: 1
|
||
|
//:://////////////////////////////////////////////
|
||
|
#include "nw_i0_tool"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
// Give the speaker some XP
|
||
|
RewardPartyXP(1000, GetPCSpeaker());
|
||
|
|
||
|
// Give the speaker the items
|
||
|
CreateItemOnObject("edricskey", GetPCSpeaker(), 1);
|
||
|
|
||
|
|
||
|
// Remove items from the player's inventory
|
||
|
object oItemToTake;
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "L_sot");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
DestroyObject(oItemToTake);
|
||
|
// Set the variables
|
||
|
SetLocalInt(GetPCSpeaker(), "deronsafe", 1);
|
||
|
|
||
|
}
|