Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
15
_module/nss/fr_iwd_quest_og2.nss
Normal file
15
_module/nss/fr_iwd_quest_og2.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if(GetItemPossessedBy(oPC, "fr_iwd_ogreloot2")!= OBJECT_INVALID)
|
||||
// Give the speaker some gold
|
||||
GiveGoldToCreature(oPC, 150);
|
||||
|
||||
|
||||
// Remove items from the player's inventory
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(oPC, "fr_iwd_ogreloot2");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
}
|
||||
Reference in New Issue
Block a user