36 lines
749 B
Plaintext
36 lines
749 B
Plaintext
|
#include "dm_forge_config"
|
||
|
void main()
|
||
|
{
|
||
|
object oItem = GetInventoryDisturbItem();
|
||
|
object oPC = GetLastDisturbed();
|
||
|
int ID = GetIdentified(oItem);
|
||
|
int bPLOT = GetPlotFlag(oItem);
|
||
|
|
||
|
if(!PLOT_UNFORGEABLE && ID) return;
|
||
|
|
||
|
if(bPLOT || !ID)
|
||
|
{
|
||
|
CopyItem(oItem,oPC,TRUE);
|
||
|
DestroyObject(oItem,0.1);
|
||
|
SendMessageToPC(oPC,"You cannot forge that item");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ORIGINAL CODE BELOW /////////////////////////////////////////////////////////
|
||
|
/*
|
||
|
#include "dm_forge_config"
|
||
|
void main()
|
||
|
{
|
||
|
object oItem = GetLastDisturbed();
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
if(!PLOT_UNFORGEABLE) return;
|
||
|
|
||
|
if(GetPlotFlag(oItem))
|
||
|
{
|
||
|
CopyItem(oItem,oPC,TRUE);
|
||
|
DestroyObject(oItem,0.5);
|
||
|
SendMessageToPC(oPC,"You cannot forge that item");
|
||
|
}
|
||
|
} */
|