Creating passive skills

11/09/2013 15:58 raventh1984#1
Hi Elitepvpers,

I am looking for an way to make passive skills.

What i did do for testing is this

In DPSrvr.cpp inside this function

void CDPSrvr::OnDoEquip

I created this

if(pItemProp->dwID == 25003)
{
pUser->DoBuff( SI_ASS_CHEER_HEAPUP, 15, pUser);
}

So it checks if the User is wearing an 2 handed Axe if so then buff the char.
However if i wear the weapon it doesnt grant me an buff. The buffs comes when you remove the equipp.

Also its time limited and what i want is an real passive skill at work.

For example if you wear an 2 handed axe no matter what kind of axe
It will setup an buff that remains there untill you remove the weapon.

Can someone point me to the right direction for this.

With kind regards.
11/09/2013 19:32 Velmore#2
First of all.

Don't use a number. All Items are defined with a name this works like this number but you find it better.
11/09/2013 20:06 raventh1984#3
Well if i dont use numbers i am getting the unindetified error. So i use numbers instead.
But this was an test to see if it was working. I need to have all the 2handed axes to work with so that is something else.
11/09/2013 22:15 Velmore#4
if you don't include the .h file.

write in top of the file "#include "defineItem.h""
11/09/2013 23:19 raventh1984#5
yes i already know that xD. Thanks for the tip. However i dont want to go offtopic.
11/09/2013 23:23 Mognakor#6
The 'obvious' way would be to increase the duration of the buff to several days/weeks.

For better solutions you should check how the buff system works etc.