Difference between revisions of "Script: Fixme"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> sk_table; <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q50I(<span style="color:#0000FF...") |
|||
Line 42: | Line 42: | ||
{ | { | ||
[[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Found: "</span> + [[Engine Function:_getName|<span style="color:#FF0000;font-weight:bold">getName</span>]](Q47I[i]) + <span style="color:#800000">"("</span> + [[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](Q47I[i]) + <span style="color:#800000">")"</span>); | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Found: "</span> + [[Engine Function:_getName|<span style="color:#FF0000;font-weight:bold">getName</span>]](Q47I[i]) + <span style="color:#800000">"("</span> + [[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](Q47I[i]) + <span style="color:#800000">")"</span>); | ||
− | <span style="color:#0000FF">int</span> bar = [[ | + | <span style="color:#0000FF">int</span> bar = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](Q47I[i], Q4UD); |
} | } | ||
} | } |
Latest revision as of 07:37, 19 October 2018
inherits sk_table;
function int Q50I(obj item) { int Q65M = getObjType(item); if ((Q65M == 0x1E5E) || (Q65M == 0x1E5F)) { return (0x00); } if (isMobile(item)) { return (0x00); } return (0x01); }
trigger creation { int i; list Q47I; getContents(Q47I, this); if (numInList(Q47I) > 0x00) { obj Q47G = getBackpack(this); if (Q47G != NULL()) { for(i = 0x00; i < numInList(Q47I); i++) { if (Q50I(Q47I[i])) { bark(this, "Found: " + getName(Q47I[i]) + "(" + getObjType(Q47I[i]) + ")"); int Q4Q1 = putObjContainer(Q47I[i], Q47G); } } } else { loc Q4UD = getLocation(this); for(i = 0x00; i < numInList(Q47I); i++) { if (Q50I(Q47I[i])) { bark(this, "Found: " + getName(Q47I[i]) + "(" + getObjType(Q47I[i]) + ")"); int bar = teleport(Q47I[i], Q4UD); } } } } recalcWeight(this); int Q63R = 0x00; for(i = 0x00; i < 0x2E; i++) { Q63R = Q63R + getSkillLevelNoStat(this, i); } if (Q63R > 0x1B58) { int Q5HX = 0x1B58 * 0x64 / Q63R; bark(this, "Skill total was:" + Q63R + ", keeping " + Q5HX + ""); for(i = 0x00; i < 0x2E; i++) { setSkillLevel(this, i, getSkillLevelNoStat(this, i) * Q5HX / 0x64); } } detachScript(this, "fixme"); return (0x00); }