39 lines
1 KiB
Text
39 lines
1 KiB
Text
function mtaregg_hatch() /* entry=343 class_id=0x0903 slot=0x07 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
item, /* [BP-02h] type=0x24 */
|
|
id, /* [BP-04h] type=0x69 */
|
|
hiValue, /* [BP-06h] type=0x69 */
|
|
loValue; /* [BP-08h] type=0x69 */
|
|
|
|
set_info(0x0210, *(arg_06));
|
|
process_exclude();
|
|
id = 0;
|
|
hiValue = 0;
|
|
loValue = 0;
|
|
id = Egg.getEggId(arg_06);
|
|
/* loopscr value_u8=0x24 */
|
|
/* loopscr value_u8=0x42 */
|
|
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
|
|
while (!condition) {
|
|
loValue = Item.getQLo(item);
|
|
if (id == loValue) {
|
|
hiValue = Item.getQHi(item);
|
|
if (hiValue == 1) {
|
|
spawn class_0903_slot_20(74, 0, item, arg_06);
|
|
}
|
|
else if (hiValue == 2) {
|
|
spawn class_0903_slot_20(74, 4, item, arg_06);
|
|
}
|
|
else if (hiValue == 3) {
|
|
spawn class_0903_slot_20(74, 8, item, arg_06);
|
|
}
|
|
else if (hiValue == 4) {
|
|
spawn class_0903_slot_20(74, 12, item, arg_06);
|
|
}
|
|
}
|
|
/* loopnext */
|
|
}
|
|
return;
|
|
}
|