16 lines
359 B
Plaintext
16 lines
359 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
|
||
|
// Remove items from the player's inventory
|
||
|
object oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "fr_iwd_spiritstone");
|
||
|
|
||
|
if(GetIsObjectValid(oItemToTake) == TRUE)
|
||
|
{
|
||
|
DestroyObject(oItemToTake);
|
||
|
CreateItemOnObject("fr_iwd_tower_ke", GetPCSpeaker(), 1);
|
||
|
PlayAnimation(ANIMATION_LOOPING_GET_MID, 0.7, 3.0);
|
||
|
}
|
||
|
|
||
|
}
|