Guest User

Untitled

a guest
Dec 10th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. else if (action == 5)
  2. {
  3. if (pPlayer->getLevel() == 60)
  4. {
  5. for(int i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; ++i)
  6. {
  7. if(Item *pItem = pPlayer->GetItemByPos( INVENTORY_SLOT_BAG_0, i ))
  8. {
  9. ChatHandler(pPlayer).PSendSysMessage("You must not have any items equipped while going twinking");
  10. return true;
  11. }
  12. }
  13. pPlayer->SetLevel(19);
  14. pPlayer->resetSpells();
  15. pPlayer->resetTalents(true);
  16. pPlayer->InitStatsForLevel(true);
  17. pPlayer->InitTalentForLevel();
  18. pPlayer->SaveToDB();
  19. }
  20. else
  21. {
  22. pPlayer->SetLevel(60);
  23. pPlayer->SaveToDB();
  24. }
  25. }
Add Comment
Please, Sign In to add comment