Little help with player casting detection
I like to write a player.pl script which would see if player has casted a specific spell.
If player did, the script will check what gender player is, and if male put one illusion on the player, if female put a diffirent illusion on the player. Any sugestions? =) PS I have looked at Trev's Illusions script http://www.eqemulator.net/forums/showthread.php?t=25556 but the script operates of NPC who detects proximity. I need kind of a trigger which would fire based on players themselves. |
Though I haven't tried it yet, you should be able to use the new EVENT_CAST for that. It should be something as simple as this:
player.pl Code:
sub EVENT_CAST { |
Ah perfect! I rememebered you offered this a while back but I had no idea it was actualy put in. Which Rev it went in?
|
Realityincarnate added it in R605.
|
Trev, perhaps you could help me with something related
Let say that I want to change race/put illusion on a pet when it spawns liek it was recently done for POSKY, but I want to do this for NPC pets. Will sub EVENT_SPAWN { quest::npcrace(69); quest::npctexture(1); quest::npcsize(4); } work for npc controlled pets? If does I have even tricker question. I ONLY want to alter race of a pet IF the NPC who summoned it belongs to specific race/class himself. Can this be done? Thanks! =) |
Unless it was finally changed, NPCs still cannot be set to change their race when they spawn. It has to be at least 1 second after they spawn, so you have to start a timer for 1 second when they spawn and have the timer change their race/etc.
As for the thing about the owner's race, I haven't really messed with that stuff much, but Kayen definitely has, lol. I know that quest objects for getting the pet or the pet's owner work, but I don't have any good examples to give you offhand. |
I'm pretty sure Congdar fixed this for at least PC pets (PoSky pets I think encouraged the change), I'm not familiar enough with the source to know if this will affect NPC pets as well.
|
All times are GMT -4. The time now is 04:40 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.