2026-03-25 23:32:36 +01:00
|
|
|
function switchew_use() /* entry=11 class_id=0x0061 slot=0x01 */
|
|
|
|
|
{
|
2026-03-26 00:37:17 +01:00
|
|
|
set_info(0x0207, *(arg_06));
|
|
|
|
|
process_exclude();
|
2026-03-26 22:10:48 +01:00
|
|
|
spawn SWITCH.slot_20(arg_06);
|
2026-03-26 00:37:17 +01:00
|
|
|
if (Item.getMapArray(arg_06) == 0) {
|
|
|
|
|
if (Item.getFrame(arg_06) == 0) {
|
2026-03-26 22:10:48 +01:00
|
|
|
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
2026-03-26 00:37:17 +01:00
|
|
|
suspend;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else {
|
2026-03-26 22:10:48 +01:00
|
|
|
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
2026-03-26 00:37:17 +01:00
|
|
|
suspend;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return;
|
2026-03-25 23:32:36 +01:00
|
|
|
}
|