WoR_PRC8/_module/nss/nmr_npcscribe.nss

21 lines
570 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
// Written by: Ne0nx3r0
// for the Dot Hack Project mod,
// http://www.dothackproject.net/
// Ne0nx3r0@hotmail.com
void main()
{
string sqname = GetLocalString(OBJECT_SELF,"current_name");
object oChest = GetNearestObjectByTag("ChestofNames",OBJECT_SELF);
object oItem = GetFirstItemInInventory(oChest);
ActionCastFakeSpellAtObject(SPELL_VIRTUE, oChest, PROJECTILE_PATH_TYPE_DEFAULT);
SetName(oItem,sqname);
SetLocked(oChest,FALSE);
DelayCommand(0.5, AssignCommand(oChest, ActionSpeakString("***ITEM NAMED***")));
ActionSpeakString(".. and there you have it!");
}