View Single Post
Old 17.09.2005, 02:46   #15
tigra
Архивный участник
 
Join Date: Jul 2005
Posts: 41
Default

to restore tattoo effects look at handler 52.

Code:
handler 52	//  USER_CONNECTED
	variable_begin
		"talker"
		"i0"
		"i1"
		"i2"
		"i3"
		"i4"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

//tattoo - stats restore
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 4445
	func_call 81	//  func[OwnItemCount]
	shift_sp -2
	push_const 1
	equal
	branch_false L504580
L514580
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 3
	push_const 1
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
	shift_sp 1
	push_event	//  talker
	push_const 32
	add
	fetch_i
	push_const 4
	push_const 3
	negate
	func_call 171	//  func[IncrementParam]
	shift_sp -3
	shift_sp -1
L504580
	shift_sp 1
//end
	push_event	//  talker
	push_const 32
	add
	fetch_i	//  level
	push_const 888
//.......
in "two" words - check itemid for tattoo, and if it exists, apply tattoo effects again...
tattoo conditions - like no more then 3 tattoo, characteristics changes not more then +5 better implement in symbolmaker, imho

but in this time it useless, since IncrementParam have no effects on characteristics (or noone share fix
tigra is offline