New post for debugging help
This was the old system which was easy to create a nevermiss for:
if (_loc_7 > ms_levelPenaltyMax){
_loc_7 = ms_levelPenaltyMax;
}
if (Math.random() < ms_levelPenalty[_loc_7]){
(param2.property.missAttackCount + 1);
if (param4 == false && UserType.kUser == param2.property.type){
this.criticalRandom.nextInt();
}
return [0, false];
}All you'd have to do is take that range and set all values to "02" as the values used here were self contained.
The new code is somewhat split up:
_loc_18 = this.uint(this.uint(_loc_17 * 10000) / 10000 * 1000000);
_loc_19 = this.criticalRandom.nextInt() % 1000000;
if (_loc_19 < _loc_18){
_loc_10 = true;
}and
if (_loc_10 == true){
(param2.property.missAttackCount + 1);
return [0, false];
}What I did with my attempt above was just to blank them all out with "02" like previously but it gave the black mage error as explained in the post above.
I think this is partially because I tried to do both parts in 1 aob since they are right next to each other or because "_loc_10" is used further on in the class.
var _loc_10:* = Math.floor(_loc_5 * _loc_9);
var _loc_11:Number = 1;
if (param2 == true){
_loc_11 = _loc_4.subAttack * 0.01;
} else {
_loc_11 = _loc_4.attack * 0.01;
}
var _loc_12:* = _loc_10 * _loc_11;
return [_loc_10 * _loc_11, false];
Or it just could be myself derping on which aob to start and finish on ~_~
Any thoughts?
Edit; nvm fixed it quite easily...
Fully updated list with fixes:
[ENABLE]
//MONSTERS NEVER WALK
Aobscan(_nowalk,d0 66 d1 29 66 b3 07 60 d5 26 66 ba 43 4f f3 1e 01)
label(nowalk)
registersymbol(nowalk)
_nowalk:
nowalk:
db 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
//INSTANT HARVEST
Aobscan(_harvest,66 d0 2b 24 00)
label(harvest)
registersymbol(harvest)
_harvest:
harvest:
db 66 d0 2b 24 63
//GOD MODE
Aobscan(_godmode,d0 30 28 63 0f 28 63 10 20 80 29 63 11)
label(godmode)
registersymbol(godmode)
_godmode:
godmode:
db 47 02 02 02 02 02 02 02 02 02 02 02 02
//MAX DAMAGE
Aobscan(_maxdmg,24 5f 24 69)
label(maxdmg)
registersymbol(maxdmg)
_maxdmg:
maxdmg:
db 24 69 24 69
//SPEED
Aobscan(_speed,D0 66 C6 2B A2)
label(speed)
registersymbol(speed)
_speed:
speed:
db 25 88 13 02 a2
//RESPAWN
Aobscan(_respawn,25 d0 0f 25 88 27)
label(respawn)
registersymbol(respawn)
_respawn:
respawn:
db 24 00 02 24 00 02
//AOE RADIUS
Aobscan(_aoeradius,d0 30 d0 66 e8 06 d0 66 84 1c 46 fd 20 01 66 8b 1c 48)
label(aoeradius)
registersymbol(aoeradius)
_aoeradius:
aoeradius:
db 24 7f 2a 02 a2 02 02 02 02 02 02 02 02 02 02 02 02 48
//ENERGY REQUEST
Aobscan(_energyreq,47 26 d0 46 9b 05 00 14 01 00 00 47)
label(energyreq)
registersymbol(energyreq)
_energyreq:
energyreq:
db 02 26 d0 46 9b 05 00 14 01 00 00 02
//tamedmonster
Aobscan(_tamedmonster,62 05 a2 a0 75 d7 d0 66 c5 36 d1 d2 d3 62 05 62 05)
label(tamedmonster)
registersymbol(tamedmonster)
_tamedmonster:
tamedmonster:
db 24 00 a2 a0 75 d7 d0 66 c5 36 d1 d2 d3 24 01 24 01
//monstervac
Aobscan(_monstervac,d1 66 b4 07 d1 66 b5 07 46 bc 0c 02)
label(monstervac)
registersymbol(monstervac)
_monstervac:
monstervac:
db 24 64 02 02 24 c9 02 02 46 bc 0c 02
//skill range
Aobscan(_skillrange,d0 30 d0 66 e8 06 d0 66 84 1c 46 fd 20 01 66 8a 1c 48)
label(skillrange)
registersymbol(skillrange)
_skillrange:
skillrange:
db 24 7f 2a 02 a2 02 02 02 02 02 02 02 02 02 02 02 02 48
//collection1
Aobscan(_collection1,66 88 0c 12 2e 00 00 d0 d0 66 89 0c)
label(collection1)
registersymbol(collection1)
_collection1:
collection1:
db 66 88 0c 11 2e 00 00 d0 d0 66 89 0c
//collection2
Aobscan(_collection2,d6 d2 24 1e 2a a2 0c 45 00 00)
label(collection2)
registersymbol(collection2)
_collection2:
collection2:
db d6 d2 24 7f 2a a2 0c 45 00 00
//collection3
Aobscan(_collection3,66 e2 10 76 2a 12 0a 00 00)
label(collection3)
registersymbol(collection3)
_collection3:
collection3:
db 66 e2 10 76 2a 11 0a 00 00
//collection4
Aobscan(_collection4,d6 d2 24 1e 2a a2 0c a6 00 00)
label(collection4)
registersymbol(collection4)
_collection4:
collection4:
db d6 d2 24 7f 2a a2 0c a6 00 00
[DISABLE]Fairy maps:
//monstervac
Aobscan(_monstervac,d1 66 b4 07 d1 66 b5 07 46 bc 0c 02)
label(monstervac)
registersymbol(monstervac)
_monstervac:
monstervac:
db 24 c9 02 02 24 c9 02 02 46 bc 0c 02
Nevermiss still broken (see above)
//nevermiss
Aobscan(_nevermiss,d2 66 85 03 d2 66 85 03 66 a6 1d 24 01 a0 61 a6 1d 24 00 27 56 02 48)
label(nevermiss)
registersymbol(nevermiss)
_nevermiss:
nevermiss:
db 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
00100010