02-24-2016, 12:13 PM
So reviewing the script I'm not sure if it's possible to draw any conclusions about this without knowing what the return value of witnessCrime is (is this a core function?)
From the demo:
witnessCrime passes in "this" (the person who is stealing), along with "owner" (the person being stolen from, which is null when it's not a mobile) along with some other calculations to do with weight, skill level and whether or not it was a random steal.
I think it's likely that stealing from a container probably always returns 0 from witnessCrime, since "owner" is null. And in which case no skill check would take place either. Meaning it has 100% success rate. Since weight only gets checked if "owner" is not null, there should be no limit on the weight you can steal from a container, except for how much weight you can carry. This echoes Veranis' original post.
Without knowing what witnessCrime truly does, these are just assumptions. It would be worth testing in the demo if possible, unfortunately I do not have access to a demo server.
From the demo:
Code:
list Q57W;
int Q5TF = 0x64 + getSkillLevelReal(this, 0x21);
int Q4IB = Q569 * Q5YS * 0x1388 / Q5TF;
int Q691 = witnessCrime(getLocation(usedon), this, owner, getName(usedon), Q4IB, (getValue(usedon) + 0x04) / 0x05, 0x01);
changeKarma(this, 0x00 - 0x1388);
if(!getCompileFlag(0x01))
{
criminalActAdvanced(this, owner, 0x01, 0x06, 0x18 * 0x02, 0x00);
}
if(Q691 > 0x00)
{
if(!getCompileFlag(0x01))
{
setCriminal(this, 0x01E0);
}
Q4IB = Q569 * Q5YS * 0x1E + 0x64;
if(testAndLearnSkill(this, 0x21, Q4IB, 0x32) <= 0x00)
{
systemMessage(this, "You fail to steal the item.");
return(0x00);
}
}
systemMessage(this, "You successfully steal the item.");
witnessCrime passes in "this" (the person who is stealing), along with "owner" (the person being stolen from, which is null when it's not a mobile) along with some other calculations to do with weight, skill level and whether or not it was a random steal.
I think it's likely that stealing from a container probably always returns 0 from witnessCrime, since "owner" is null. And in which case no skill check would take place either. Meaning it has 100% success rate. Since weight only gets checked if "owner" is not null, there should be no limit on the weight you can steal from a container, except for how much weight you can carry. This echoes Veranis' original post.
Without knowing what witnessCrime truly does, these are just assumptions. It would be worth testing in the demo if possible, unfortunately I do not have access to a demo server.