EOSERV Forum > EOSERV > adding AOE guide updated 1/11/11
Topic is locked.
Page: << 1 2 3 4 >>
adding AOE guide updated 1/11/11
Author Message
Post #58972 Re: adding AOE guide updated 1/11/11

 Sorry, What is AOE?

14 years, 15 weeks ago
Post #58992 Re: adding AOE guide updated 1/11/11

area of effect! In this case the code would hit all monsters within a certain distance I also added 1  with random effects!

14 years, 15 weeks ago
Post #61841 Re: adding AOE guide updated 1/11/11

I'ma  tad bit late posting.

I'll post this so it can direct to.ini, and i'll add you ins to msn, and see if you can add this to pets? Just an idea, rather than having a command do it. :P

That would make this 100x better. more controlable aswell.

14 years, 12 weeks ago
Post #61875 Re: adding AOE guide updated 1/11/11
xIFearlessIxx posted: (11th Feb 2011 12:53 pm)

I'ma  tad bit late posting.

I'll post this so it can direct to.ini, and i'll add you ins to msn, and see if you can add this to pets? Just an idea, rather than having a command do it. :P

That would make this 100x better. more controlable aswell.


 So give pets aoe? simple! Some might like an .ini rather than editing from the pub good idea?!
14 years, 12 weeks ago
Post #63582 Re: adding AOE guide updated 1/11/11

um idk why but i placed the codes and all in the right place but when i put the weapon as unke 1 or anything it doesn't work in game i attack and nothing happens even if i change distance or anything at all it just doesn't work.

14 years, 9 weeks ago
Post #63942 Re: adding AOE guide updated 1/11/11

http://i54.tinypic.com/2e1gok3.jpg

i get tht when i compile and when ever i set the unke to 1 or 2 it like gives me a eof

14 years, 9 weeks ago
Post #63950 Re: adding AOE guide updated 1/11/11

My error : C:\Users\Andrew\trunk\src\map.cpp||In member function 'bool Map::Walk(NPC*, Direction)':|

C:\Users\Andrew\trunk\src\map.cpp|1123|warning: suggest parentheses around '&&' within '||'|

C:\Users\Andrew\trunk\src\map.cpp||In member function 'bool Map::AttackPK(Character*, Direction)':|

C:\Users\Andrew\trunk\src\map.cpp|1542|error: a function-definition is not allowed here before '{' token|

C:\Users\Andrew\trunk\src\map.cpp|1567|error: expected initializer before 'PacketBuilder'|

C:\Users\Andrew\trunk\src\map.cpp|1569|error: 'sit_type' was not declared in this scope|

C:\Users\Andrew\trunk\src\map.cpp|1571|error: 'builder' was not declared in this scope|

C:\Users\Andrew\trunk\src\map.cpp|1589|error: a function-definition is not allowed here before '{' token|

C:\Users\Andrew\trunk\src\map.cpp|1990|error: expected '}' at end of input|

||=== Build finished: 6 errors, 1 warnings ===|


---
stay tuned.
14 years, 9 weeks ago
Post #64036 Re: adding AOE guide updated 1/11/11

@Code, Id suggest looking in the eodata.cpp/hpp and checking if you connected the unk values correct.


@designz, I think you add this to bool map::occupied, it needs to be in void map::attack


@andrewbob You added this into 'bool Map::Walk is what it looks like although i cant tell exactly because you have so many errors all i can say by looking at your errors is that not 1 of them was in the correct function. So maybe restart the map.cpp part and always remember to save a copy of your trunk before adding new stuff incase this happens you wont have to completely rebuild your source.

14 years, 9 weeks ago
Post #64038 Re: adding AOE guide updated 1/11/11

i still got errors heres my map.cpp

https://tehsausage.com/paste/my-map-cpp

Edit:I got rid of some of the errors but still have 2 left

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp|1680|error: 'npc' was not declared in this scope|

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp|1699|error: expected declaration before '}' token|

Heres my map.cpp after i got rid of some of the errors

https://tehsausage.com/paste/3257

14 years, 9 weeks ago
Post #64041 Re: adding AOE guide updated 1/11/11
designz posted: (2nd Mar 2011 08:47 pm)

i still got errors heres my map.cpp

https://tehsausage.com/paste/my-map-cpp

Edit:I got rid of some of the errors but still have 2 left

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp|1680|error: 'npc' was not declared in this scope|

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp|1699|error: expected declaration before '}' token|

Heres my map.cpp after i got rid of some of the errors

https://tehsausage.com/paste/3257

Ok, try this map.cpp here

14 years, 9 weeks ago
Post #64045 Re: adding AOE guide updated 1/11/11

i got 8 errors with tht can yu post a download link and ill replace it with mine?

14 years, 9 weeks ago
Post #64048 Re: adding AOE guide updated 1/11/11
designz posted: (2nd Mar 2011 10:07 pm)

i got 8 errors with tht can yu post a download link and ill replace it with mine?


alrighty try this one then here
14 years, 9 weeks ago
Post #64049 Re: adding AOE guide updated 1/11/11

ok it went from 8 to 2 errors 

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp:1767: error: 'spl' was not declared in this scope


C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp:2542: error: no 'void Map::ClassSpell(Character*, int)' member function declared in class 'Map'

14 years, 9 weeks ago
Post #64050 Re: adding AOE guide updated 1/11/11
designz posted: (2nd Mar 2011 10:29 pm)

ok it went from 8 to 2 errors 

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp:1767: error: 'spl' was not declared in this scope


C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp:2542: error: no 'void Map::ClassSpell(Character*, int)' member function declared in class 'Map'

Sorry bud search this and remove it from the map.cpp

void Map::ClassSpell(Character *from, int targetid)
{
PacketBuilder builder;
UTIL_PTR_LIST_FOREACH(this->characters, Character, character)
                     {
                 Character *target = *character;
                target->AddRef();
 
                int spellid = util::rand(1, 31);
                int distance = util::path_length(target->x, target->y, from->x, from->y);
               builder.SetID(PACKET_CLOTHES, PACKET_ADMIN);
               builder.AddShort(0);
               builder.AddShort(target->player->id);
               builder.AddThree(0);
               builder.AddChar(1);
               builder.AddChar(int(double(target->hp) / double(target->maxhp) * 100.0));
               builder.AddChar(target->hp == 0);
               builder.AddShort(spellid);
 
               UTIL_PTR_LIST_FOREACH(this->characters, Character, checkchar)
                    {
                        if (target->InRange(*checkchar))
                        {
                            checkchar->player->client->SendBuilder(builder);
                            target->player->client->SendBuilder(builder);
                        }
                    }
                target->Effect(spellid, true);
                target->hp = target->maxhp;
                builder.Reset();
                builder.SetID(PACKET_RECOVER, PACKET_PLAYER);
                builder.AddShort(target->hp);
                builder.AddShort(target->tp);
                target->player->client->SendBuilder(builder);
    }
}


14 years, 9 weeks ago
Post #64051 Re: adding AOE guide updated 1/11/11

almost there :P 1 error

C:\Documents and Settings\endless\Desktop\EOFILES\Back up\src\quest.hpp|1767|error: 'spl' was not declared in this scope|

14 years, 9 weeks ago
Page: << 1 2 3 4 >>
Topic is locked.
EOSERV Forum > EOSERV > adding AOE guide updated 1/11/11