![]() |
|
|
#1 |
|
Архивный участник
Join Date: May 2005
Posts: 85
|
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: |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Aug 2005
Posts: 194
|
Thanx. Lets test...
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2006
Posts: 139
|
thx
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2006
Posts: 11
|
thank you
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Nice.
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Nice.
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
good ^^ thanks
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
good ^^ thanks
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Mar 2006
Posts: 43
|
useful. thnx!
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Mar 2006
Posts: 43
|
useful. thnx!
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
great idea!
![]() it's actually pretty annoying to feed your pets manually... |
|
|
|
|
#12 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
great idea!
![]() it's actually pretty annoying to feed your pets manually... |
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Jul 2005
Posts: 96
|
Quote:
Anyway thanks a lot Ameron, I was too lazy to write it by myself
|
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Apr 2005
Posts: 202
|
all pets on retail auto use food at 50% hp if im correct.
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Feb 2006
Posts: 158
|
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. |
|
|
|
|
#16 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
|
|
|
|
|
#17 | |
|
Архивный участник
Join Date: May 2005
Posts: 85
|
Quote:
|
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
hmm can u re-share your cool share?
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Aug 2005
Posts: 14
|
Any re-share ?
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Code:
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
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Sep 2005
Posts: 212
|
Who can re-share this files?
|
|
|
|
|
#22 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 82
|
Quote:
Вложения из исходного сообщения (сами файлы в копии отсутствуют): pets_food_460.rar — 2044 байт |
|
|
|
|
|
#23 | ||
|
Архивный участник
Join Date: Sep 2005
Posts: 212
|
Quote:
|
||
|
|
|
|
#24 | |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
Quote:
|
|
|
|
|
|
#25 | ||
|
Архивный участник
Join Date: Sep 2005
Posts: 212
|
Quote:
[ua]Чуешь козлыха, йды ты в дупу.[/ua] :lol: |
||
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|