Re: Unknown pub values
I found a spot where I use 2 of the unk values its in map.cpp AttackSpell Im just showing how I used them for an aoe type maybe test your values in the AttackSpell and see if it works there I also had to add ESF_Data *spell = this->world->esf->Get(spellid); if (!spell) return; to the
very top of the function to add this in!
int distance = util::path_length(npc->x, npc->y, from->x, from->y);
if ((from->clas == 2 || from->clas == 17 || from->clas == 18 || from->clas == 19 ) && spell->unka == 1 && distance <= spell->unkc)
{
if ((npc->Data()->type == ENF::Aggressive || npc->Data()->type == ENF::Passive)
&& npc->alive)
{
int amount = util::rand(spell->mindam, spell->maxdam);
npc->SpellDamage(from, amount, spellid, targetid);
}
}
13 years, 38 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: Unknown pub values
There is already a AoE spell value, it happens to be the Unknown flag in the Spell Type box (0: Normal, 1: Self, 2: Area, 3: Group).
13 years, 38 weeks ago
|
Re: Unknown pub values
Ah thats pretty cool was it ever implemented correctly in main and if so how was the aoe distance worked out?
13 years, 38 weeks ago
|
Hollow

Joined: 30th Sep 2010
Posts: 3451
Re: Unknown pub values
Indeed i used it the same way but it just doesn't read it. Could it be that im missing some part? The thing you did is: Making it check if the area of effect distanceID is below or the same as the unknown C value in your spell. That is also how i did it with mine but instead of below i did
'higher as' so basicly it should work. But it isn't.
13 years, 38 weeks ago
| | | |