View Full Version : [Share] Hatchling'n'Strider's auto-food
Here is my small share.
Striders and hatchlings have to eat food when its meal status fall below 55%.
Here is ai, itemdata and skilldata.
Enjoy ! :wink:
toolpunk
28.04.2006, 17:41
great idea! :)
it's actually pretty annoying to feed your pets manually...
toolpunk
28.04.2006, 17:41
great idea! :)
it's actually pretty annoying to feed your pets manually...
great idea! :)
it's actually pretty annoying to feed your pets manually...
This is official server idea actually =)
Anyway thanks a lot Ameron, I was too lazy to write it by myself :)
all pets on retail auto use food at 50% hp if im correct.
ANRDaemon
30.04.2006, 00:18
Deluxe Food for strider
When the hunger gauge of a strider reaches 55% or below, its food will be consumed automatically. Food consumption efficiency improves while riding a strider.
Food for strider
When the hunger gauge of a strider reaches 55% or below, its food will be consumed automatically.
PS: this was on 99net.. taking credit for their work? ;)
http://bbs.99nets.com/read.php?tid=384730
PS: this was on 99net.. taking credit for their work? ;)
http://bbs.99nets.com/read.php?tid=384730
It's not copy-paste!
hmm can u re-share your cool share? :)
class pet_wolf_a : pet_physicalattack
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 1
assign
shift_sp -1
shift_sp 1
push_const 1
func_call 53 // func[SetTimerPeriod]
shift_sp -1
shift_sp -1
L1
call_super
handler_end
handler 11 // TIMER_FIRED
variable_begin
"myself"
"master"
"meal"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
fetch_i
push_const 1
equal
push_reg_sp
fetch_i
branch_false L2
L1
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1720
add
fetch_i
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1724
add
fetch_i
push_const 55
mul
push_const 100
div
less_equal
push_reg_sp
fetch_i
branch_false L0
L2
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1720
add
fetch_i
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1724
add
fetch_i
equal
push_reg_sp
fetch_i
branch_true L7
L3
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2404
add
fetch_i
push_const 2515
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
greater
branch_false L0
L4
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2404
add
fetch_i
push_const 2515
push_const 1
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 524289
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
fetch_i
push_const 2
equal
push_reg_sp
fetch_i
branch_false L6
L5
jump L0
L6
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 2
assign
shift_sp -1
jump L0
L7
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 1
assign
shift_sp -1
L0
handler_end
class_end
龙马因为有2个饲料类型 我把他写为� ��1个类 但是流程基本是一样的
调用ITEMCLASSID1=5168 调用的SKILLCLASSID1=537857
ITEMCLASSID2=5169 调用的SKILLCLASSID2=538113
class strider : pet_use_one_skill
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 1
assign
shift_sp -1
shift_sp 1
push_const 1
func_call 53 // func[SetTimerPeriod]
shift_sp -1
shift_sp -1
L1
call_super
handler_end
handler 11 // TIMER_FIRED
variable_begin
"myself"
"master"
"meal"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
fetch_i
push_const 1
equal
push_reg_sp
fetch_i
branch_false L2
L1
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1720
add
fetch_i
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1724
add
fetch_i
push_const 55
mul
push_const 100
div
less_equal
push_reg_sp
fetch_i
branch_false L0
L2
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 1720
add
fetch_i
push_event // myself
push_const 28
add
fetch_i // sm
push_const 2400
add
fetch_i
push_const 1724
add
fetch_i
equal
push_reg_sp
fetch_i
branch_true L7
L3
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2404
add
fetch_i
push_const 5168
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
greater
branch_false L8
L4
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2404
add
fetch_i
push_const 5168
push_const 1
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 537857
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
fetch_i
push_const 2
equal
push_reg_sp
fetch_i
branch_false L6
L5
jump L0
L6
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 2
assign
shift_sp -1
jump L0
L7
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 1
assign
shift_sp -1
jump L0
L8
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2404
add
fetch_i
push_const 5169
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0
greater
branch_false L0
L9
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2404
add
fetch_i
push_const 5169
push_const 1
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2400
add
fetch_i
push_const 538113
push_const 0
push_const 1
push_const 1000000
func_call 10 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
shift_sp 1
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
fetch_i
push_const 2
equal
push_reg_sp
fetch_i
branch_false L11
L10
jump L0
L11
push_event // myself
push_const 28
add
fetch_i
push_const 2340
add
push_reg_sp
fetch_i
push_const 2
assign
shift_sp -1
L0
handler_end
class_end
Couldn't just get it off 99net?
Who can re-share this files?
Who can re-share this files?
Not sure is it a right one...
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
pets_food_460.rar — 2044 байт
Who can re-share this files?
Not sure is it a right one...
Thx.. I test it now.
Who can re-share this files?
... you must be fucking blind
Who can re-share this files?
... you must be fucking blind
hmm....Very nice :|
Чуешь козлыха, йды ты в дупу. :lol:
push_const 1720 - myself.sm.meal
push_const 1724 - myself.sm.??? (max meal)
maybe someone can post more undocumented parameters of C1 npc server
cause C1 is not used now, you can share your information without fear of leechers :)