Stats Calculator.
All right, so I'm wanting to set up a stats calculator, but my only issue you is it won't calculate Mana or Health, all the other things work, when I put this two in it refuses to tell you anything, will post current code below that works.
Code:
sub EVENT_SAY |
Show us what you tried. There are GetMana() and GetHP() functions exported to perl.
|
I tried $client->GetMaxHP and $client->GetMP.
Code:
$hp = $client->GetMaxHP(); |
Would there happen to be a list of the things for "$client->" anywhere?
Edit: Found a list I believe, http://www.eqemulator.net/wiki/wikka...a=QuestObjects. Edit 2: In that url it lists GetHP();,GetMana();, GetMaxHP();, GetMaxMana();, so I don't understand why it wouldn't work, will test and see if it works. Edit 3: Works. |
Is this just for display? You can give everyone access to #mystats
|
I know, just for display. It's an optional stat checker, incase they don't want to use #mystats or don't know how.
|
Completed script below:
Code:
sub EVENT_SAY |
Any way via perl to get players Resist and Heroic Resist?
|
Never mind, did GetMR() GetFR() get and seems to work.
Wasn't listed on the object client page for quest. |
Code:
I just search the code on GITHub https://github.com/search?q=%40EQEmu...=searchresults |
All times are GMT -4. The time now is 01:11 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.