PDA

View Full Version : Quick question on pulling player stats.


ChaosSlayerZ
10-20-2012, 09:15 PM
I am writing a simple quest script that pulls player stats, looks at them and then resets the stats to something else.

from what I found to set the stats I can do:


quest::setstat(int stat, int value)

is this form correct:

quest::setstat(1, 75); ??? where 1 is STR and 75 is value I am setting it to


However I can't seem to find how to pull/read player stats?

I see there is a function:
$mob->ShowStats(Client* client)

But I am not sure how to work with that.

Thanks!

Kayen
10-20-2012, 11:09 PM
http://www.eqemulator.net/wiki/wikka.php?wakka=QuestObjects

For example.

$client->GetSTR()

ChaosSlayerZ
10-20-2012, 11:13 PM
ah thank you Kayen!

I kept searching for word "stats" no wonder I missed those.

I suppose that:

$client->GetSTR() - pulls current STR (items and buffs?)
while
$client->GetBaseSTR() - pulls the naked char STR?