Perl-Based Dynamic Runes
Evening Ladies and Gents,
I'm curious if there is a way that one might either dynamically set or dynamically cast a rune. I am looking to allow certain heals to generate short duration runes based off of their healing amount, but I'm somewhat lost on how to begin such a task. I'm sure that I cannot be alone in this. I would also like to not have to make 50 or so spells and cast them that way unless completely and totally necessary. :) -Hate |
Quote:
sub EVENT_SPELL_EFFECT_CLIENT |
Oh, based on healing amount just read that. Lemme dig a bit.
|
Quote:
-Hate |
Yeah that's right. The script will be called when the spell is casted, the SPELL_EFFECT_CLIENT will be called when it lands.
So, set a variable to $client->GetHP() in the beginning of the script and compare that to the HP in the EVENT_SPELL_EFFECT_CLIENT I suppose that would work, haven't tried it in practice yet. |
Quote:
|
Removed as you answered it while typing this up. Pewp.
-Hate |
Quote:
https://github.com/EQEmu/Server/blob...pells.cpp#L145 But, allows one to pass spell category, duration, etc. would be, well, real nice. It -may- exist, I'll dig some more. If it doesn't, *it would be great to have*. :) |
ghanja,
Thank you for your time in this. I'll harass Akkadius about this as well to see if he has any input as well. -Hate |
Quote:
|
i've been curious as to how well perl would respond to something like this. you're wanting to set maybe a fraction of the total amount healed (not maximum heal power) as absorption AND base the time it fades on the amount healed as well?
depending on what gets triggered when, i'm guessing you could perhaps have the "rune" itself handled entirely by perl. it wouldn't show up as a normal spell effect icon on the client, but the idea has me interested. :) |
Quote:
I'd prefer someone far more intimate with the source than I to look though. It is an interesting concept, hopefully if it exists and/or is added would be done just for those pesky LUA guys. :p |
All times are GMT -4. The time now is 12:01 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.