Quote:
Heck those conditionals look off as well, mustve been the ambien, sorry. |
Quote:
|
Thanks for your reply. Just to clarify what I have in mind, the NPC won't be depopping. Upon the destination, it will be killed by another NPC, lol.
I've already been testing that with with an EVENT_ENTER, on arrival, an NPC immediately attacks the following one. Works great so far. I also added in an if(plugin::check_hasitem(xxxx)) to the quest::follow which also worked out good. |
Quote:
Code:
sub EVENT_TIMER |
Quote:
A player could end up using /warp and then wait for the NPC to arrive. That's why I thought a distance limit would help with that. |
Weird thing:
I want to fire an event in player.pl when the player takes damage from a mob. Kind of like damage shields work. I would prefer to get the id of the mob that did the damage, but that is not 100% needed. Thank you for any assistance. |
Quote:
|
Hey guys, I've got a quick question to. I have searched and been unsuccessful in finding a way to do this. Is there a way to script a say link into guild chat and/or raid chat? I think I can do group chat with message group but I can not find a function for guild/raid. I've been working on an instancing script and I want to be able to send the say link to enter the instances to group,guild, and raid chat. Message 258 for example says group but it doesn't actually say it in group for the other group members.
|
Code:
quest::gmsay(message, color_id, send_to_world?, guild_id, min_status); |
Quote:
|
You can use a loop and iterate through group members if necessary. I’m at work, otherwise I’d give you an example.
|
gotcha, thankyou sir.
|
Hey, I think this is my fourth post here. Been a member since 2009 hah.
I've started developing for THF recently and have been enjoying it loads. I'm just hitting a brick wall with this one particular (apparently non-existent) function. I'm attempting to get the NPC's hp_regen value (I know I can modify it easily enough) but can't find the command for this anywhere on the ultimate perl reference (or anywhere else). I checked the perl source and searched for "hp" but couldn't find it. It seems this is also the case for mana_regen, though I don't currently need that. I want to make changes to npc regen but without a way to read/get the current value, that severely limits my ability to do anything clever with it (i.e. I can pretty much just hard code it). What I want to do is reduce the hp_regen when players do something. Without the ability to read what it is currently, I imagine I'd need to use qglobals to track each npc's status (from spawn) and then hard code a sequence of conditions for it and that's just horrid. I'd rather not do that. It seems literally every other editable stat for NPCs can be read except regen :) Am I missing something? Any help would be amazing. Thanks. |
Code:
https://github.com/EQEmu/Server/blob/0ad43977bf94e3a2ca83966f7fc9ba5592bb2a54/zone/npc.cpp#L2307 Code:
quest::modifynpcstat("hp_regen",xxx); Code:
$npc->ModifyNPCStat("hp_regen",xxx); Code:
sub PrepareEntityVariables |
Quote:
Will see if I can get it to work. |
All times are GMT -4. The time now is 04:43 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.