Assistance: Target self to cast spell requiring self/group
I'm writing a custom .lua script which, I hope, will summon a corpse using the necro spell, id = 3 (summon corpse). The only piece I seem to be missing is something which will force the client/player to target himself.
I've grep searched the quest folder and google but could not find/understand what I am looking for. I've tried a couple dozen different variations on things including depopping the quest npc. I think I am simply missing the command/function to target self. Below is what I have so far with <location of target code> to indicate where I think it should belong. Code:
-- global\a_dungeon_necromancer.lua NPCID |
Are you just trying to have the script summon it's own corpse? Use the corpse summoner scripts that already exist.
|
If you are referring to the scripts for Dragons of Norrath and the guild lobby, I've looked at them and they will no do what I want them to do. I want to summon a corpse with the same behavior as the NEC spell "summon corpse".
Everything appears to work except self targeting. Since the npc is targeted at the end of the script and the spell is self (player) cast, the text stating "Your target must be a group member for this spell." appears. If anyone knows how to accomplish what I am trying to do, please share. Thanks |
Resolved
$client->SetTarget($client); That's all that was needed in the .pl file. Code:
# global\a_dungeon_necromancer.pl NPCID |
Glad you got it worked it!
|
Thank you sir! credit where it's due ^^^ KK
|
Haha, you're welcome. Feel free to message me if you need anymore assistance.
|
All times are GMT -4. The time now is 11:27 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.