EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Removing AA via quest. (https://www.eqemulator.org/forums/showthread.php?t=26948)

Davood 12-08-2008 12:17 AM

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!

trevius 12-08-2008 01:38 AM

The only one I see is for resetting AAs:

Code:

$client->ResetAA();

Davood 12-08-2008 12:14 PM

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???

Davood 01-06-2009 12:39 PM

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!

trevius 01-06-2009 05:30 PM

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.

Davood 01-07-2009 10:09 PM

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.