Special_Abilities on the fly in Perl?
Afternoon ladies/gents/trolls,
I'm curious on how one might modify npc special_abilities on the fly through perl? I'm having issues with $npc->NPCSpecialAttacks as two comma delimited bits would trainwreck and it does not accept the special_abilities as a string: Code:
$npc->NPCSpecialAttacks("12,1^13,1^14,1", 0); Code:
$npc->ModifyNPCStat("special_abilities", "12,1^13,1^14,1"); Thank You! -Hate |
I'm not sure if you've tried:
Quote:
|
I don't believe special_abilities have been added to Perl yet, it is something that could be done, but I haven't seen it used any where yet.
Here's the $npc->ModifyNPCStat code (this is also used for quest::modifynpcstat): Code:
void NPC::ModifyNPCStat(const char *identifier, const char *newValue) |
Well then, that was crazy fast. That will make things interesting. Thank you gents for the scary fast replies.
-Hate |
Haha, I wasn't aware it was fast, I had just logged in and saw a bold post and checked it out. You're welcome.
|
the NPCSpecialAttacks still work on the old letter system rather than the newer system.
https://github.com/EQEmu/Server/blob.../npc.cpp#L1414 |
some servers use it, just don't think many or even any of the quests on peq do/did
|
Looking at the PEQ quests they do quest::modifynpcstat("special_attacks",ABfHG); my bad, still uses the old codes though.
|
All times are GMT -4. The time now is 07:37 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.