Code: Select all
class<Weapon> cls = "LADWeapon" .. String.Format("%s", character.eqWeapon.GetClassName()).Mid("LADItem".Length());
Is this supposed to work? I mean, it gives me the result that I expect, but... is this supposed to work? I find it weird that it works because according to .Mid's signature in base.zs, the first argument is supposed to be an int...