Initial Upload
Initial Upload
This commit is contained in:
14
_module/nss/npc_see_item.nss
Normal file
14
_module/nss/npc_see_item.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
if (GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker()) != OBJECT_INVALID)
|
||||
{string item = GetStringLowerCase(GetName(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker())));
|
||||
if (FindSubString(item,"+")>0)
|
||||
{int plus = FindSubString(item,"+");
|
||||
item = GetStringLeft(item,plus-1);
|
||||
}
|
||||
|
||||
SetCustomToken(659,item);
|
||||
return TRUE;}
|
||||
|
||||
return FALSE;
|
||||
}
|
Reference in New Issue
Block a user