Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   small ai.obj break down (https://postpacific.loc-online.com/showthread.php?t=3406)

johnsmith2 19.02.2006 19:03

small ai.obj break down
 
some of you might already know it
i will just pull it out

Quote:

push_event // talker
push_const 32
add
fetch_i // level
push_const 888
add
fetch_i
push_const 18
greater_equal
ASM:
////////////
push_event // eax
////////////
push_const 32
add
fetch_i //mov eax, dword ptr ds:[eax+20h];
//////////
push_const 888
add
fetch_i //mov eax, dword ptr ds:[eax+378h];
//////////
push_const 18
greater_equal //cmp eax, 12h
//jge offset


C++:
if ( CCreature.level >= 18 )

CCreature is a Structure that contains Creature data(NPC/Monster/Player)

okey, thats eof, some of you genius should already get the idea about how to get a complete retail 7sign festival from this one
ie: CCreature.CharName

toolpunk 19.02.2006 19:31

i knew about the ai thingy...
however those asm commands are new to me.
so, thanks for adding comments to the code :D

Alien003 19.02.2006 21:29

humm the CCreature struct is in shared memory for L2Npc and L2Server ?

johnsmith2 19.02.2006 22:18

thats why we have CCreatureSharedData * pData
check L2NPC


All times are GMT. The time now is 15:49.