Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 02.06.2009, 09:23   #1
goodtimeshaxor
Guest
 
Posts: n/a
Default L2Extend Pump Effect

user->SD->pObjectEx->pSkillMods->p_block_equip_weapon = true;


I tried to search the entire project for 'p_block_equip_weapon' but the the only palces that had it were just calling it not defining what it does. Does this mean that p_block_equip_weapon is a skill_effect in skilldata.txt?


I want to make a skill that sets your Attack Speed to 1200 if you are targetting the person you originally castd the skill on. This means that you can target someone else but your attack speed will be normal. If you target the original target again while the skill is still in effect, you will gain the bonus. It should also silence you while in effect.


I started to edit p_disarm for this but I got stuck not knowing exactly how pump effects work and how I should disable them.


INT32 nCSkillEffect_p_focus_fireCheckPumpCondition = 0;

bool CSkillEffect_p_focus_fire::CheckPumpCondition(CObj ect* pTarget)

{

L2SERVER_SHARED_GUARD(nCSkillEffect_p_focus_fireCh eckPumpCondition);

TLS_TRACE_BEGIN;


bool bResult = false;


User *pUser = (User*)pSkillUser;

CCreature *pTargetCreature = (CCreature*)pTarget;


if(pUser->IsValidUser() && pTargetCreature->IsValidCreature())

{

User *pTarget = (CCreature*)L2ServerFunctions::GetObject(pSocket->user->SD->nTargetObjId);


if(pTarget == ptargetCreature)

{

bResult = true;

}

}


TLS_TRACE_END;

return bResult;

}


INT32 nCSkillEffect_p_focus_firePump;

void CSkillEffect_p_focus_fire::Pump(CObject* pTarget, CSkillInfo* pSkillInfo)

{

L2SERVER_SHARED_GUARD(nCSkillEffect_p_focus_firePu mp);

TLS_TRACE_BEGIN;


//CLog::AddAnsi(1,"i_disarm::Pump activated");

User *pUser = (User*)pSkillUser;

CCreature *pTargetCreature = (CCreature*)pTarget;


if(pTargetCreature->IsValidCreature() && pTargetCreature->IsValidCreature())

{

pUser->SD->pObjectEx->pSkillMods->p_focus_fire_active = true;

}


TLS_TRACE_END;

}


void CSkillMod::ResetSkillMods()

{

L2SERVER_SHARED_GUARD(nResetSkillMods);

TLS_TRACE_BEGIN;


/* Add here the Skill Mods That Need's to be Disabled ! */

p_block_icon_action = false;

p_block_equip_weapon = false;

p_block_equip_armor = false;

b_focus_fire_active = false;


TLS_TRACE_END;

}

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-02-2009, 09:23 AM. Открыть источник.
 
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:13.