28 lines
632 B
Plaintext
28 lines
632 B
Plaintext
object oItem;
|
|
//Put this on action taken in the conversation editor
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
if (GetIsSkillSuccessful(oPC, SKILL_PICK_POCKET, 32))
|
|
{
|
|
CreateItemOnObject("gnomishtweezers", oPC);
|
|
|
|
SendMessageToPC(oPC, "As you hand the spear tip to him you notice he immediatly puts it into his pocket, a serious mistake when dealing with someone of your 'talents'. You have successfully reaquired the spear tip.");
|
|
|
|
}
|
|
else
|
|
{
|
|
oItem = GetItemPossessedBy(oPC, "bloody_spear_tip");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("gnomishtweezers", oPC);
|
|
|
|
}
|
|
|
|
}
|
|
|