Difference between revisions of "Script Function: Q5GF"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5GF() { <span style="color:#0000FF">list</span> portcullis; Q5JJ = 0x33, 0x46,...") |
|||
Line 24: | Line 24: | ||
} | } | ||
[[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x012C, 0x1B); | [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](this, 0x012C, 0x1B); | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5GF(<span style="color:#0000FF">obj</span> gate, <span style="color:#0000FF">int</span> it) | ||
+ | { | ||
+ | [[Engine Function:_setType|<span style="color:#FF0000;font-weight:bold">setType</span>]](gate, 0x01); | ||
+ | [[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](gate), 0x1FCB, 0x09, 0x20, 0x00, 0x00); | ||
+ | [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](gate, 0x01, 0x63); | ||
+ | [[Engine Function:_callback|<span style="color:#FF0000;font-weight:bold">callback</span>]](gate, 0x04, it); | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Latest revision as of 17:44, 12 October 2018
function void Q5GF() { list portcullis; Q5JJ = 0x33, 0x46, 0x00; Q5JK = 0x33, 0x45, 0x00; getObjectsAt(portcullis, Q5JJ); for(int i = 0x00; i < numInList(portcullis); i++) { int Q61T = getObjType(portcullis[i]); if (Q61T == 0x06F6) { deleteObject(portcullis[i]); } } clearList(portcullis); getObjectsAt(portcullis, Q5JK); for(i = 0x00; i < numInList(portcullis); i++) { Q61T = getObjType(portcullis[i]); if (Q61T == 0x06F6) { deleteObject(portcullis[i]); } } callback(this, 0x012C, 0x1B); return (); }
function void Q5GF(obj gate, int it) { setType(gate, 0x01); doLocAnimation(getLocation(gate), 0x1FCB, 0x09, 0x20, 0x00, 0x00); callback(gate, 0x01, 0x63); callback(gate, 0x04, it); return (); }