Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //made by EmuServers Credit 2019
- #include "ScriptMgr.h"
- #include "Chat.h"
- #include "WorldSession.h"
- class item_level : public ItemScript
- {
- public: item_level() : ItemScript("item_level") { }
- bool OnUse(Player* player, Item* item, SpellCastTargets const& /*targets*/)
- {
- if(player->getLevel() < 80)
- {
- player->GetSession()->SendAreaTriggerMessage("no cumples con los requisitos");
- return false;
- }
- else
- {
- player->PlayDirectSound(30);
- player->GiveLevel(1);
- player->GetSession()->SendAreaTriggerMessage("tu eres level 1");
- player->DestroyItemCount(111113, 1, true);
- return true;
- }
- }
- };
- void AddSC_npc_promo()
- {
- new item_level();
- }
Advertisement
Add Comment
Please, Sign In to add comment