@@ -4186,6 +4186,38 @@ void builtin_remotecmd(ScriptState *st)
4186
4186
clif_remote_command (sd, msg);
4187
4187
}
4188
4188
4189
+ static
4190
+ void builtin_sendcollision (ScriptState *st)
4191
+ {
4192
+ dumb_ptr<map_session_data> sd = script_rid2sd (st);
4193
+ MapName map_name = stringish<MapName>(ZString (conv_str (st, &AARG (0 ))));
4194
+ int mask = conv_num (st, &AARG (1 ));
4195
+ short x1, y1 , x2, y2;
4196
+ x1 = x2 = conv_num (st, &AARG (2 ));
4197
+ y1 = y2 = conv_num (st, &AARG (3 ));
4198
+
4199
+ if (HARG (5 ))
4200
+ {
4201
+ x2 = conv_num (st, &AARG (4 ));
4202
+ y2 = conv_num (st, &AARG (5 ));
4203
+ if (HARG (6 ))
4204
+ {
4205
+ CharName player = stringish<CharName>(ZString (conv_str (st, &AARG (6 ))));
4206
+ sd = map_nick2sd (player);
4207
+ }
4208
+ }
4209
+
4210
+ else if (HARG (4 ))
4211
+ {
4212
+ CharName player = stringish<CharName>(ZString (conv_str (st, &AARG (4 ))));
4213
+ sd = map_nick2sd (player);
4214
+ }
4215
+
4216
+ if (sd == nullptr )
4217
+ return ;
4218
+ clif_update_collision (sd, x1, y1 , x2, y2, map_name, mask);
4219
+ }
4220
+
4189
4221
static
4190
4222
void builtin_music (ScriptState *st)
4191
4223
{
@@ -4818,6 +4850,7 @@ BuiltinFunction builtin_functions[] =
4818
4850
BUILTIN (title, " s" _s, ' \0 ' ),
4819
4851
BUILTIN (smsg, " e??" _s, ' \0 ' ),
4820
4852
BUILTIN (remotecmd, " s?" _s, ' \0 ' ),
4853
+ BUILTIN (sendcollision, " Mixy???" _s, ' \0 ' ),
4821
4854
BUILTIN (music, " s" _s, ' \0 ' ),
4822
4855
BUILTIN (mapmask, " i?" _s, ' \0 ' ),
4823
4856
BUILTIN (getmask, " " _s, ' i' ),
0 commit comments