Giving AA Exp instead of Regular Exp if AA is turned on?
This is a tradeskill exp perl script that was shared from Sanctuary (I believe)
Code:
$client->SetEXP($client->GetEXP() + $client->CalcEXP(18), 0); Thanks, Mortow |
Did anyone address this?
There's a method Client::SetEXP(THIS, set_exp, set_aaxp, resexp=false) inside zone/perl_client.cpp, meaning if you tweak your code to Code:
$client->SetEXP(0, $client->GetAAEXP() + 12345); The problem is that SetEXP is likely not what you're after, since you want it to be given based on the percent of AA exp the player is set on their AA window, and distribute a pool of EXP to normal/AA accordingly, right? To do that you likely want to tap into Client::AddEXP(THIS, add_exp, conlevel= 0xFF, resexp= false) Code:
$client->AddExp(1234); //give raw 1234 exp. If you use the conlevel system, you'll want to peek at the rule values Character::<CON>Modifier, replacing <CON> with the color e.g. Red, inside your rule_values for your EXP mods for difficulty of kills. These default to it seems: Lightblue = 40 Blue = 90 White = 100 yellow = 125 red = 150 If you wanted to give EXP scaled based on the player's level, you can use your Code:
$client->CalcExp(18) |
Thank you very much, Shin. You are correct in that I want to award experience based off level. And thank you for explaining the "(18)". I was wondering what that referenced. I think I want the experience awarded to be a very small amount such as green exp. I applaud Zerjz for implementing this on his server. I always thought tradeskills should give at least a little experience.
|
All times are GMT -4. The time now is 12:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.