1
1
2
2
use super :: * ;
3
3
4
- # [ acmd_script ( agent = "wolf" , script = "game_attack11" , category = ACMD_GAME , low_priority ) ]
5
- unsafe fn wolf_attack_11_game ( fighter : & mut L2CAgentBase ) {
4
+
5
+ unsafe extern "C" fn wolf_attack_11_game ( fighter : & mut L2CAgentBase ) {
6
6
let lua_state = fighter. lua_state_agent ;
7
7
let boma = fighter. boma ( ) ;
8
8
frame ( lua_state, 3.0 ) ;
@@ -32,8 +32,8 @@ unsafe fn wolf_attack_11_game(fighter: &mut L2CAgentBase) {
32
32
}
33
33
}
34
34
35
- # [ acmd_script ( agent = "wolf" , script = "effect_attack11" , category = ACMD_EFFECT , low_priority ) ]
36
- unsafe fn effect_attack11 ( agent : & mut L2CAgentBase ) {
35
+
36
+ unsafe extern "C" fn effect_attack11 ( agent : & mut L2CAgentBase ) {
37
37
let lua_state = agent. lua_state_agent ;
38
38
let boma = agent. boma ( ) ;
39
39
frame ( lua_state, 2.0 ) ;
@@ -42,8 +42,8 @@ unsafe fn effect_attack11(agent: &mut L2CAgentBase) {
42
42
}
43
43
}
44
44
45
- # [ acmd_script ( agent = "wolf" , script = "expression_attack11" , category = ACMD_EXPRESSION , low_priority ) ]
46
- unsafe fn wolf_attack_11_expression ( fighter : & mut L2CAgentBase ) {
45
+
46
+ unsafe extern "C" fn wolf_attack_11_expression ( fighter : & mut L2CAgentBase ) {
47
47
let lua_state = fighter. lua_state_agent ;
48
48
let boma = fighter. boma ( ) ;
49
49
if is_excute ( fighter) {
@@ -59,8 +59,8 @@ unsafe fn wolf_attack_11_expression(fighter: &mut L2CAgentBase) {
59
59
}
60
60
}
61
61
62
- # [ acmd_script ( agent = "wolf" , script = "game_attack12" , category = ACMD_GAME , low_priority ) ]
63
- unsafe fn wolf_attack_12_game ( fighter : & mut L2CAgentBase ) {
62
+
63
+ unsafe extern "C" fn wolf_attack_12_game ( fighter : & mut L2CAgentBase ) {
64
64
let lua_state = fighter. lua_state_agent ;
65
65
frame ( lua_state, 4.0 ) ;
66
66
let boma = fighter. boma ( ) ;
@@ -81,8 +81,8 @@ unsafe fn wolf_attack_12_game(fighter: &mut L2CAgentBase) {
81
81
}
82
82
83
83
84
- # [ acmd_script ( agent = "wolf" , script = "game_attack13" , category = ACMD_GAME , low_priority ) ]
85
- unsafe fn wolf_attack_13_game ( fighter : & mut L2CAgentBase ) {
84
+
85
+ unsafe extern "C" fn wolf_attack_13_game ( fighter : & mut L2CAgentBase ) {
86
86
let lua_state = fighter. lua_state_agent ;
87
87
let boma = fighter. boma ( ) ;
88
88
frame ( lua_state, 4.0 ) ;
@@ -103,8 +103,8 @@ unsafe fn wolf_attack_13_game(fighter: &mut L2CAgentBase) {
103
103
}
104
104
}
105
105
106
- # [ acmd_script ( agent = "wolf" , script = "expression_attack13" , category = ACMD_EXPRESSION , low_priority ) ]
107
- unsafe fn wolf_attack_13_expression ( fighter : & mut L2CAgentBase ) {
106
+
107
+ unsafe extern "C" fn wolf_attack_13_expression ( fighter : & mut L2CAgentBase ) {
108
108
let lua_state = fighter. lua_state_agent ;
109
109
let boma = fighter. boma ( ) ;
110
110
if is_excute ( fighter) {
@@ -121,8 +121,8 @@ unsafe fn wolf_attack_13_expression(fighter: &mut L2CAgentBase) {
121
121
}
122
122
}
123
123
124
- # [ acmd_script ( agent = "wolf" , script = "game_attackdash" , category = ACMD_GAME , low_priority ) ]
125
- unsafe fn wolf_attack_dash_game ( fighter : & mut L2CAgentBase ) {
124
+
125
+ unsafe extern "C" fn wolf_attack_dash_game ( fighter : & mut L2CAgentBase ) {
126
126
let lua_state = fighter. lua_state_agent ;
127
127
let boma = fighter. boma ( ) ;
128
128
frame ( lua_state, 11.0 ) ;
@@ -145,15 +145,17 @@ unsafe fn wolf_attack_dash_game(fighter: &mut L2CAgentBase) {
145
145
}
146
146
147
147
148
+
149
+
150
+
148
151
pub fn install ( ) {
149
- install_acmd_scripts ! (
150
- wolf_attack_11_game ,
151
- effect_attack11,
152
- wolf_attack_11_expression ,
153
- wolf_attack_12_game ,
154
- wolf_attack_13_game ,
155
- wolf_attack_13_expression ,
156
- wolf_attack_dash_game ,
157
- ) ;
152
+ smashline :: Agent :: new ( "wolf" )
153
+ . acmd ( "game_attack11" , wolf_attack_11_game )
154
+ . acmd ( " effect_attack11" , effect_attack11 )
155
+ . acmd ( "expression_attack11" , wolf_attack_11_expression )
156
+ . acmd ( "game_attack12" , wolf_attack_12_game )
157
+ . acmd ( "game_attack13" , wolf_attack_13_game )
158
+ . acmd ( "expression_attack13" , wolf_attack_13_expression )
159
+ . acmd ( "game_attackdash" , wolf_attack_dash_game )
160
+ . install ( ) ;
158
161
}
159
-
0 commit comments