Jump to content

Pluc

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Pluc

  1. I know this is an old topic but I couldn't bring myself to delete and re-create an item to identify it. Its sound like a unnecessary risk, so I added a identifyall script command based on the @identifyall command. Figured I should share it and this was the first thing on google about identifying NPC. script.inc BUILDIN_FUNC(identifyall) { int i; TBL_PC* sd; if( !script_rid2sd(sd) ) return SCRIPT_CMD_SUCCESS; for(i=0; i<MAX_INVENTORY; i++) { if (sd->inventory.u.items_inventory[i].nameid > 0 && sd->inventory.u.items_inventory[i].identify != 1) { sd->inventory.u.items_inventory[i].identify = 1; clif_item_identified(sd,i,0); } } return SCRIPT_CMD_SUCCESS; } script_def.inc BUILDIN_DEF(identifyall,""), Usage - script Deckard Cain -1,{ identifyall; end; } If you see a flaw in this, please let me know, cause I'm using it on my server
×
×
  • Create New...