Thread: AA fix
View Single Post
  #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