View Single Post
Old 09.07.2006, 17:59   #20
Eanae
Архивный участник
 
Join Date: Jun 2005
Posts: 262
Default

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?
Eanae is offline