Jump to content

add item in external script


Guest filo

Recommended Posts

Found this on the scriptdev2 forums

http://www.scriptdev2.com/help-adding-items-t4545.html?t=4545

Heres a snip from ./bindings/ScriptDev2/scripts/eastern_kingdoms/ghostlands.cpp Line 50, shows the itemID in line just above SendNewItem

bool GossipSelect_npc_blood_knight_dawnstar(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
{
   if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
   {
       if (Item* pItem = pPlayer->StoreNewItemInInventorySlot(24226, 1))
           pPlayer->SendNewItem(pItem, 1, true, false);

       pPlayer->CLOSE_GOSSIP_MENU();
   }
   return true;
}

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use