Amon_PRC8/_module/nss/give_opiumsyrup.nss

25 lines
727 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
//::///////////////////////////////////////////////
//:: FileName give_opiumsyrup
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 1/28/2004 7:05:50 PM
//:://////////////////////////////////////////////
void main()
{
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "OpiumSyrup");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Give the speaker the items
CreateItemOnObject("opiumsyrup", GetPCSpeaker(), 1);
// Remove some gold from the player
TakeGoldFromCreature(50, GetPCSpeaker(), TRUE);
}