Author | Message | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ![]() Sorry, What is AOE?
|
| ![]() area of effect! In this case the code would hit all monsters within a certain distance I also added 1 with random effects!
|
| ![]() 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.
|
| ![]() xIFearlessIxx posted: (11th Feb 2011 12:53 pm) So give pets aoe? simple! Some might like an .ini rather than editing from the pub good idea?!
|
| ![]() 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.
|
| ![]() 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
|
| ![]() 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.
|
| ![]() @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.
|
| ![]() 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
|
| ![]() designz posted: (2nd Mar 2011 08:47 pm)Ok, try this map.cpp here
|
| ![]() i got 8 errors with tht can yu post a download link and ill replace it with mine?
|
| ![]() designz posted: (2nd Mar 2011 10:07 pm) alrighty try this one then here
|
| ![]() 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'
|
| ![]() designz posted: (2nd Mar 2011 10:29 pm)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);
}
}
| |