NWNDS/nwnds_module/hs_kreel_reward3.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

41 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName hs_kreel_reward3
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 10/7/2002 1:34:28 AM
//:://////////////////////////////////////////////
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
object oItem;
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="MatthaisEar") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
{
// Give the speaker the items
int nVeggie = d4();
//% chance
if ((nVeggie > 0) && (nVeggie <= 1))
CreateItemOnObject("spectralcloak", GetPCSpeaker(), 1);
//% chance
else if ((nVeggie > 1) && (nVeggie <= 2))
CreateItemOnObject("githskincloak", GetPCSpeaker(), 1);
//% chance
else if ((nVeggie > 2) && (nVeggie <= 3))
CreateItemOnObject("torakswrap", GetPCSpeaker(), 1);
//% chance
else if (nVeggie > 3)
CreateItemOnObject("travisscloak", GetPCSpeaker(), 1);
}}