Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -21,7 +21,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
baseLink = 0;
|
||||
newLink = 0;
|
||||
searchtype = 0;
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
aitem = ref;
|
||||
if (phase != 0x00FE) goto block_0194;
|
||||
|
|
@ -78,7 +78,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0) goto block_029D;
|
||||
|
||||
block_0270:
|
||||
spawn class_0A18_slot_2A(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_2A(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
|
||||
block_029D:
|
||||
|
|
@ -88,7 +88,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0x07FE) goto block_02DC;
|
||||
|
||||
block_02AC:
|
||||
spawn class_0A18_slot_2B(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_2B(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
goto block_0314;
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0) goto block_0314;
|
||||
|
||||
block_02E7:
|
||||
spawn class_0A18_slot_29(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_29(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
|
||||
block_0314:
|
||||
|
|
@ -109,7 +109,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0) goto block_035F;
|
||||
|
||||
block_032E:
|
||||
spawn class_0A18_slot_25(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_25(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
baseLink = process_result;
|
||||
|
|
@ -121,7 +121,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0x07FF) goto block_03A2;
|
||||
|
||||
block_036E:
|
||||
spawn class_0A18_slot_24(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_24(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
baseLink = process_result;
|
||||
|
|
@ -131,7 +131,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0) goto block_03DE;
|
||||
|
||||
block_03AD:
|
||||
spawn class_0A18_slot_23(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_23(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
baseLink = process_result;
|
||||
|
|
@ -146,7 +146,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0) goto block_0429;
|
||||
|
||||
block_03F8:
|
||||
spawn class_0A18_slot_28(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_28(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
baseLink = process_result;
|
||||
|
|
@ -158,7 +158,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0x07FF) goto block_046C;
|
||||
|
||||
block_0438:
|
||||
spawn class_0A18_slot_27(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_27(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
baseLink = process_result;
|
||||
|
|
@ -168,7 +168,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if (searchtype != 0) goto block_04A8;
|
||||
|
||||
block_0477:
|
||||
spawn class_0A18_slot_26(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_26(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
baseLink = process_result;
|
||||
|
|
@ -185,48 +185,30 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
if 1 goto block_05E7;
|
||||
|
||||
block_04D2:
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF4 string_bytes=0x6 loop_type=0x2 */
|
||||
|
||||
block_04EE:
|
||||
if condition goto block_057E;
|
||||
|
||||
block_04F1:
|
||||
if (Item.getQLo(item) != baseLink) goto block_057A;
|
||||
|
||||
block_0503:
|
||||
mapNum = Item.getMapArray(item);
|
||||
cmdphase = 0;
|
||||
if (mapNum & 8) goto block_052A;
|
||||
|
||||
block_0523:
|
||||
cmdphase = 1;
|
||||
|
||||
block_052A:
|
||||
if (newphase != cmdphase) goto block_057A;
|
||||
|
||||
block_0535:
|
||||
if (mapNum & 16) goto block_056A;
|
||||
|
||||
block_0540:
|
||||
spawn class_0A18_slot_21(pid, item, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
goto block_057A;
|
||||
|
||||
block_056A:
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xFE target=[BP-02h] */
|
||||
lowPriorityTriggers = item;
|
||||
|
||||
block_057A:
|
||||
/* loopnext */
|
||||
goto block_04EE;
|
||||
for item in nearby_items(shape=0x04B1, origin=aitem) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
mapNum = Item.getMapArray(item);
|
||||
cmdphase = 0;
|
||||
if (!(mapNum & 8)) {
|
||||
cmdphase = 1;
|
||||
}
|
||||
if (newphase == cmdphase) {
|
||||
if (!(mapNum & 16)) {
|
||||
spawn TRIGGER.slot_21(pid, item, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
}
|
||||
else {
|
||||
/* create_list element_size=0x2 count=0x1 */
|
||||
/* append_list */
|
||||
/* free_local_list bp_offset=0xFE target=[BP-02h] */
|
||||
lowPriorityTriggers = item;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
||||
block_057E:
|
||||
|
||||
|
|
@ -234,7 +216,7 @@ function trigger_slot_20() /* entry=394 class_id=0x0A18 slot=0x20 */
|
|||
foreach_list item -> block_05CC;
|
||||
|
||||
block_058E:
|
||||
spawn class_0A18_slot_21(pid, item, arg_06);
|
||||
spawn TRIGGER.slot_21(pid, item, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
|
|
|
|||
|
|
@ -27,35 +27,35 @@ function trigger_slot_21() /* entry=394 class_id=0x0A18 slot=0x21 */
|
|||
if (!Item.isCrusTypeNPC(searchtype)) {
|
||||
if (baseLink == 0x00FF) {
|
||||
if (searchtype == 0) {
|
||||
spawn class_0A18_slot_2A(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_2A(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (searchtype == 0x07FE) {
|
||||
spawn class_0A18_slot_2B(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_2B(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
}
|
||||
else if (searchtype == 0) {
|
||||
spawn class_0A18_slot_29(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_29(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
else if (baseLink == 0x00FF) {
|
||||
if (searchtype == 0) {
|
||||
spawn class_0A18_slot_25(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_25(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
}
|
||||
}
|
||||
else if (searchtype == 0x07FF) {
|
||||
spawn class_0A18_slot_24(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_24(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
}
|
||||
else if (searchtype == 0) {
|
||||
spawn class_0A18_slot_23(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_23(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
|
|
@ -63,20 +63,20 @@ function trigger_slot_21() /* entry=394 class_id=0x0A18 slot=0x21 */
|
|||
}
|
||||
else if (baseLink == 0x00FF) {
|
||||
if (searchtype == 0) {
|
||||
spawn class_0A18_slot_28(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_28(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
}
|
||||
}
|
||||
else if (searchtype == 0x07FF) {
|
||||
spawn class_0A18_slot_27(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_27(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
}
|
||||
else if (searchtype == 0) {
|
||||
spawn class_0A18_slot_26(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
spawn TRIGGER.slot_26(pid, searchtype, baseLink, mapNum, npcNum, qHi, ref, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
newLink = process_result;
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ function trigger_slot_22() /* entry=394 class_id=0x0A18 slot=0x22 */
|
|||
door = ref;
|
||||
while (!(1)) {
|
||||
if ((Item.getStatus(door) & 0x1000) == 0) {
|
||||
spawn class_0A06_slot_21(pid, num, door);
|
||||
spawn DOOR.slot_21(pid, num, door);
|
||||
suspend;
|
||||
/* bit_not */
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,32 +24,17 @@ function trigger_slot_23() /* entry=394 class_id=0x0A18 slot=0x23 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -57,29 +42,21 @@ function trigger_slot_23() /* entry=394 class_id=0x0A18 slot=0x23 */
|
|||
scmd = (qHi & 7);
|
||||
if (scmd == 0) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
b = Item.getMapArray(item);
|
||||
b = (((a & 0x00E0) * 8) + b);
|
||||
class_0A0C_slot_30(d, c, b, item);
|
||||
FREE.slot_30(d, c, b, item);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
if (ref == item) {
|
||||
|
|
@ -103,26 +80,17 @@ function trigger_slot_23() /* entry=394 class_id=0x0A18 slot=0x23 */
|
|||
}
|
||||
else if (scmd == 2) {
|
||||
a = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
if (ref == item) {
|
||||
a = (qHi / 8);
|
||||
spawn class_0A18_slot_22(a, item, arg_06);
|
||||
spawn TRIGGER.slot_22(a, item, arg_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
|
|
@ -138,11 +106,7 @@ function trigger_slot_23() /* entry=394 class_id=0x0A18 slot=0x23 */
|
|||
}
|
||||
else if (scmd == 6) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
|
|
|
|||
|
|
@ -25,32 +25,17 @@ function trigger_slot_24() /* entry=394 class_id=0x0A18 slot=0x24 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -58,29 +43,21 @@ function trigger_slot_24() /* entry=394 class_id=0x0A18 slot=0x24 */
|
|||
scmd = (qHi & 7);
|
||||
if (scmd == 0) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
b = Item.getMapArray(item);
|
||||
b = (((a & 0x00E0) * 8) + b);
|
||||
class_0A0C_slot_30(d, c, b, item);
|
||||
FREE.slot_30(d, c, b, item);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(family=1, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
if (ref == item) {
|
||||
|
|
@ -104,11 +81,7 @@ function trigger_slot_24() /* entry=394 class_id=0x0A18 slot=0x24 */
|
|||
}
|
||||
else if (scmd == 2) {
|
||||
a = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(family=1, origin=aitem) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -120,16 +93,11 @@ function trigger_slot_24() /* entry=394 class_id=0x0A18 slot=0x24 */
|
|||
else {
|
||||
distance = global[0x0040];
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
if (ref == item) {
|
||||
a = (qHi / 8);
|
||||
spawn class_0A18_slot_22(a, item, arg_06);
|
||||
spawn TRIGGER.slot_22(a, item, arg_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
|
|
@ -145,11 +113,7 @@ function trigger_slot_24() /* entry=394 class_id=0x0A18 slot=0x24 */
|
|||
}
|
||||
else if (scmd == 6) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
|
|
|
|||
|
|
@ -24,32 +24,17 @@ function trigger_slot_25() /* entry=394 class_id=0x0A18 slot=0x25 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -57,27 +42,19 @@ function trigger_slot_25() /* entry=394 class_id=0x0A18 slot=0x25 */
|
|||
scmd = (qHi & 7);
|
||||
if (scmd == 0) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
b = Item.getMapArray(item);
|
||||
b = (((a & 0x00E0) * 8) + b);
|
||||
class_0A0C_slot_30(d, c, b, item);
|
||||
FREE.slot_30(d, c, b, item);
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (ref == item) {
|
||||
if (d == 31) {
|
||||
|
|
@ -99,25 +76,16 @@ function trigger_slot_25() /* entry=394 class_id=0x0A18 slot=0x25 */
|
|||
}
|
||||
else if (scmd == 2) {
|
||||
a = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (ref == item) {
|
||||
a = (qHi / 8);
|
||||
spawn class_0A18_slot_22(a, item, arg_06);
|
||||
spawn TRIGGER.slot_22(a, item, arg_06);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -132,11 +100,7 @@ function trigger_slot_25() /* entry=394 class_id=0x0A18 slot=0x25 */
|
|||
}
|
||||
else if (scmd == 6) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
|
|
|
|||
|
|
@ -24,32 +24,17 @@ function trigger_slot_26() /* entry=394 class_id=0x0A18 slot=0x26 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -57,29 +42,21 @@ function trigger_slot_26() /* entry=394 class_id=0x0A18 slot=0x26 */
|
|||
scmd = (qHi & 7);
|
||||
if (scmd == 0) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
b = Item.getMapArray(item);
|
||||
b = (((a & 0x00E0) * 8) + b);
|
||||
class_0A0C_slot_30(d, c, b, item);
|
||||
FREE.slot_30(d, c, b, item);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
if (d == 31) {
|
||||
|
|
@ -101,25 +78,16 @@ function trigger_slot_26() /* entry=394 class_id=0x0A18 slot=0x26 */
|
|||
}
|
||||
else if (scmd == 2) {
|
||||
a = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = (qHi / 8);
|
||||
spawn class_0A18_slot_22(a, item, arg_06);
|
||||
spawn TRIGGER.slot_22(a, item, arg_06);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -134,11 +102,7 @@ function trigger_slot_26() /* entry=394 class_id=0x0A18 slot=0x26 */
|
|||
}
|
||||
else if (scmd == 6) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
|
|
|
|||
|
|
@ -25,32 +25,17 @@ function trigger_slot_27() /* entry=394 class_id=0x0A18 slot=0x27 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -58,29 +43,21 @@ function trigger_slot_27() /* entry=394 class_id=0x0A18 slot=0x27 */
|
|||
scmd = (qHi & 7);
|
||||
if (scmd == 0) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
b = Item.getMapArray(item);
|
||||
b = (((a & 0x00E0) * 8) + b);
|
||||
class_0A0C_slot_30(d, c, b, item);
|
||||
FREE.slot_30(d, c, b, item);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(family=1, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
if (d == 31) {
|
||||
|
|
@ -102,11 +79,7 @@ function trigger_slot_27() /* entry=394 class_id=0x0A18 slot=0x27 */
|
|||
}
|
||||
else if (scmd == 2) {
|
||||
a = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(family=1, origin=aitem) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -118,15 +91,10 @@ function trigger_slot_27() /* entry=394 class_id=0x0A18 slot=0x27 */
|
|||
else {
|
||||
distance = global[0x0040];
|
||||
}
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(family=1, origin=aitem) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = (qHi / 8);
|
||||
spawn class_0A18_slot_22(a, item, arg_06);
|
||||
spawn TRIGGER.slot_22(a, item, arg_06);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
@ -141,11 +109,7 @@ function trigger_slot_27() /* entry=394 class_id=0x0A18 slot=0x27 */
|
|||
}
|
||||
else if (scmd == 6) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (Item.getQLo(item) == baseLink) {
|
||||
a = Item.getNPCNum(item);
|
||||
|
|
|
|||
|
|
@ -24,32 +24,17 @@ function trigger_slot_28() /* entry=394 class_id=0x0A18 slot=0x28 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -57,27 +42,19 @@ function trigger_slot_28() /* entry=394 class_id=0x0A18 slot=0x28 */
|
|||
scmd = (qHi & 7);
|
||||
if (scmd == 0) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
b = Item.getMapArray(item);
|
||||
b = (((a & 0x00E0) * 8) + b);
|
||||
class_0A0C_slot_30(d, c, b, item);
|
||||
FREE.slot_30(d, c, b, item);
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
if (d == 31) {
|
||||
suspend;
|
||||
|
|
@ -97,24 +74,15 @@ function trigger_slot_28() /* entry=394 class_id=0x0A18 slot=0x28 */
|
|||
}
|
||||
else if (scmd == 2) {
|
||||
a = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=searchtype, origin=aitem) */
|
||||
while (!condition) {
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for item in nearby_items(shape=searchtype, origin=aitem) {
|
||||
a = (qHi / 8);
|
||||
spawn class_0A18_slot_22(a, item, arg_06);
|
||||
spawn TRIGGER.slot_22(a, item, arg_06);
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
@ -128,11 +96,7 @@ function trigger_slot_28() /* entry=394 class_id=0x0A18 slot=0x28 */
|
|||
}
|
||||
else if (scmd == 6) {
|
||||
d = (qHi / 8);
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF2 string_bytes=0x6 loop_type=0x2 */
|
||||
/* loop_selector item in nearby_items(shape=0x0476, origin=aitem) */
|
||||
while (!condition) {
|
||||
a = Item.getNPCNum(item);
|
||||
c = (a & 15);
|
||||
|
|
|
|||
|
|
@ -28,26 +28,21 @@ function trigger_slot_29() /* entry=394 class_id=0x0A18 slot=0x29 */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
a = (qHi / 16);
|
||||
b = (qHi & 15);
|
||||
if (a == 0) {
|
||||
e = Actor.GetNPCDataField0x4_0DD(npc);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
f = Actor.GetNPCDataField0x4_0DD(npc);
|
||||
}
|
||||
else {
|
||||
g = Actor.GetNPCDataField0x4_0DD(npc);
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (Actor.isDead(npc) == 1) {
|
||||
return;
|
||||
|
|
@ -57,7 +52,7 @@ function trigger_slot_29() /* entry=394 class_id=0x0A18 slot=0x29 */
|
|||
if (Actor.isDead(npc) == 0) {
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -70,23 +65,13 @@ function trigger_slot_29() /* entry=394 class_id=0x0A18 slot=0x29 */
|
|||
return;
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
|
|
@ -95,12 +80,7 @@ function trigger_slot_29() /* entry=394 class_id=0x0A18 slot=0x29 */
|
|||
scmd = (qHi & 7);
|
||||
a = (qHi / 8);
|
||||
if (scmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
if (a == 1) {
|
||||
}
|
||||
|
|
@ -113,54 +93,34 @@ function trigger_slot_29() /* entry=394 class_id=0x0A18 slot=0x29 */
|
|||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 4) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
k = a;
|
||||
}
|
||||
|
|
@ -168,14 +128,9 @@ function trigger_slot_29() /* entry=394 class_id=0x0A18 slot=0x29 */
|
|||
}
|
||||
}
|
||||
else if (scmd == 5) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A11_equip(a, npc);
|
||||
spawn NPC.equip(a, npc);
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,22 +23,17 @@ function trigger_slot_2A() /* entry=394 class_id=0x0A18 slot=0x2A */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
a = (qHi / 16);
|
||||
b = (qHi & 15);
|
||||
if (a == 0) {
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (Actor.isDead(npc) == 1) {
|
||||
return;
|
||||
|
|
@ -48,7 +43,7 @@ function trigger_slot_2A() /* entry=394 class_id=0x0A18 slot=0x2A */
|
|||
if (Actor.isDead(npc) == 0) {
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -58,23 +53,13 @@ function trigger_slot_2A() /* entry=394 class_id=0x0A18 slot=0x2A */
|
|||
return;
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
|
|
@ -83,12 +68,7 @@ function trigger_slot_2A() /* entry=394 class_id=0x0A18 slot=0x2A */
|
|||
scmd = (qHi & 7);
|
||||
a = (qHi / 8);
|
||||
if (scmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
if (a == 1) {
|
||||
}
|
||||
else if (a == 2) {
|
||||
|
|
@ -99,60 +79,35 @@ function trigger_slot_2A() /* entry=394 class_id=0x0A18 slot=0x2A */
|
|||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 4) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
k = a;
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
else if (scmd == 5) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
spawn class_0A11_equip(a, npc);
|
||||
for npc in nearby_items(shape=searchtype, origin=aitem) {
|
||||
spawn NPC.equip(a, npc);
|
||||
/* loopnext */
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,24 +23,19 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
aitem = ref;
|
||||
cmd = (mapNum & 3);
|
||||
if (cmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
a = (qHi / 16);
|
||||
b = (qHi & 15);
|
||||
if (a == 0) {
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
suspend;
|
||||
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
if (Actor.isDead(npc) == 1) {
|
||||
return;
|
||||
|
|
@ -50,7 +45,7 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
if (Actor.isDead(npc) == 0) {
|
||||
suspend;
|
||||
}
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
counter = (1 + counter);
|
||||
}
|
||||
|
|
@ -62,23 +57,13 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
return;
|
||||
}
|
||||
else if (cmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (cmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
|
|
@ -87,12 +72,7 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
scmd = (qHi & 7);
|
||||
a = (qHi / 8);
|
||||
if (scmd == 0) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
if (a == 1) {
|
||||
|
|
@ -107,15 +87,10 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
}
|
||||
}
|
||||
else if (scmd == 1) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
@ -123,15 +98,10 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
}
|
||||
}
|
||||
else if (scmd == 2) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
@ -139,15 +109,10 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
}
|
||||
}
|
||||
else if (scmd == 3) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
|
||||
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
}
|
||||
|
|
@ -155,12 +120,7 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
}
|
||||
}
|
||||
else if (scmd == 4) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
k = a;
|
||||
|
|
@ -170,15 +130,10 @@ function trigger_slot_2B() /* entry=394 class_id=0x0A18 slot=0x2B */
|
|||
}
|
||||
}
|
||||
else if (scmd == 5) {
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x3A */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xF0 string_bytes=0x6 loop_type=0x2 */
|
||||
while (!condition) {
|
||||
for npc in nearby_items(family=6, origin=aitem) {
|
||||
if (!Item.isCrusTypeNPC(Item.getShape(npc))) {
|
||||
if (Actor.GetNPCDataField0x63_00B(npc) == baseLink) {
|
||||
spawn class_0A11_equip(a, npc);
|
||||
spawn NPC.equip(a, npc);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue