Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [FIX] Some AI.OBJ bagfixes (https://postpacific.mmorpg-game.online/showthread.php?t=2070)

RmzVoid 04.10.2005 01:27

[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...

blaher 04.10.2005 01:52

thanks man ill try it :)

kepler001 04.10.2005 01:56

tested =)

and bug from warehouse? ?

RmzVoid 04.10.2005 02:09

Quote:

Originally Posted by kepler001
tested =)

and bug from warehouse? ?

dont understand this bug )) i think not so useful

kepler001 04.10.2005 03:21

exploit of warehouse
Im summon pet and help html open warehouse
and open warehouse full npcs :s
for deposit and exchange items for warehouse

RmzVoid 04.10.2005 03:39

hmmm, dont know what kind of check I mast insert :(

oooo no! have idea!
i mast add handler to default npc class and leave it empty, so, true warehouse keepers have it own, proper handler, and other npcs have it empty and do nothing!
what are you think?

RmzVoid 04.10.2005 03:47

hmmm, no, this is not a way, keeper have no handler for deposit and withdraw items... have no ideas

darkagent 04.10.2005 06:37

for warehouse - only hex is the way...

Alisa 04.10.2005 17:52

Rmzvoid Respect really nice fix omw wanna check & got some cola ;

toolpunk 04.10.2005 18:00

nice.
thx for sharing.
i will donate some cash ;)

darkagent 05.10.2005 04:18

fastest way to fix Sophia:
lookin' for:
Code:

        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
        push_const 57
        push_const 1000
->>>        func_call 77        //  func[GiveItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1

changing to:
Code:

        shift_sp 1
        push_event        //  talker
        push_const 32
        add
        fetch_i
        push_const 57
        push_const 1000
->>>        func_call 80        //  func[DeleteItem1]
        shift_sp -3
        shift_sp -1
        shift_sp 1

This quest is unuseful then rates more than 1x, so you may do a trap for cheaters ;)

RmzVoid 05.10.2005 04:48

i think this is wrong solution for rate 1+ too. some players will be "hurted" if they done quest but sophia get 1000 adena from them.
valcon the same way? ))) one of profession quest decrease exp end sp )) just add "negate" after push_const 32000 and push_const 3900 )))
make patch for ai.obj not so hard, so we mast make it more transparent for usual plaeyers. And if you think that sofia quest useless just delete npcpos for sophia.

hamidouch 05.10.2005 22:23

fukin usefull thks ^^
i set the item to a 80k weight item lol
alrdy 20 or 30 peeps caught lol

Kenster 06.10.2005 02:22

Maybe, we can make them some how put into combat, by a mob that hits 1 dmg each, making them unable to log out also? So gives a few more minutes to catchem :P

RmzVoid 06.10.2005 02:31

all in your hands

hamidouch 06.10.2005 14:04

just set item as skill_maintain and set item_skill as a gm_fossi lasting after 50 hours .....
u can be sure they will try to use the item, since i made it with a nice bomb icon ^^

hamidouch 06.10.2005 14:07

rmz btw if i want to add ur check on another npc,
i just have to change

fetch_i
push_const 1369 <=== this constant according new npc i wanna fix
func_call 81 // func[OwnItemCount]

right?
no need to touch Sxxxxxx or does it have to be unique?

LDragonL 06.10.2005 18:32

Valkon's quest doesn't work anymore when you apply this fix it seems...
Ppl say they don't get the mark from valkon.

Greetz

TourT 06.10.2005 22:12

Yes .. valcon don't work :(

RmzVoid 06.10.2005 22:51

Quote:

Originally Posted by hamidouch
rmz btw if i want to add ur check on another npc,
i just have to change

fetch_i
push_const 1369 <=== this constant according new npc i wanna fix
func_call 81 // func[OwnItemCount]

right?
no need to touch Sxxxxxx or does it have to be unique?

yes, maybe you need add check for amount of needed items.

to other
are you sure that reason of non workinkg valcon my patch?
may be you look to problem close, check for users inventory (full?)
or server lag? I have complete this quest, and all work, mark in bag.
In the end look at code of patch and you not see error.

caxap 08.10.2005 00:12

valkon is worked with fix

RmzVoid 08.10.2005 00:20

Quote:

Originally Posted by caxap
valkon is worked with fix

10x for positive support :)

LDragonL 08.10.2005 09:56

Did the quest too and it works indeed i am very sorry.
Thanks for your nice share ;)

Greetz

iamrend 08.10.2005 10:03

yes valkon work ;)

tsakis 13.10.2005 16:57

nice but where do i find ai.obj and itemdata.txt ??????????

SoaPy 13.10.2005 17:00

Quote:

Originally Posted by tsakis
nice but where do i find ai.obj and itemdata.txt ??????????

LOL !!!!!!!!!!!!!!

script folder maybe ?

[localhost] 13.10.2005 17:17

!!!!
 
Quote:

Originally Posted by tsakis
nice but where do i find ai.obj and itemdata.txt ??????????

Люблю таких Девелоперов с БОЛЬШОЙ буквы)))

tsakis 13.10.2005 17:30

Re: !!!!
 
these changes are to modify a server...
but a guy told that those also can work as help html haqs
and i thought that a client l2 has also those files...

RmzVoid 13.10.2005 22:37

ржунимагу

[localhost] 14.10.2005 08:14

Дада ;-)

Kryak 14.10.2005 23:07

Бугага

toolpunk 15.10.2005 11:19

could you guys write in english please?
it might disturb the others as it has no use for em... (postpacific has a pm feature ;))
thx in advance

RmzVoid 15.10.2005 17:15

Only one words:
You never understood russian humor :)

Dedal 20.10.2005 13:41

And never will understand

Koner 20.10.2005 14:57

Quote:

Originally Posted by tsakis
nice but where do i find ai.obj and itemdata.txt ??????????

yup.
Panical lol

Try to search it on ragezone =) usefull

About humor
Бугага means Muahaha.
Ржунимагу means rofl.
any questions ?

rodier 20.10.2005 17:25

what about quest with alchemist matilda fix ? can anyone fix it?
its weird..
1. if you have 3-5 slots in inventory free..matilda told you uare full.. and u must have 1/2 inventory free
2. if you have ALL slots full .. simply server don't delete that potion = u can repeat quest again and again and again


All times are GMT. The time now is 23:54.