EOSERV Forum > EOSERV > Unknown pub values
Topic is locked.
Page: << 1 2 >>
Unknown pub values
Author Message
Post #114570 Unknown pub values

So in the spell pub is a tab 2 with UnkA, UnkC and such. how would i use those values? I've been searching for UnkC etc in the source but that can't be found. Any ideas?

13 years, 38 weeks ago
Post #114572 Re: Unknown pub values

UnkC is relative to Elements. It appears that the method Vult-r used was UnkC (Elemental) and UnkG (Elemental).

In the Whirl spell, it appears UnkC is probably the % bonus increased and UnkG may be a spell attack bonus. It might have worked like this:

damage = (range(1-55) + 15); damage += damage*(50/100); 

here is my list of other unknowns:

UnkA: Unused
UnkC: Elemental
UnkD: Unused
UnkE: Unused
UnkF: Spell Level Requirement (more useless since skillmasters check this)
UnkG: Elemental
UnkH and UnkI: One of these control the break curse spell value(learned from EO main admin)
All other Unk most likely reserved for intended but unimplemented values. Some things Vult had intended were spells that add protection against Elemental damage, Magic attacks reduced/reflected, Melee attack reduced, and various other things.

13 years, 38 weeks ago
Post #114598 Re: Unknown pub values

This might help Im not sure, I think these are correct im not 100% though heres my eodata.cpp https://tehsausage.com/paste/eodata-cpp-spells-7a62 and eodata.hpp https://tehsausage.com/paste/eodata-hpp-spells-7c76

13 years, 38 weeks ago
Post #114610 Re: Unknown pub values


I think you missed the question he was asking entirely.

13 years, 38 weeks ago
Post #114616 Re: Unknown pub values

They can be what ever you want. There not even implemented.

---
https://www.youtube.com/watch?v=d_DFVzxsEUc
13 years, 38 weeks ago
Post #114631 Re: Unknown pub values

Maybe I did misunderstand but his question is not specific "So in the spell pub is a tab 2 with UnkA, UnkC and such. how would i use those values?" this is how I implemented  them, then from there decided what I want each one to do,its cool to see the specific meaning of each unk value though I  just thought I could save him the trouble and time of testing each value like I did by posting my eodata spell crap!

13 years, 38 weeks ago
Post #114656 Re: Unknown pub values

Insomniac didn't misunderstand me. Thanks for all the fast replies guys. i left to bed right after i posted this so i didnt reply right away. Im sure i could use this, thanks for the code insomniac!, Im trying to use the unknown values like spell->unka so i can use them for mynewfeature.Alsothanks for the well explanation apollo. I could probaly use elements in the future.

EDIT: So i made it check if the unknown values are higher than 0 to announce a server message but it seems it doesn't. any ideas? I added your code insomniac.
EDIT 2: So i added it manually spell->unka = 10; This will work but i need it to get added by the pub editor. When i put: UnknownA in the pubs to 30 it reads it as 0. but as i said it works manually by doing = 10; I have no idea why though.

Screenie:


if(spell->unka != 0 || spell->unkc != 0)
{
this->player->character->ServerMsg("Does it work?");
}
else
{
this->player->character->ServerMsg("No it doesn't work.");
}

Basicly.. My unka + c (i even tried every other unknown one) are higher than 0 and it announces No it doesnt work instead of does it work which should be announced.

13 years, 38 weeks ago
Post #114665 Re: Unknown pub values

I was messing around the other day comparing if somthing is not using ||

if(character->class != 3 || character->clas !=10)

{

CODE:

}

and comparing this way didnt work I had to use &&


if(character->class != 3 && character->clas !=10)

{

CODE:

}

then it seemed to work maybe thats the prob not sure!

13 years, 38 weeks ago
Post #114667 Re: Unknown pub values

Not really, I also tried it with just 1 unknown value. It just simply ignores it. The thing is even if i would make it check if the value == 5 or something that wouldn't work because for some reason it ignores the check when i check the unknown values. But like i said before, if i add in the else: spell->unka += 1; and check it again than it doesnt ignore and will work. but it shouldnt work like that.

13 years, 38 weeks ago
Post #114668 Re: Unknown pub values

Where are you putting the code?

13 years, 38 weeks ago
Post #114669 Re: Unknown pub values

In Spell.cpp under:

case PACKET_CASTSELF: // Player using an spell

        {

            if (this->state < EOClient::Playing) return false;


            int direction = reader.GetChar();

            int spellid = reader.GetByte();

            /*int unk1 = */reader.GetShort();

            /*int unk2 = */reader.GetShort();


            ESF_Data *spell = this->server->world->esf->Get(spellid);

13 years, 38 weeks ago
Post #114670 Re: Unknown pub values

I gotta go back to work Ill mess with it when I get home ) :!

13 years, 38 weeks ago
Post #114671 Re: Unknown pub values

alright, thanks.

13 years, 38 weeks ago
Post #114672 Re: Unknown pub values

Remember to decode the value and make sure you're reading the right one.

13 years, 38 weeks ago
Post #114673 Re: Unknown pub values
kenobi13 posted: (3rd Nov 2011, 04:48 pm)

Remember to decode the value and make sure you're reading the right one.


mhm, i have actually tried all of the values.
13 years, 38 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > EOSERV > Unknown pub values