Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (action == 5)
- {
- if (pPlayer->getLevel() == 60)
- {
- for(int i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; ++i)
- {
- if(Item *pItem = pPlayer->GetItemByPos( INVENTORY_SLOT_BAG_0, i ))
- {
- ChatHandler(pPlayer).PSendSysMessage("You must not have any items equipped while going twinking");
- return true;
- }
- }
- pPlayer->SetLevel(19);
- pPlayer->resetSpells();
- pPlayer->resetTalents(true);
- pPlayer->InitStatsForLevel(true);
- pPlayer->InitTalentForLevel();
- pPlayer->SaveToDB();
- }
- else
- {
- pPlayer->SetLevel(60);
- pPlayer->SaveToDB();
- }
- }
Add Comment
Please, Sign In to add comment