WoR_PRC8/_module/nss/qst_rogpickpckt.nss

28 lines
632 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
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);
}
}