Jump to content

Max talent Tree


Recommended Posts

Posted

I want to modify the source code todo the following

1. Click on a player

2. type .mtal

When I type this, the person who typed .mtal will get three things listed to them

The number of talents put into each tree. So, for example. Lets say you clicked on a rogue

The rogue has 0 points in assasination, 15 points in combat, and 0 points in sub.

A message will be sent to you saying, "0,15,0"

I've gone into Chat.cpp and added

{ "mtal",          SEC_PLAYER,         false, &ChatHandler::PrintHighestTalents,           "", NULL },

I've gone into Chat.h and added

bool PrintHighestTalents(const char* args);

I've gone into level3.cpp (doesn't really matter)

bool ChatHandler::PrintHighestTalents(const char* /*args*/)
{
}

I only need help with how to loop through someones talents add up each talent tree, put the results into an array of ints. Then print them out to the player who requested. The only thing I need help with is filling in PrintHighestTalents, I've browsed around the code, and I've found code that gives all talents and such, but I could rig that todo what I need.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use