Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Help me fixing valko. (https://postpacific.loc-online.com/showthread.php?t=1988)

LDragonL 30.09.2005 11:18

Help me fixing valko.
 
Since no one here mentions Valko, i start about the NPC.
It's clear 3 parts in the ai.obj is about finishing the quest.
valkon_q0216_09
valkon_q0216_09a
valkon_q0216_09b

I don't know what to change to make the exploit useless.
Can anyone help me ?

I looked at the difference fixes foor the castle exploits, but there is nothing similar on valkon.
It seems many people have it, so a little help mustn't be so difficult.

HF 30.09.2005 11:44

It is full ai code for this npc

LDragonL 30.09.2005 12:57

Thanks a lot but..
Isn't this an original one ?
Exploit still works after implementing it.

miega 30.09.2005 13:09

add this after:

L17366

and before

push_event // reply
push_const 104

Code:

       
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 6
greater
branch_false L1736612
L1736611

it counts if player has items needed, and only then lets perform the action.
also add

L1736612

after
L17374
L17372
L17362

P.S. hope you understood... i can't post whole code as mine has 2nd protection, that cant be shared. I have similar fiexs for chamberlain and doorkeepers. If you able to implement this one, ill post other two ;)

Osito2Dancer 30.09.2005 17:41

Why 6? do it with only 1, in real quest you cant get more than 1 mark_of_guildsman. The other thing you can do is put a "delevel clause" that, if the talker has more than 1 of these items, his exp would decrease rather than increase.

I have the code at home, i could show you that one if you like.

Oso

LDragonL 30.09.2005 19:08

Too bad I don't understand ai.obj good enough to create such things myself.
But Miega, i implemented them and the exploit is not working anymore.
So thanks a lot for your share.

Greetz

Livid 01.10.2005 10:58

Osito, that's not mark of guildsman, but ring... forgot how is it called, you need to craft 7 of them minimum to pass the test. That's the point. And that's what I actually did (and added OneTimeQuest check just in case)

LDragonL 01.10.2005 12:05

Is this necessary to change the entire ai.obj or only the npc's the exploiters use ? Like Sophia, Valko and gustaff ?

Greetz

Livid 01.10.2005 14:14

Theoretically, there are more NPCs that can be used with html bug. But those threee are the most common.

Osito2Dancer 01.10.2005 18:36

Quote:

Originally Posted by Livid
Osito, that's not mark of guildsman, but ring... forgot how is it called, you need to craft 7 of them minimum to pass the test. That's the point. And that's what I actually did (and added OneTimeQuest check just in case)

Yep, i saw 3119, not 3139 xD.

Oso

LDragonL 02.10.2005 09:02

Who can teach me a little ai coding ?
I really like to teach that.

Phantom2005 02.10.2005 09:19

https://postpacific.loc-online.com/f...opic.php?t=521

top-gear 02.10.2005 11:41

what about removing xp and sp bonus completely from quests :) can you help me and show me an example where the bonus is given to the player in the ai code?

LDragonL 02.10.2005 11:58

Quote:

Originally Posted by miega
add this after:

L17366

and before

push_event // reply
push_const 104

Code:

       
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 6
greater
branch_false L1736612
L1736611

it counts if player has items needed, and only then lets perform the action.
also add

L1736612

after
L17374
L17372
L17362

P.S. hope you understood... i can't post whole code as mine has 2nd protection, that cant be shared. I have similar fiexs for chamberlain and doorkeepers. If you able to implement this one, ill post other two ;)

Ok so i am supposed to add handlers to check if required items are there.
But what does the L1736612 means i have to add, what is it and how do i find out what to add :S ?

top-gear 02.10.2005 12:05

Quote:

Originally Posted by top-gear
what about removing xp and sp bonus completely from quests :) can you help me and show me an example where the bonus is given to the player in the ai code?

furthermore, I am thinking of adding the whole 3 quests' xp/sp bonus when the player changes profession and not when completing the quest.

LDragonL 03.10.2005 10:23

Hm i fixed gustaf too using the similar was as you, Miega.
But for sophia i get an error in npcserver now:

"MAX LOOP COUNT EXEEDE!!!"

And when i try to use xplot on pet manager martin npc server crashes immediate.

I looked very carefully after this below, but i couldn't figure out exactly how it checks for the items required.

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 6
greater
branch_false L1736612
L1736611

BTW if anyone is interested in the way they let the server crash on ANY npc please pm me i don't want to public it.

Osito2Dancer 03.10.2005 13:34

Sure, no sweat dude:

shift_sp 1 [center:df8b414c19]> Moves the Stock Pile 1 slot forward (places it on the top).[/center:df8b414c19]
push_event // talker [center:df8b414c19]> Says "Hey, lets target who's talking to me"[/center:df8b414c19]
push_const 32 [center:df8b414c19]> In conjuction with above.[/center:df8b414c19]
add [center:df8b414c19]> Adds one to the SP (Not sure though)[/center:df8b414c19]
fetch_i [center:df8b414c19]> Opens the "retrieving process"[/center:df8b414c19]
push_const 3139 [center:df8b414c19]> Pushes "3139", the itemID to be checked.[/center:df8b414c19]
func_call 81 // func[OwnItemCount] [center:df8b414c19]> Ai Function that does it ^^[/center:df8b414c19]
shift_sp -2 [center:df8b414c19]> Moves the SP 2 slots behind (to read the item count)[/center:df8b414c19]
push_const 6 [center:df8b414c19]> Pushes the number 6 for comparison.[/center:df8b414c19]
greater [center:df8b414c19]> Here it asks: is 6 < item_count on player?[/center:df8b414c19]
branch_false L1736612 [center:df8b414c19]> If false, jumps to instruction said.[/center:df8b414c19]

Damn AI.obj T_T. Pseudo-ASM SOX!

Hope it helps.

Oso

LDragonL 03.10.2005 14:46

Yeah great,
these are nice things to work with tonight.
So basically i can use this "template" to fix all risky npc's ?


greetz


All times are GMT. The time now is 16:20.