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 01.06.2009, 07:44   #1
goodtimeshaxor
Guest
 
Posts: n/a
Default L2Extend Functions/Calls/Tokens/Questions

Can anyone answer any of these questions? Thanks in advance!


1. I'm looking for a skill token that has two arguments. How can I use it and what would it look like in CParserForSkill.cpp and CParserForSkill.h?


2. How does the Die() function work and how could I use it in a skill.


bool Die(CCreature *pEnemy)

{

typedef bool (__thiscall *_DIE) (CCreature *MySelf, CCreature *Enemy);

_DIE xDie = (_DIE)0x00511D70L;

return ( xDie(this, pEnemy) );

}

The above is from CCreature.h


Die(pTargetCreature);


The above is what I used in a skill but returns an error. I guess it should at least be pTargetCreature->Die()

pTargetCreature->Die(pTargetCreature); seemed to have worked but if it is used to kill an NPC/mob then the corpse of the mob never disapears. The body is left on the ground forever. How can I fix this.


3. I created a damaging skill but right now it only reduces a target's HP which does not kill them if they reach less than 0 HP. I wanted to use the Die() function to make them die if they were under 1 HP. Is there a better way to do this? Is there a damage function?

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