EOSERV Forum > EOSERV > Ananas Weapon Effect System
Topic is locked.
Page: << 1 2 >>
Ananas Weapon Effect System
Author Message
Post #48979 Re: Ananas Weapon Effect System

Thank you for releasing this :)

This didn't work for me at first but I just added this to NPC::Damage


int itemid, effectid;

    for(int i = 0 ; i < static_cast<int>(this->map->world->effects_config["WAmount"]) ; i++){

        itemid = static_cast<int>(this->map->world->effects_config[util::to_string(i+1) + ".ItemID"]);

        effectid = static_cast<int>(this->map->world->effects_config[util::to_string(i+1) + ".EffectID"]);

        if(from->paperdoll[Character::Weapon] == itemid)

        {

            this->Effect(from, effectid, amount);

        }

    }


And now it seems to work fine :)
14 years, 34 weeks ago
Post #49008 Re: Ananas Weapon Effect System
lewis999 posted: (11th Sep 2010 08:56 pm)

Thank you for releasing this :)

This didn't work for me at first but I just added this to NPC::Damage


int itemid, effectid;

    for(int i = 0 ; i < static_cast<int>(this->map->world->effects_config["WAmount"]) ; i++){

        itemid = static_cast<int>(this->map->world->effects_config[util::to_string(i+1) + ".ItemID"]);

        effectid = static_cast<int>(this->map->world->effects_config[util::to_string(i+1) + ".EffectID"]);

        if(from->paperdoll[Character::Weapon] == itemid)

        {

            this->Effect(from, effectid, amount);

        }

    }


And now it seems to work fine :)
If you use spells then you got 3/4 diffrent Attack/Damage function. Like SpellAttack or Attack. So you got to add the script to the Attack one not the SpellAttack as you use spells already to hit an certain npc.

---
"Pineapples and shit."
14 years, 34 weeks ago
Post #49020 Re: Ananas Weapon Effect System

It worked fine for me thx ananas :)

---
opensource isometric game engine ~ www.avac-engine.blogspot.com
14 years, 34 weeks ago
Post #49388 Re: Ananas Weapon Effect System

Is there any way to add new effects on effects.ini ? i want to draw my own effects and use them when i am attacking. and i cant understand the format of that:

# (number).ItemID = (ItemID)
# (number).EffectID = (EffectID)
# (number).PlayerEffect = (EffectID)


i mean whats the diference between effect id and playereffect?

Thanks anyway. if i manage do that i got a cool bleeding effect to share. If it works after all. :((

14 years, 33 weeks ago
Post #49389 Re: Ananas Weapon Effect System

You just change the effect in pubedit if you redid an effect then you can just choose it.


The difference between EffectID and PlayerEffect is because NPC got other EffectID's then player effects.

Player effects are for PK etc.

---
"Pineapples and shit."
14 years, 33 weeks ago
Post #49390 Re: Ananas Weapon Effect System
Ananas posted: (18th Sep 2010 11:44 am)

You just change the effect in pubedit if you redid an effect then you can just choose it.


The difference between EffectID and PlayerEffect is because NPC got other EffectID's then player effects.

Player effects are for PK etc.


waaaa thank you very much. going to test now. hope it works. tyvm....
14 years, 33 weeks ago
Post #49399 Re: Ananas Weapon Effect System

ya think u can make it Not use tp at all for weps

it sucks having 0tp 24/7

or at the max make it use like 1tp


14 years, 33 weeks ago
Post #49400 Re: Ananas Weapon Effect System

Well its reading from the pubs, so just go into your pubs and copy the 32 spells, name them the same(if you wish) and set the TP to 0. that way you still have spells that take tp, and you also have weapons that don't take any tp.

Easy solution! And It'll only take you like 5 minutes to do it!

---
Create your own destiny, don't let someone else do it for you.
14 years, 33 weeks ago
Post #58287 Re: Ananas Weapon Effect System

What do you mean you cant claim your work, or deserve credits? You made it right? credits to ananas! Damn I needed this guide to help people add a new aoe system im working on!

14 years, 16 weeks ago
Post #65064 Re: Ananas Weapon Effect System

Everytime i find something that i want to add i see <code it yourself> xD

14 years, 8 weeks ago
Post #65080 Re: Ananas Weapon Effect System

Here is a repost of this weapon effect system here

14 years, 8 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > EOSERV > Ananas Weapon Effect System