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.07.2009, 08:33   #7
angrax
Guest
 
Posts: n/a
Default newbie dev help :D

First - i haven't touched skill parser yet

Second - what's so special about kamael skill that they need changes in skill parser? I understand that maybe we don't have all needed skill effects, but what else those kamael skills requires?


kuroi'm not criticizing you, do not take it badly, I think my question was badly worded, now let's see if either:


looking in the parser i see this part:


.....

else if (wcsncmp(L"i_erase", cString.c_str(), cString.size()) == 0 )

{

token = i_mp_by_level;

subst_yyaction = I_ERASE;

}

else if (wcsncmp(L"i_target_cancel_chance", cString.c_str(), cString.size()) == 0 )

{

token = i_mp_by_level;

subst_yyaction = I_TARGET_CANCEL_CHANCE;

}

.....


so i think "aja, I should add here that my skills for parser can read from skilldata"...


and that is the part i dont understand:


....

switch(action)

{

case 53: // operate_cond={{remain_hp_per;<!-- arg1 int -->}}

{

CHECK_SUBST_AND_FALLBACK;


int arg1 = yyattribute(0).int_value;


switch(subst_yyaction)

{

case OP_REMAIN_MP_PER:

this->pSkillInfo->AddOPCondition(new COPCondition_remain_mp_per(arg1));

break;

}


subst_yyaction = 0;

}

break;


case 59: // operate_cond={{can_summon}}

{

CHECK_SUBST_AND_FALLBACK;


switch(subst_yyaction)

{

case OP_CAN_SUMMON_FRIEND:

this->pSkillInfo->AddOPCondition(new COPCondition_can_summon_friend());

break;

}


subst_yyaction = 0;

}

break;


case 119: // i_mp_by_level <!-- arg1 int -->

{

CHECK_SUBST_AND_FALLBACK;


int arg1 = yyattribute(0).int_value;


switch(subst_yyaction)

{

case I_TRANSFORM:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_transform(arg1));

break;

case I_SUMMON_FRIEND:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_summon_friend(arg1));

break;

case I_RUSH:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_rush(arg1));

break;

case I_ERASE:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_erase(arg1));

break;

case I_TARGET_CANCEL_CHANCE:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_target_cancel_chance(arg1));

break;

case I_REMOVE_DEATH_PENALTY:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_remove_death_penalty(arg1));

break;

case I_SUMMON_AGATHION:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_summon_agathion(arg1));

break;

case I_TARGET_ME_CHANCE:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_target_me_chance(arg1));

break;

}


subst_yyaction = 0;

}

break;


case 133: // i_run_away

{

CHECK_SUBST_AND_FALLBACK;


int arg1 = yyattribute(-1).int_value;

int arg2 = yyattribute(0).int_value;


switch(subst_yyaction)

{

case I_MANA_BURN:

this->pSkillInfo->AddInstantEffect(new CSkillEffect_i_mana_burn(arg1,arg2));

break;

}


subst_yyaction = 0;

}

break;


case 194: // p_block_act

{

CHECK_SUBST_AND_FALLBACK;


switch(subst_yyaction)

{

case P_BLOCK_ICON_ACTION:

this->pSkillInfo->AddPumptEffect(new CSkillEffect_p_block_icon_action(0));

break;

case P_DISARM:

this->pSkillInfo->AddPumptEffect(new CSkillEffect_p_disarm(0));

break;

....


I guess the case is the ID of each skill?????


so i open CParserForSkill.h and this take my attention.


....

/* OPERATE CONDITIONS */

OP_CAN_SUMMON_FRIEND = 0x11000,

OP_REMAIN_MP_PER = 0x11001,

OP_HAVE_CP = 0x11002,

OP_HAVE_DEBUFF = 0x11003,


/* SKILL EFFECTS */

I_TRANSFORM = 0x10130,

I_SUMMON_FRIEND = 0x10131,

I_RUSH = 0x10132,

P_BLOCK_ICON_ACTION = 0x10133,

P_DISARM = 0x10134,

I_ERASE = 0x10135,

I_TARGET_CANCEL_CHANCE = 0x10136,

I_REMOVE_DEATH_PENALTY = 0x10137,

I_SUMMON_AGATHION = 0x10138,

I_DEATH = 0x10139,

I_MANA_BURN = 0x10140,

I_TARGET_ME_CHANCE = 0x10141,

....

only have to add new skills with diferent hex value?

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-02-2009, 08:33 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 17:32.