PDA

View Full Version : Castle Door and Money - Bug


spoter
26.07.2005, 23:59
Critical exploitation BUG
castle gates issue

exploitation:
modify a client L2Text\help.htm file by the following
<HTML>
<HEAD>
<BODY>
<center>
<table><tr><td>Lineage II Help<td><tr><table>
L2UI.SquareWhite


<A action="bypass -h menu_select?ask=-201&reply=1">Here.<A>


L2UI.SquareWhite
L2UI.SquareBlank
<table><tr><td>January 27, 2004 Update<td><tr><table><center>
<BODY>
then go to gategeeper at the castle and ask him, after he send you back
- close dialog box and go Options->HELP->here and voila gates are open
using this exploitation players can change taxex in unowned castles
and use treasury there (using OPTIONS->HELP->here too).


----------here is a fix by sPoter (www.splendor.ru dev team)
----------u can send him money haha, some thing tell me that russian greedy leachers never doit

class chamberlain : default_npc
===================== Finde string
===================== найти строку :
handler 32 MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"fhtml0"
"i0"
"i1"
"i2"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
---------------------------after this insert this code replace all the stuff till label L888
shift_sp 1
push_event talker
push_const 32
add
fetch_i
func_call 100 func[IsMyLord]
shift_sp -1
branch_false L51176
L51175

push_event ask
push_const 100
add
fetch_i
push_const 201
negate
equal
branch_false L889
L888

-------find handler end
-------Найти где заканчивается хэндлер это строка :
L925
handler_end

-------and write "L51176" before handler end
-------перед хэндлер енд написать L51176
-------like this:
L925
L51176
handler_end
-------дальнейшие действия аналогичны. буду просто постить код:
-------Do the same for all other shit
===========================
class steward : default_npc
============================
handler 32 / MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"fhtml0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_event // talker
push_const 32
add
fetch_i
func_call 100 // func[IsMyLord]
shift_sp -1
branch_false L51178
L51177

push_event // ask
push_const 100
add
fetch_i
push_const 201
negate
equal
branch_false L1158
L1157
==============================
L1179
L51178
handler_end

=================================
class doorkeeper : default_npc
=================================
handler 32 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"fhtml0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_event // talker
push_const 32
add
fetch_i
func_call 100 // func[IsMyLord]
shift_sp -1
branch_false L51180
L51179

push_event // ask
push_const 100
add
fetch_i
push_const 201
negate
equal
branch_false L1269
L1268
================================
L1269
L51180
handler_end
=================================
class castle_merchant : default_npc
==================================
handler 32 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"fhtml0"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_event // talker
push_const 32
add
fetch_i
func_call 100 // func[IsMyLord]
shift_sp -1
branch_false L51182
L51181

push_event // ask
push_const 100
add
fetch_i
push_const 201
negate
equal
branch_false L757
L756
================================
L764
L51182
handler_end

gamedeveloper
27.07.2005, 18:56
The problem is much deeper. You can make any quest in such a manner, wishing potion for example. Needed fix to prevent using client side HTMLs at all.
Update: Most quest require some objects to be earned so wishing potion quest is safe against this bug. Seeking more...