Removing AA via quest.
Hello my friends. I attempted to use a negative value for the exp function for a quest.. but instead it gives a very large positive amount of xp!
I am wondering if there is already a way to remove AA and check AA amounts using the quest engine.. I couldn't find any evidence of this. Thanks! |
The only one I see is for resetting AAs:
Code:
$client->ResetAA(); |
OK that's a start I suppose.. can I check the AA level via code right now? If so then I could reset the AA and reimburse a lower amount than they had???
|
ok i'm going to start working on this now.
Requirements for aa use in quests: check banked AA add AA remove AA increase spent AA check spent AA check banked AA = ? add AA = command_add("setaapts","[value] - Set your or your player target's available AA points",100,command_setaapts) || remove AA = command_add("setaapts","[value] - Set your or your player target's available AA points",100,command_setaapts) || increase spent AA = m_pp.aapoints_spent (part of player struct) check spent AA = m_pp.aapoints_spent (part of player struct) so what is missing is being able to check aa spent, and increasing aa spent, via functions, and checking banked aa via function. then turning all of those into quest commands? or can i directly access functions from the quest manager ? i'll try and make time for this on the weekend, but if someone freer than I wants to tackle it, please do haha! |
It would probably be easiest just to copy those commands over to questmgr and do it that way. Maybe you could use the function for it, but I don't know how to set that up to work right. The others shouldn't be too hard to make if you just have them check the player profile for the values. Good luck on getting them working. They will definitely be useful for more than just you if you are planning to share them. I can add them to the SVN if they look good and you test them as ok. Also, once you are done with them, please post them in the code submissions section of the forums so they don't get lost here in quests.
|
i will share it of course
|
All times are GMT -4. The time now is 04:08 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.