Script: Traprange
From Ultima Online: The Second Age
Revision as of 08:12, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> enterrange(0x01) { <span style="color:#0000FF">if</span> (<span style="color:#FF0000;font-weight:bold">isDead</span>...")
trigger enterrange(0x01) { if (isDead(target)) { return (0x01); } string Q58D; if (hasObjVar(this, "TrapMessageRange")) { int range = getObjVar(this, "TrapMessageRange"); if (hasObjVar(this, "TrapTheMessage")) { Q58D = getObjVar(this, "TrapTheMessage"); } else { Q58D = "blah"; } list Q4OK = target, Q58D; [[messageToRange|messageToRange]](getLocation(this), range, "TRAP", Q4OK); } return (0x01); }