Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -36,7 +36,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else if (event == 1) {
|
||||
/* global_address global_id=0x3C */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -44,13 +44,13 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
cy = CameraProcess.getCameraY();
|
||||
ex = Item.getX(arg_06);
|
||||
ey = Item.getY(arg_06);
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
return;
|
||||
|
|
@ -58,21 +58,21 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else if (event == 2) {
|
||||
/* global_address global_id=0x3C */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_3D(pid, Item.getY(arg_06), Item.getX(arg_06), 0x00000000);
|
||||
spawn FREE.slot_3D(pid, Item.getY(arg_06), Item.getX(arg_06), 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else if (event == 3) {
|
||||
spawn class_0A0C_slot_3E(pid, 0x00000000);
|
||||
spawn FREE.slot_3E(pid, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
@ -88,35 +88,26 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else if (event == 8) {
|
||||
counter = Item.getQHi(arg_06);
|
||||
if (counter == 0) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
counter2 = Item.getQLo(arg_06);
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 9) {
|
||||
counter = Item.getQLo(arg_06);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(family=1, origin=arg_06) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 10) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(item)) {
|
||||
if (Item.getFrame(item) == 0) {
|
||||
source = item;
|
||||
|
|
@ -124,12 +115,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
}
|
||||
/* loopnext */
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=NUMBERS, origin=arg_06) {
|
||||
if (Item.getQLo(arg_06) == Item.getQLo(item)) {
|
||||
if (Item.getFrame(item) == 1) {
|
||||
dest = item;
|
||||
|
|
@ -159,7 +145,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
cy = CameraProcess.getCameraY();
|
||||
/* global_address global_id=0x3C */
|
||||
while (!AudioProcess.isSFXPlayingForObject(54, arg_06)) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -170,7 +156,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
if (Actor.isDead()) {
|
||||
/* global_address global_id=0x3C */
|
||||
while (!Actor.isBusy()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -183,16 +169,16 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
if (Actor.isDead((global[0x0029] == 1)) != 1) {
|
||||
return;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 3, 0);
|
||||
spawn NPC.slot_22(pid, 3, 0);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 4, 14);
|
||||
spawn NPC.slot_22(pid, 4, 14);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A11_slot_22(pid, 3, 12);
|
||||
spawn NPC.slot_22(pid, 3, 12);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -202,26 +188,21 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
/* loop current_var=0xF8 string_bytes=0x1 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(door) == 5) {
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF8 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for door in nearby_items(shape=0x04D9, origin=arg_06) {
|
||||
n = door;
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
while (!(1)) {
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -230,9 +211,9 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
if ((op == 1) || (opp != 1)) {
|
||||
return;
|
||||
}
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 0x012C, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 0x012C, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
|
|
@ -241,33 +222,28 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
time = Item.getNpcNum(arg_06);
|
||||
while (!(1)) {
|
||||
counter = 0;
|
||||
class_0A0C_slot_29((Item.getQHi(arg_06) != 0), *(arg_06), global[0x003C]);
|
||||
FREE.slot_29((Item.getQHi(arg_06) != 0), *(arg_06), global[0x003C]);
|
||||
if (retval <= 50) {
|
||||
return;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=6, origin=global[0x003C]) {
|
||||
if (!Actor.isNPC(item)) {
|
||||
counter = (1 + counter);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
if (counter > 4) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
@ -277,33 +253,28 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
time = Item.getNpcNum(arg_06);
|
||||
while (!(1)) {
|
||||
counter = 0;
|
||||
class_0A0C_slot_29((Item.getQHi(arg_06) != 0), *(arg_06), global[0x003C]);
|
||||
FREE.slot_29((Item.getQHi(arg_06) != 0), *(arg_06), global[0x003C]);
|
||||
if ((retval > 50) || (Item.isOnScreen(arg_06) == 1)) {
|
||||
return;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=6, origin=global[0x003C]) {
|
||||
if (item >= 0x00FF) {
|
||||
counter = (1 + counter);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
if (counter > 4) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
@ -316,13 +287,13 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
if (Item.getQHi(arg_06) == 1) {
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, (time * 3), 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, (time * 3), 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, (time * 3), 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, (time * 3), 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -330,11 +301,11 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else if (Item.getQHi(arg_06) <= 1) {
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -342,9 +313,9 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else {
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -358,17 +329,17 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
counter2 = Item.getQHi(arg_06);
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -381,11 +352,11 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
if (!Item.getQHi(arg_06)) {
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -393,9 +364,9 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else {
|
||||
counter = 1;
|
||||
while (counter > counter2) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -409,7 +380,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
/* loop current_var=0xF8 string_bytes=0x1 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(door) == 100) {
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
|
|
@ -417,39 +388,28 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 51) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=GRATE_FLOOR_GRAY, origin=arg_06) {
|
||||
dir = Item.getQHi(item);
|
||||
floor = item;
|
||||
/* loopnext */
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in selector_0x42(arg0=0x01C4, arg1=0x0186, arg2=(10 * 32), origin=floor) {
|
||||
post1 = item;
|
||||
/* loopnext */
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in selector_0x42(arg0=0x01C5, arg1=0x0184, arg2=(10 * 32), origin=floor) {
|
||||
post2 = item;
|
||||
/* loopnext */
|
||||
}
|
||||
if (!(post1 && post2)) {
|
||||
/* global_address global_id=0x3C */
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x3C */
|
||||
if (!dir) {
|
||||
counter = 1;
|
||||
while (counter > 4) {
|
||||
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -457,28 +417,26 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else {
|
||||
counter = 0;
|
||||
while (counter > 3) {
|
||||
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 30, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x42 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in selector_0x42(arg0=0x0193, arg1=0x01C7, arg2=(10 * 32), origin=floor) */
|
||||
while (!condition) {
|
||||
door = item;
|
||||
spawn class_0A06_slot_20(pid, door);
|
||||
spawn DOOR.slot_20(pid, door);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
@ -486,13 +444,8 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
time = Item.getNpcNum(arg_06);
|
||||
counter2 = Item.getQHi(arg_06);
|
||||
while (!(1)) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xED string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
for n in nearby_items(family=6, origin=arg_06) {
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -501,25 +454,15 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 53) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xED string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
for n in nearby_items(shape=wallgun_shape_04c8, origin=arg_06) {
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 54) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xED string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for n in nearby_items(shape=wallgun_shape_04c8, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
|
|
@ -531,13 +474,13 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
time = Item.getNpcNum(arg_06);
|
||||
while (!(1)) {
|
||||
counter = 0;
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
if (Item.getQHi(arg_06) == 0) {
|
||||
return;
|
||||
|
|
@ -546,12 +489,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 75) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=6, origin=arg_06) {
|
||||
if (Item.getQLo(item) == Item.getQLo(arg_06)) {
|
||||
suspend;
|
||||
}
|
||||
|
|
@ -563,40 +501,35 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
time = (Item.getNPCNum(arg_06) * 5);
|
||||
while (!(1)) {
|
||||
counter = 0;
|
||||
class_0A0C_slot_29((Item.getQHi(arg_06) != 0), *(arg_06), global[0x003C]);
|
||||
FREE.slot_29((Item.getQHi(arg_06) != 0), *(arg_06), global[0x003C]);
|
||||
if (retval <= 50) {
|
||||
return;
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=6, origin=global[0x003C]) {
|
||||
if (!Actor.isNPC(item)) {
|
||||
counter = (1 + counter);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
if (counter > 4) {
|
||||
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, time, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, time, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 120, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 88) {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
|
|
@ -606,7 +539,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
else if (event == 97) {
|
||||
/* global_address global_id=0x3C */
|
||||
while (Kernel.getCurrentKeyDown()) {
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* global_address global_id=0x3C */
|
||||
|
|
@ -615,29 +548,19 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 98) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=PLACEHOLDER_CUBE_RED_BLACK, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 99) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=PLACEHOLDER_CUBE_RED_BLACK, origin=arg_06) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 100) {
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
suspend;
|
||||
return;
|
||||
|
|
@ -647,9 +570,9 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 20, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 20, 0x00000000);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_26(pid, "3h", 0x00000000);
|
||||
spawn FREE.slot_26(pid, "3h", 0x00000000);
|
||||
/* free_stack_string value_u8=0x0 target=[SP+00h] */
|
||||
suspend;
|
||||
/* pop_global global_id=0x22 size=0x1 */
|
||||
|
|
@ -662,14 +585,14 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
qHi = (1 + qHi);
|
||||
}
|
||||
else {
|
||||
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
|
||||
suspend;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (event == 0x00D4) {
|
||||
/* pop_global global_id=0x2C size=0x1 */
|
||||
spawn class_0A0C_slot_32(1, pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(1, pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
|
|
@ -677,7 +600,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 0x00D5) {
|
||||
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
||||
suspend;
|
||||
/* str_to_ptr */
|
||||
/* free_stack_string value_u8=0x4 target=[SP+04h] */
|
||||
|
|
@ -692,7 +615,7 @@ function event_equip() /* entry=190 class_id=0x0361 slot=0x0A */
|
|||
return;
|
||||
}
|
||||
else if (event == 0x00FA) {
|
||||
spawn class_0A20_slot_20(pid, flicMan);
|
||||
spawn FLICTEST.slot_20(pid, flicMan);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue