Zone project, command.cpp, set_adventure_points
Noticed that the #setadventurepoints command wasn't working correctly, so thought I'd take a shot at fixing it. Compiled and built, then ran EQEmu using the new zone.exe. Tested in-game, and appears to work correctly. You can assign X points to a particular theme (1 thru 5). Or choose theme 0, and then X points will be distributed across all themes.
Code:
void command_set_adventure_points(Client *c, const Seperator *sep) |
Very cool, thanks for this. While you're digging around, you want to figure out how to make those points "spendable" on Adventure Merchants? Maybe it's already there, but I could never assign points (or hadn't gotten to make a script to do it yet).
What do you think? |
Actually, yes. Need to modify method/procedure Client::Handle_OP_AdventureMerchantPurchase (located in the client_packet.cpp file in the Zone project)
I'm fairly certain the switch statement I added is rather unnecessary. After testing this in EQ, it appears either the client or another piece of code is already verifying the player has enough points, of the right type, to purchase the item. This statement... Code:
if(!UpdateLDoNPoints(requiredpts,item->LDoNTheme)) Here's the full code for the procedure, including what I modified. Code:
void Client::Handle_OP_AdventureMerchantPurchase(const EQApplicationPacket *app) I'm running a small server for friends and family, so my goal is to modify the loot tables so that "adventure tokens" can drop randomly from various named NPCs in the game. These "tokens" would be an item in the Items database table, and have an associated LDoN price. If you managed to loot them, you could then turn around and redeem them at an Adventure Merchant for points. Eventually accumulating enough points to buy augments or other equipment. Modifying the database is easy enough, but it all depends on the ability to sell items back to an Adventure Merchant. With the LDoN zones and quests sitting in various stages of development, this is the only semi-fair way I could think of for obtaining LDoN gear... If I come up with anything, I'll post it here for you. |
This needs to be in the source tree, pronto!
GREAT job! |
All times are GMT -4. The time now is 04:24 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.