Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 07-17-2004, 09:42 PM
Branks
Sarnak
 
Join Date: May 2004
Posts: 58
Default

I've been playing with this and most of them work fine with minor issues such as they all report they couldnt find an item in inventory slot0 and case 53 should be spell id 2734 instead of 2945 along with a few other spells that i personally dont believe to be correct.
the big issue however is that they all only cast to client which is fine in most cases but things like divine rezz, manaburn etc wont work.

so if anyone more knowledgeable of the project or c in general could explain a way to define the client's target as ct or something of the like so we could place it in CastSpell(5555, ? .this->GetID());
it would be greatly appreciated.

also i spent some time playing around with manaburn and stole some of the code from the #manaburn command and eventualy got
this kinda working, well atleast doing the manaburn command from the button,
case 226:
{
Mob* target=CastToClient()->GetTarget();
if (CastToClient()->GetTarget() == 0)
CastToClient()->Message(0, "No Target.");
else {
if(CastToClient()->IsAttackAllowed(target));
{
int nukedmg=(CastToClient()->GetMana())*2;
if (nukedmg>0)
CastToClient()->SetMana(0);
{
target->Damage(CastToClient(), nukedmg, 2751,240);
}
}
}
}

but this just does it as a command so theres no cast time or casting animations, my question is in the case of manaburn where the actual spell information says only 1 damage is there a way within the CastSpell command or another command to add nukedmg to the spells base damage value?

if its not already obvious, i have no programming skills. and im sorry if this post doesnt belong in this section however i couldnt think of anywhere else to put it, also i understand most of the questions are probably more about C than they are the project, my bad, but currently my only method of learning it is through the internet and books from the 80's so i figure id ask a question or two here and maybe save some time. anyway all comments/suggestions will be appreciated even just the recomendation of a good book on the subject.
Reply With Quote
 


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 12:37 AM.


 

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