View Single Post
Old 12.07.2009, 15:04   #5
goodtimeshaxor
Guest
 
Posts: n/a
Default Tick SKill Effects

What examples for parsing skilldata? It might be similar to p_effects, i_effects, and op_conds but I just don't know the syntax for tick effects.

I will try and look around more. Thanks

#include "CSkillEffect_t_test_tick_effect.h"

CSKILL_EFFECT_INSTALL_VMT(CSkillEffect_t_test_tick _effect)

//Not sure what goes up here

//Could not find a CheckTickCond.. Am I supposed to use a CheckPumpCond?

INT32 nCSkillEffect_t_test_tick_effectCheckPumpCondition = 0;

bool CSkillEffect_t_test_tick_effect::CheckPumpConditio n(CObject *pTarget)

{

L2SERVER_SHARED_GUARD(nCSkillEffect_t_test_tick_ef fectCheckPumpCondition);

TLS_TRACE_BEGIN;

bool bResult = false;

User *pUser = (User*)pTarget;

if(pUser->IsValidUser())

{

bResult = true;

}

TLS_TRACE_END;

return bResult;

}

INT32 nCSkillEffect_t_test_tick_effectTick;

void CSkillEffect_t_test_tick_effect::Tick(CObject* pTarget)

//Already has a body. Not sure what to do from here

{

L2SERVER_SHARED_GUARD(nCSkillEffect_t_test_tick_ef fectTick);

TLS_TRACE_BEGIN;

User *pUser = (User*)pTarget;

if(pUser->IsValidUser())

{

//Effect Here?

}

TLS_TRACE_END;

}

I obviously don't have a clue what I'm doing, but I listened to what you said and took a pump effect and changed it. Obviously and completely wrong. Now what?

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-12-2009, 03:04 PM. Открыть источник.