View Single Post
Old 01.06.2009, 11:27   #3
goodtimeshaxor
Guest
 
Posts: n/a
Default L2Extend Functions/Calls/Tokens/Questions

2-Perhaps i am wrong but if you kill an NPC directly by CCreaturee::Die timer to despawn is not set.

Better use this function to kill NPC


bool CNPC::Die(CCreature *pEnemy)

{

typedef bool (__thiscall *_DIENPC) (CNPC *pMyself, CCreature *Enemy);

_DIENPC xDienpc = (_DIENPC)0x006C38B0L;

return ( xDienpc(this, pEnemy) );

}


Anyway don't have time to check

Use CNPC:: Die function it work (*Enemy can be *Myself if needed :p)


Well, this skill is primarily a PvP skill (target would be another PC) but it can be used against an NPC for exping purposes.

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