EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Quick question on pulling player stats. (https://www.eqemulator.org/forums/showthread.php?t=35892)

ChaosSlayerZ 10-20-2012 09:15 PM

Quick question on pulling player stats.
 
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...a=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?


All times are GMT -4. The time now is 09:37 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.