26 lines
984 B
Plaintext
26 lines
984 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: FileName element_takegem1
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Script Wizard
|
||
|
//:: Created On: 22/11/2003 22:36:09
|
||
|
//:://////////////////////////////////////////////
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
// Remove items from the player's inventory
|
||
|
object oItemToTake;
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "airgem");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "firegem");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "watergem");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "earthgem");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
ActionTakeItem(oItemToTake, GetPCSpeaker());
|
||
|
}
|