A minor addition to this quest for balancing reasons:
Add the line "quest::selfcast(331);" to each section of the quest that actually de-level's the character.
Example below:
Code:
if(($text=~/65/i)&&($ulevel == 70)){
quest::say("Here you go! Remember, DO NOT lose that trinket! You will need it to turn into me when you want to restore your level back to 70. If you lose it, you will have to level up the normal way all over again!");
quest::emote("casts a spell and before you know it, you feel young and vibrant again. The world suddenly seems much larger and more intimidating!");
quest::summonitem(12941);
quest::selfcast(331);
quest::level(65);
}
Spell 331 should be "Reclaim Energy" to unsummon any pets. I tested it on Mage and Beastlord and it worked perfectly. Otherwise, a character could have a max level pet and de-level to 1 and keep the pet, which is a bad thing :P
I may rework this quest eventually when I figure out how to use globals well enough. I would like to have it so any level can use the quest and it will remember what level to set them back to when they return the item.
More details on testing de-leveling:
1. AAs all stay, but some may appear to poof until you zone. You can't use any AA's that aren't available for your current level. I am unsure about passive AAs.
2. All skills stay. I am unsure if it uses the cap skill for your current level or if it uses whatever your skill total is at. A level 1 with 300ish any skill would be pretty bad. I am thinking it should cap at (your level X 5) + 5. So, level 1 would have access to skills of (1 X 5) + 5 = 10 as is the cap per level on live.
You don't have to work your skills back up after you restore your previous higher level.
3. Spells all stay and will even stay scribed until you zone. Any spell you have scribed above your level will not allow you to cast it. Once you zone, any spell over your level will unscribe from your spell bar. You can save spell sets by right clicking the book icon on your spell bar and using the save options. Then you can save and load different sets of saved spell combos depending on your current level.
4. Confirmed that any item above your level that is still equiped will give no stats, even though the character window will show you as still getting stats from them (it is lying). If you get 1000hps from armor above your level and you have 1000hps naked, normally you would have 2000hps, but since items above your level don't actually give stats, you only have 1000hps even though the char screen still shows 2000hps. And any weapons over your level will give the "Invulnerable" message when trying to attack with them. So, if you plan to de-level, make sure to keep an alternate set of gear usable for that level.
5. Pets stay, but if you use the selfcast above to have the player cast Reclaim Energy on themselves, the pets will be gone.
That is all of the testing I have done for now.