Stealing skill & item weight - Printable Version +- UO Lost Lands Forum (https://uolostlands.com/forum) +-- Forum: General (https://uolostlands.com/forum/forumdisplay.php?fid=24) +--- Forum: Suggestions (https://uolostlands.com/forum/forumdisplay.php?fid=8) +--- Thread: Stealing skill & item weight (/showthread.php?tid=807) |
Stealing skill & item weight - Veranis - 02-01-2016 This is something that I *think* is era-accurate, but I'm not sure about it. _________________________ If you use the stealing skill and target an item inside a container (any container except another NPC or PC backpack) that is within a 1-tile range of your character, it should place the targeted item in your pack 100% of the time at 0.0 Stealing skill. If the item is 2 tiles away or more, you get the message "that object is too far away." It doesn't work on "newbied" items (items you start with, like dagger or spellbook, etc.), you get the message "You can't steal that!" with newbied items. Lastly, the item weight must just be low enough that your character can carry the item in their pack: depending how empty your pack is, this means any item weighing up to 399 stones. _________________________ It might seem like a useless thing to ask to be implemented, but using some creativity, this little quirk is often useful in automating certain tasks in razor (alchemy, crafting, sorting, poisoning). Thanks for reading! RE: Stealing skill & item weight - Grimoric - 02-02-2016 This is from the T2A Demo Server and is what happens after a player target something to steal. 1. Check that the target is something or exit the trigger. 2. Check if the target is alive and if it is dead, exit the trigger. 3. Check distance to the object by count tiles from the thief and the container/item. If it over 1 tile it will say "You must be standing..." and exit. Code: TRIGGER( oortargetobj )(obj user, obj usedon) Later in the script we have calculations of weight. 1. Get the weight of the object we are trying to steal. 2. Check if over 10 stones, if it is write "This item is too Heavy.." and exit. (it also check that it is at least 1 item in the stack here or the same "too Heavy" message is sent) Code: ... Another thing I didnt know before I looked into the script was that it is three times bigger chance to get catched if a single item is targeted vs a random thing from a bag/box. -Grim RE: Stealing skill & item weight - Jack - 02-24-2016 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: Code: list Q57W; 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. |