Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Share] Hatchling'n'Strider's auto-food (https://postpacific.loc-online.com/showthread.php?t=4201)

Ameron 27.04.2006 09:18

[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:

2Rain 27.04.2006 09:59

Thanx. Lets test...

rar 27.04.2006 11:07

thx

DemonD 27.04.2006 11:19

thank you

Eanae 27.04.2006 22:37

Nice.

Eanae 27.04.2006 22:37

Nice.

wton 28.04.2006 01:25

good ^^ thanks

wton 28.04.2006 01:25

good ^^ thanks

Larson 28.04.2006 16:18

useful. thnx!

Larson 28.04.2006 16:18

useful. thnx!

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...

lich 29.04.2006 17:56

Quote:

Originally Posted by toolpunk
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 :)

Sundh 29.04.2006 20:29

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.

Eanae 30.04.2006 01:31

PS: this was on 99net.. taking credit for their work? ;)

http://bbs.99nets.com/read.php?tid=384730

Ameron 04.05.2006 08:09

Quote:

Originally Posted by Eanae
PS: this was on 99net.. taking credit for their work? ;)

http://bbs.99nets.com/read.php?tid=384730

It's not copy-paste!

rodier 30.06.2006 04:23

hmm can u re-share your cool share? :)

Duna 01.07.2006 12:39

Any re-share ?

Eanae 09.07.2006 17:59

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

Couldn't just get it off 99net?

Koner 09.07.2006 20:56

Who can re-share this files?

dknod 09.07.2006 21:00

Quote:

Originally Posted by Koner
Who can re-share this files?

Not sure is it a right one...

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
pets_food_460.rar — 2044 байт

Koner 09.07.2006 21:55

Quote:

Originally Posted by dknod
Quote:

Originally Posted by Koner
Who can re-share this files?

Not sure is it a right one...

Thx.. I test it now.

Eanae 11.07.2006 00:30

Quote:

Originally Posted by Koner
Who can re-share this files?

... you must be fucking blind

Koner 11.07.2006 02:56

Quote:

Originally Posted by Eanae
Quote:

Originally Posted by Koner
Who can re-share this files?

... you must be fucking blind

hmm....Very nice :|

[ua]Чуешь козлыха, йды ты в дупу.[/ua] :lol:

smeli 01.06.2007 09:10

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 :)


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