Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 19.02.2006, 19:03   #1
johnsmith2
Архивный участник
 
Join Date: Jan 2006
Posts: 82
Default 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
johnsmith2 is offline  
Old 19.02.2006, 19:31   #2
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

i knew about the ai thingy...
however those asm commands are new to me.
so, thanks for adding comments to the code
toolpunk is offline  
Old 19.02.2006, 21:29   #3
Alien003
Архивный участник
 
Join Date: Jun 2005
Posts: 143
Default

humm the CCreature struct is in shared memory for L2Npc and L2Server ?
Alien003 is offline  
Old 19.02.2006, 22:18   #4
johnsmith2
Архивный участник
 
Join Date: Jan 2006
Posts: 82
Default

thats why we have CCreatureSharedData * pData
check L2NPC
johnsmith2 is offline  
 


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 19:16.