Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04.10.2005, 01:27   #1
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default [FIX] Some AI.OBJ bagfixes

Valcon fix:

L17367
shift_sp 1
func_call 23 // func[GetCurrentTick]
push_event // talker
push_const 32
add
fetch_i // quest_last_reward_time
push_const 644
add
fetch_i
sub
push_const 1
greater
branch_false L17370
L17369

//bug fix for 32000 exp 3900 sp
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3139
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
equal
branch_false L100001
L100002
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
S100001. "cheater.htm"
push_string S100001
func_call 43 // func[ShowPage]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3434
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
exit_handler
L100001
//end bug fix


You mast find in ai.obj with green color
and insert red part after green text

for use bug attempt, NPC give item Coca-Cola to cheater, and display cheater.htm (make it by yourself). Dont forget set in itemdata.txt those parameters to item with id 3434: is_destruct=0 is_trade=0 is_drop=0.
NOTE: on my server this item sellable in Aden shop, dont know why.

Wolf Collar bugfix

fetch_i
branch_false L41292
shift_sp 1
func_call 23 // func[GetCurrentTick]
push_event // talker
push_const 32
add
fetch_i // quest_last_reward_time
push_const 644
add
fetch_i
sub
push_const 1
greater
and
L41292
branch_false L41294
L41293

//bug fix for wolf collar
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3417
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
equal
branch_false L100009
L100010
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
S100005. "cheater.htm"
push_string S100005
func_call 43 // func[ShowPage]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3434
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
exit_handler
L100009
//end bug fix


NPC ask test questions and at end give Coca-Cola

Loving Sophia

L41603
shift_sp 1
func_call 23 // func[GetCurrentTick]
push_event // talker
push_const 32
add
fetch_i // quest_last_reward_time
push_const 644
add
fetch_i
sub
push_const 1
greater
branch_false L41606
L41605

//bug fix for 1000 adena
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 1369
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
equal
branch_false L100005
L100006
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
S100003. "cheater.htm"
push_string S100003
func_call 43 // func[ShowPage]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3434
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
exit_handler
L100005
//end bug fix


the same way...

clan 5lv and 250k sp bugfix

L44696
shift_sp 1
func_call 23 // func[GetCurrentTick]
push_event // talker
push_const 32
add
fetch_i // quest_last_reward_time
push_const 644
add
fetch_i
sub
push_const 1
greater
branch_false L44699
L44698

//bug fix for clan 5 level up and 250k sp
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3869
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
equal
branch_false L100007
L100008
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
S100004. "cheater.htm"
push_string S100004
func_call 43 // func[ShowPage]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 3434
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
exit_handler
L100007
//end bug fix


Be sure change L10000X and S10000Y according with your custom ai code. I hear another serious bugs present in ai.obj, but I dont know about it, if you know PM me, with bugged NPC and I'll make fixes...
RmzVoid 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 22:06.