27 lines
885 B
Plaintext
27 lines
885 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: FileName jw_smith_gvsplin
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Script Wizard
|
||
|
//:: Created On: 14/08/2002 23:42:01
|
||
|
//:://////////////////////////////////////////////
|
||
|
void main()
|
||
|
{
|
||
|
// Give the speaker the items
|
||
|
CreateItemOnObject("jw_bright_splint", GetPCSpeaker(), 1);
|
||
|
|
||
|
|
||
|
// Remove some gold from the player
|
||
|
TakeGoldFromCreature(8000, GetPCSpeaker(), TRUE);
|
||
|
|
||
|
// Remove items from the player's inventory
|
||
|
object oItemToTake;
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "jw_bright_ore");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
DestroyObject(oItemToTake);
|
||
|
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "jw_bright_salve");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
DestroyObject(oItemToTake);
|
||
|
}
|