/* Script generated by Lilac Soul's NWN Script Generator, v. 2.1 For download info, please visit: http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */ void main() { object oPC = GetItemActivator(); if (!GetIsPC(GetItemActivatedTarget()) || (GetObjectType(GetItemActivatedTarget())!=OBJECT_TYPE_CREATURE) ){ SendMessageToPC(GetItemActivator(), "Improper use of item!"); return;} if (GetGold(oPC) >= 50000) { oPC = GetItemActivatedTarget(); CreateItemOnObject("blackkey", oPC); oPC = GetItemActivator(); AssignCommand(oPC, TakeGoldFromCreature(50000, oPC, TRUE)); } }