20 lines
433 B
Plaintext
20 lines
433 B
Plaintext
|
// Dom Queron's powderkeg: Call in Module OnUnaquireItem. Will return TRUE
|
||
|
// if a powderkeg was unaquired
|
||
|
int CheckPKegUnaquire();
|
||
|
|
||
|
int CheckPKegUnaquire()
|
||
|
{
|
||
|
object oKeg = GetModuleItemLost();
|
||
|
|
||
|
if (GetTag(oKeg) == "gz_it_pkeg")
|
||
|
{
|
||
|
location lLoc = GetLocation(oKeg);
|
||
|
DestroyObject(oKeg);
|
||
|
CreateObject(OBJECT_TYPE_PLACEABLE,"gz_obj_pkeg",lLoc);
|
||
|
return TRUE;
|
||
|
} else
|
||
|
return FALSE;
|
||
|
|
||
|
|
||
|
}
|