#include "x2_inc_switches"
void main()
{
object oSpawn;
// Get the PC
object oPC = GetItemActivator();
// Stop if the PC does not have Flint.
if ( GetItemPossessedBy(oPC, "jw_flint") == OBJECT_INVALID )
{
CreateItemOnObject("jw_firewood", oPC, 1);
SendMessageToPC(oPC, "You need a piece of flint to start the fire.");
return;
}
// Spawn Campfire.
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "jw_campfire", GetLocation(oPC));
}





Retour en haut







