Amon_PRC8/_module/nss/give_opiumsyrup.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

25 lines
727 B
Plaintext

//::///////////////////////////////////////////////
//:: 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);
}