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 #64053 Re: adding AOE guide updated 1/11/11
designz posted: (2nd Mar 2011 10:33 pm)

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|


replace the void map atatck spell with this

void Map::AttackSpell(Character *from, int spellid, int targetid)
{
     ESF_Data *spell = this->world->esf->Get(spellid);
     if (!spell) return;
 
    if (this->pk || (static_cast<int>(this->world->config["GlobalPK"]) && !this->world->PKExcept(this->id)))
    {
        if (this->AttackPKSpell(from, spellid, targetid))
        {
            return;
        }
    }
    UTIL_PTR_LIST_FOREACH(this->characters, Character, character)
    {
        UTIL_PTR_VECTOR_FOREACH(this->npcs, NPC, npc)
        {
           
            if (from->clas == 9)
            {
                if ((npc->pet || npc->Data()->type == ENF::Pet || npc->Data()->type == ENF::Unknown3 || npc->Data()->type == ENF::Unknown4 || npc->Data()->type == ENF::Passive || npc->Data()->type == ENF::Aggressive || from->admin > static_cast<int>(this->world->admin_config["killnpcs"]))
                && npc->alive)
                {
                
                    int amount = util::rand(spell->mindam, spell->maxdam);
                    //int amount = util::rand(from->mindam + 0, from->maxdam + 0);
                    npc->SpellDamage(from, amount, spellid, targetid);
                 }
         }
 else if (from->clas != 9)
            {
            if ((npc->pet || npc->Data()->type == ENF::Pet || npc->Data()->type == ENF::Unknown3 || npc->Data()->type == ENF::Unknown4 || npc->Data()->type == ENF::Passive || npc->Data()->type == ENF::Aggressive || from->admin > static_cast<int>(this->world->admin_config["killnpcs"]))
            && npc->alive && npc->index == targetid)
                {
                   
                         int amount = util::rand(spell->mindam , spell->maxdam);
                         //int amount = util::rand(from->mindam + 0, from->maxdam + 0);
                          npc->SpellDamage(from, amount, spellid, targetid);
 
                          return;                      
                        }
              }
         }
    }
}
14 years, 9 weeks ago
Post #64054 Re: adding AOE guide updated 1/11/11

ok i got no errors but when i log on the maps are all messed up


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

ok i got no errors but when i log on the maps are all messed



Well that probly doesnt have anything to do with this but first try a new character or account. Then if thats not it make sure your pubs arnt currupt.
14 years, 9 weeks ago
Post #64056 Re: adding AOE guide updated 1/11/11

i think it might be with my edit pub bcuz when i switch the unke to 1 or 2 and i restart the server the maps are messed up but when i replace the pub with the old one its fine and i tryed switching the unke to 0 and tht didnt work

edit:im using edit but 3.00 btw

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

i think it might be with my edit pub bcuz when i switch the unke to 1 or 2 and i restart the server the maps are messed up but when i replace the pub with the old one its fine and i tryed switching the unke to 0 and tht didnt work

edit:im using edit but 3.00 btw


try editing with this
14 years, 9 weeks ago
Post #64058 Re: adding AOE guide updated 1/11/11

the pub editor works thx for tht but the aoe wont work still :/

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

can you post your eodatta.cpp/hpp for me?

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

Well those are correct. That editor is kinda weird you have to update the item after you change it, and then before you close it or are done editing go file/save to k try that!


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

tht didnt work :[

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

Well the only other assistance I can offer would be over team view, my brains tapped out of ideas unless I can see whats going on first hand.

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

ok we'll try tht

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

ok we'll try tht


Ill add you on msn my email is mr_ndg@hotmail.com we can exchange info on the messanger
14 years, 9 weeks ago
Post #64067 Re: adding AOE guide updated 1/11/11

k i added yu

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

whats the name im looking for your aim account or different?

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