Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2006, 10:53 AM
sady
Fire Beetle
 
Join Date: Mar 2002
Posts: 14
Default Summon corpse

I have a 70 necro on the eternal wrath server and my summon corpse and conjure corpse works fine if I have the proper reagents.
The problem is it only works on me, if i cast it on some one else i get the CORPSE_CANT_SENSE message.
I have searched the code like mad and I guess CastToClient() returns a pointer to the target or is that a pointer to the caster?
What does CastToClient() do besides confuse me?
if it is a client it returns from entity.cpp:
return static_cast<Client*>(this);

<code from spell_effects.cpp>

#ifdef SPELL_EFFECT_SPAM
snprintf(effect_desc, _EDLEN, "Summon Corpse: %d", effect_value);
#endif
if(IsClient()) // can only summon corpses of clients
{
Corpse *corpse = entity_list.GetCorpseByOwner(CastToClient());
if(corpse)
{
if(caster)
caster->Message_StringID(4, SUMMONING_CORPSE_OTHER, GetCleanName());
corpse->Summon(CastToClient(), true);
}
else // corpse not found
{
if(caster)
caster->Message_StringID(4, CORPSE_CANT_SENSE);
}
}
break;
}
</code>

I would like to code stuff but I just need a little direction, once I get fiber I will take off with it I think.
Am I posting in the right place?
__________________



Sady Prophet "Druidess"
Sady BoneWaker "Necromancerette"
[font=Book Antiqua][color=Plum] __________________________________________________

I say:

Last edited by sady; 07-13-2006 at 07:03 PM..
Reply With Quote
  #2  
Old 07-13-2006, 02:43 PM
sady
Fire Beetle
 
Join Date: Mar 2002
Posts: 14
Default I was trying to edit my other post

it added a second post.
__________________



Sady Prophet "Druidess"
Sady BoneWaker "Necromancerette"
[font=Book Antiqua][color=Plum] __________________________________________________

I say:
Reply With Quote
  #3  
Old 07-14-2006, 09:08 AM
sady
Fire Beetle
 
Join Date: Mar 2002
Posts: 14
Default Ok my idea is correct.

If I target someone besides my self and cast the conjure corpse or summon corpse, it summons my corpse, not my targets, so CastToClient() is returning a pointer to my self. Now, if I can just figure out how to pass a pointer to my target or change the function it will work corectly.
I guess I will have to install Visual Studio 6 so I can do testing and compiles. I will keep working at it.

I am going to look through the forums maybe I can compile with make on fedora and run it in windows?
I guess the redhat computer could be the server, but I saw stuff about wine in the make file and wine is hard on memory. I am rambling, well.

Thank you.
__________________



Sady Prophet "Druidess"
Sady BoneWaker "Necromancerette"
[font=Book Antiqua][color=Plum] __________________________________________________

I say:

Last edited by sady; 07-14-2006 at 05:18 PM.. Reason: grammer
Reply With Quote
  #4  
Old 07-16-2006, 04:18 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

split thread.

building on linux has nothing to do with wine, and is generally easier than windows.

That method is operating on whatever the target of the spell is, so the code that is there should be fine. Looking at the spells, I do not see any of them which are not "self target only", please post a lucy link if you think otherwise.

this would mean you need to use quest::selfcast if you want the shell to work from a quest.
Reply With Quote
  #5  
Old 07-17-2006, 09:52 AM
sady
Fire Beetle
 
Join Date: Mar 2002
Posts: 14
Default Summon corpse

No, it is not a quests, I am casting the spell as a necromancer, summon corpse and conjure corpse. It works fine on my self but if I target some one else, it will summon my corpse, if I have one in the zone. If I don
__________________



Sady Prophet "Druidess"
Sady BoneWaker "Necromancerette"
[font=Book Antiqua][color=Plum] __________________________________________________

I say:

Last edited by sady; 07-17-2006 at 06:22 PM.. Reason: ps
Reply With Quote
  #6  
Old 07-17-2006, 12:12 PM
sady
Fire Beetle
 
Join Date: Mar 2002
Posts: 14
Default Summon Corpse

conjure corpse and summon corpse act like a self only spell when they should summon my targets corpse.

Thank You,
Tracy
__________________



Sady Prophet "Druidess"
Sady BoneWaker "Necromancerette"
[font=Book Antiqua][color=Plum] __________________________________________________

I say:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:44 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3