15 lines
402 B
Plaintext
15 lines
402 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
if(GetItemPossessedBy(oPC, "fr_iwd_blackstone") != OBJECT_INVALID)
|
||
|
{
|
||
|
// Remove items from the player's inventory
|
||
|
object oItemToTake = GetItemPossessedBy(oPC, "fr_iwd_blackstone");
|
||
|
DestroyObject(oItemToTake);
|
||
|
CreateItemOnObject("jw_bedroll3", oPC);
|
||
|
CreateItemOnObject("jw_food3", oPC);
|
||
|
CreateItemOnObject("jw_food3", oPC);
|
||
|
}
|
||
|
}
|