Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class Scrollofwhatever : public ItemScript
- {
- public:
- Scrollofwhatever() : ItemScript("Scrollofwhatever"){}
- bool OnUse(Player* pPlayer, Item* pItem, SpellCastTargets const& /*targets*/)
- {
- if(!pPlayer)
- return false;
- if(!pItem)
- return false;
- pPlayer->DestroyItemCount(pItem->GetEntry(), 1, true);
- //pPlayer->AddItem(entryid, how many);
- return true;
- }
- };
- void Scrollofwhatever()
- {
- new Scrollofwhatever();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement