Usecode pseudocode

This commit is contained in:
MaddoScientisto 2026-03-26 00:37:17 +01:00
commit c12bb39437
1362 changed files with 71072 additions and 38056 deletions

View file

@ -5,15 +5,10 @@ function rollb_ew_hit() /* entry=331 class_id=0x058B slot=0x05 */
ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */
entry:
set_info(0x020B, *(arg_06));
process_exclude();
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_0C49;
block_0C3B:
set_info(0x020B, *(arg_06));
process_exclude();
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_058B_slot_21(arg_06);
block_0C49:
return;
}
return;
}

View file

@ -5,41 +5,26 @@ function rollb_ew_gotHit() /* entry=331 class_id=0x058B slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_0B63;
block_0B52:
set_info(0x020C, *(arg_06));
process_exclude();
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_058B_slot_21(arg_06);
goto block_0BE8;
block_0B63:
return;
}
else {
spawn class_0A1E_slot_27(pid, 100, vel, ref, arg_06);
suspend;
/* dword_to_word */
if (!process_result) goto block_0BC9;
block_0B93:
class_0A0C_slot_20(1);
if retval goto block_0BB3;
block_0BA3:
goto block_0BC0;
block_0BB3:
block_0BC0:
goto block_0BE8;
block_0BC6:
goto block_0BE8;
block_0BC9:
spawn class_058B_slot_20(pid, arg_06);
suspend;
block_0BE8:
return;
if (process_result) {
class_0A0C_slot_20(1);
if (!retval) {
}
return;
}
else {
spawn class_058B_slot_20(pid, arg_06);
suspend;
}
}
return;
}

View file

@ -1,32 +1,18 @@
function rollb_ew_equip() /* entry=331 class_id=0x058B slot=0x0A */
{
entry:
set_info(0x0211, *(arg_06));
process_exclude();
if (arg_0A != 1) goto block_0181;
block_0157:
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_017E;
block_0170:
spawn class_058B_slot_21(arg_06);
block_017E:
goto block_01C1;
block_0181:
if (arg_0A != 2) goto block_01C1;
block_018C:
if (Item.getStatus(arg_06) & 0x1000) goto block_01BE;
block_019F:
/* bit_not */
block_01BE:
goto block_01C1;
block_01C1:
set_info(0x0211, *(arg_06));
process_exclude();
if (arg_0A == 1) {
if ((Item.getStatus(arg_06) & 0x1000) == 0) {
spawn class_058B_slot_21(arg_06);
}
return;
}
else if (arg_0A == 2) {
if (!(Item.getStatus(arg_06) & 0x1000)) {
/* bit_not */
}
return;
}
return;
}

View file

@ -1,10 +1,8 @@
function rollb_ew_unequip() /* entry=331 class_id=0x058B slot=0x0B */
{
entry:
set_info(0x0212, *(arg_06));
process_exclude();
spawn class_058B_equip(pid, arg_0A, arg_06);
suspend;
return;
set_info(0x0212, *(arg_06));
process_exclude();
spawn class_058B_equip(pid, arg_0A, arg_06);
suspend;
return;
}

View file

@ -17,7 +17,7 @@ function rollb_ew_slot_20() /* entry=331 class_id=0x058B slot=0x20 */
set_info(1, *(arg_06));
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
h = Item.getNpcNum(arg_06);
h = Item.getQHi(arg_06);
if (h & 32) goto block_025C;
block_0233:
@ -64,10 +64,10 @@ function rollb_ew_slot_20() /* entry=331 class_id=0x058B slot=0x20 */
goto block_02A0;
block_02CB:
x = Intrinsic0013(arg_06);
y = Item.legal_create(arg_06);
x = Item.getX(arg_06);
y = Item.getY(arg_06);
z = Item.getZ(arg_06);
qLo = Item.getNpcNum(arg_06);
qLo = Item.getQLo(arg_06);
spawn class_0A1E_slot_2A(pid, arg_06);
suspend;

View file

@ -14,268 +14,155 @@ function rollb_ew_slot_21() /* entry=331 class_id=0x058B slot=0x21 */
zCheck, /* [BP-17h] type=0x69 */
zMax; /* [BP-18h] type=0x62 */
entry:
set_info(0x0001, *(arg_06));
a = Item.getNpcNum(arg_06);
time = (a & 31);
if (time != 0) goto block_0421;
block_041A:
set_info(0x0001, *(arg_06));
a = Item.getQHi(arg_06);
time = (a & 31);
if (time == 0) {
time = 1;
block_0421:
f = Item.getFrame(arg_06);
wp = Intrinsic0013(arg_06);
local_11 = Item.legal_create(arg_06);
local_0F = Item.getZ(arg_06);
if (a & 32) goto block_0792;
block_0480:
if (a < 0x0080) goto block_060F;
block_048C:
if 1 goto block_060C;
block_0494:
f = (f - 1);
if (f < 0) goto block_04B3;
block_04AC:
f = 4;
block_04B3:
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xEB string_bytes=0x1 loop_type=0x6 */
block_04CA:
if condition goto block_04E6;
block_04CD:
total = (1 + total);
/* loopnext */
goto block_04CA;
block_04E6:
wp = (wp + 8);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_0584;
block_0510:
counter = 1;
block_0517:
if (counter <= total) goto block_055F;
block_0522:
cargo = Intrinsic0023();
counter = (1 + counter);
goto block_0517;
block_055F:
spawn class_058B_slot_20(pid, arg_06);
suspend;
goto block_0AAF;
block_0584:
counter = 1;
block_058B:
if (counter <= total) goto block_05D6;
block_0596:
cargo = Intrinsic0023();
counter = (1 + counter);
goto block_058B;
block_05D6:
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
goto block_048C;
block_060C:
goto block_078F;
block_060F:
if 1 goto block_078F;
block_0617:
f = (1 + f);
if (f > 4) goto block_0636;
block_062F:
f = 0;
block_0636:
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xEB string_bytes=0x1 loop_type=0x6 */
block_064D:
if condition goto block_0669;
block_0650:
total = (1 + total);
/* loopnext */
goto block_064D;
block_0669:
wp = (wp - 8);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_0707;
block_0693:
counter = 1;
block_069A:
if (counter <= total) goto block_06E2;
block_06A5:
cargo = Intrinsic0023();
counter = (1 + counter);
goto block_069A;
block_06E2:
spawn class_058B_slot_20(pid, arg_06);
suspend;
goto block_0AAF;
block_0707:
counter = 1;
block_070E:
if (counter <= total) goto block_0759;
block_0719:
cargo = Intrinsic0023();
counter = (1 + counter);
goto block_070E;
block_0759:
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
goto block_060F;
block_078F:
goto block_0AAF;
block_0792:
}
f = Item.getFrame(arg_06);
wp = Item.getX(arg_06);
local_11 = Item.getY(arg_06);
local_0F = Item.getZ(arg_06);
if (!(a & 32)) {
if (a >= 0x0080) {
while (!(1)) {
f = (f - 1);
if (f >= 0) {
f = 4;
}
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xEB string_bytes=0x1 loop_type=0x6 */
while (!condition) {
total = (1 + total);
/* loopnext */
}
wp = (wp + 8);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
counter = 1;
while (counter > total) {
cargo = Item.getEtherealTop();
counter = (1 + counter);
}
spawn class_058B_slot_20(pid, arg_06);
suspend;
return;
}
counter = 1;
while (counter > total) {
cargo = Item.getEtherealTop();
counter = (1 + counter);
}
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
}
}
else {
while (!(1)) {
f = (1 + f);
if (f <= 4) {
f = 0;
}
total = 0;
/* loopscr value_u8=0x24 */
/* loop current_var=0xEB string_bytes=0x1 loop_type=0x6 */
while (!condition) {
total = (1 + total);
/* loopnext */
}
wp = (wp - 8);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
counter = 1;
while (counter > total) {
cargo = Item.getEtherealTop();
counter = (1 + counter);
}
spawn class_058B_slot_20(pid, arg_06);
suspend;
return;
}
counter = 1;
while (counter > total) {
cargo = Item.getEtherealTop();
counter = (1 + counter);
}
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
}
}
return;
}
else {
zCheck = 0;
zMax = local_0F;
if (a < 0x0080) goto block_092F;
block_07AC:
if 1 goto block_092C;
block_07B4:
f = (f - 1);
if (f < 0) goto block_07D3;
block_07CC:
f = 4;
block_07D3:
wp = (wp + 8);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_0848;
block_07FB:
local_0F = (1 + local_0F);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_0848;
block_0823:
spawn class_058B_slot_20(pid, arg_06);
suspend;
goto block_0AAF;
block_0848:
if (local_0F > 1) goto block_0892;
block_0853:
local_0F = (local_0F - 4);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_0885;
block_087B:
local_0F = (local_0F + 4);
block_0885:
zCheck = (zMax - local_0F);
goto block_08F6;
block_0892:
if (zCheck > 12) goto block_08F6;
block_089D:
spawn class_0A0C_slot_32(pid, 6, 0x00000000);
suspend;
spawn class_058B_slot_20(pid, arg_06);
suspend;
goto block_0AAF;
block_08F3:
goto block_08F6;
block_08F6:
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
goto block_07AC;
block_092C:
goto block_0AAF;
block_092F:
if 1 goto block_0AAF;
block_0937:
f = (1 + f);
if (f > 4) goto block_0956;
block_094F:
f = 0;
block_0956:
wp = (wp - 8);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_09CB;
block_097E:
local_0F = (1 + local_0F);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_09CB;
block_09A6:
spawn class_058B_slot_20(pid, arg_06);
suspend;
goto block_0AAF;
block_09CB:
if (local_0F > 1) goto block_0A15;
block_09D6:
local_0F = (local_0F - 4);
if (Item.pop(0, 0, wp, arg_06) != 0) goto block_0A08;
block_09FE:
local_0F = (local_0F + 4);
block_0A08:
zCheck = (zMax - local_0F);
goto block_0A79;
block_0A15:
if (zCheck > 12) goto block_0A79;
block_0A20:
spawn class_0A0C_slot_32(pid, 6, 0x00000000);
suspend;
spawn class_058B_slot_20(pid, arg_06);
suspend;
goto block_0AAF;
block_0A76:
goto block_0A79;
block_0A79:
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
goto block_092F;
block_0AAF:
return;
if (a >= 0x0080) {
while (!(1)) {
f = (f - 1);
if (f >= 0) {
f = 4;
}
wp = (wp + 8);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
local_0F = (1 + local_0F);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
spawn class_058B_slot_20(pid, arg_06);
suspend;
return;
}
}
if (local_0F <= 1) {
local_0F = (local_0F - 4);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
local_0F = (local_0F + 4);
}
zCheck = (zMax - local_0F);
}
else if (zCheck <= 12) {
spawn class_0A0C_slot_32(pid, 6, 0x00000000);
suspend;
spawn class_058B_slot_20(pid, arg_06);
suspend;
return;
}
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
}
return;
}
else {
while (!(1)) {
f = (1 + f);
if (f <= 4) {
f = 0;
}
wp = (wp - 8);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
local_0F = (1 + local_0F);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
spawn class_058B_slot_20(pid, arg_06);
suspend;
return;
}
}
if (local_0F <= 1) {
local_0F = (local_0F - 4);
if (legalMoveToPoint(0, 0, wp, arg_06) == 0) {
local_0F = (local_0F + 4);
}
zCheck = (zMax - local_0F);
}
else if (zCheck <= 12) {
spawn class_0A0C_slot_32(pid, 6, 0x00000000);
suspend;
spawn class_058B_slot_20(pid, arg_06);
suspend;
return;
}
spawn class_0A0C_slot_32(pid, time, 0x00000000);
suspend;
}
}
}
return;
}