Difference between revisions of "Script: Femalearmor"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> equip { shortcallback|<span style="color:#FF0000;font-weight:bold"...") |
|||
Line 33: | Line 33: | ||
<span style="color:#0000FF">else</span> | <span style="color:#0000FF">else</span> | ||
{ | { | ||
− | Q527 = [[ | + | Q527 = [[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](this, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](Q4E2)); |
} | } | ||
} | } |
Latest revision as of 06:52, 19 October 2018
inherits globals;
trigger equip { shortcallback(this, 0x01, 0x88); return (0x01); }
trigger objectloaded { shortcallback(this, 0x01, 0x88); return (0x01); }
trigger callback(0x88) { obj Q4E2 = containedBy(this); int Q527; if (Q4E2 != NULL()) { if (isMobile(Q4E2)) { int Q4O1 = getEquipSlot(this); if (this == getItemAtSlot(Q4E2, Q4O1)) { if (getObjType(Q4E2) == 0x0190) { barkTo(Q4E2, Q4E2, "Only females can wear this."); if (canHold(Q4E2, this)) { Q527 = toMobile(this, Q4E2); } else { Q527 = teleport(this, getLocation(Q4E2)); } } } } } return (0x01); }