Difference between revisions of "Script Function: Q4RX"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RX(<span style="color:#0000FF">int</span> Q65M) { <span style="color:#0000FF">s...") |
|||
Line 3: | Line 3: | ||
<span style="color:#0000FF">string</span> Q5Y4; | <span style="color:#0000FF">string</span> Q5Y4; | ||
<span style="color:#0000FF">switch</span> (Q65M) | <span style="color:#0000FF">switch</span> (Q65M) | ||
+ | { | ||
+ | <span style="color:#0000FF">case</span> 0x2049 | ||
+ | Q5Y4 = <span style="color:#800000">"hair in two pigtails"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2047 | ||
+ | Q5Y4 = <span style="color:#800000">"curly hair"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2046 | ||
+ | Q5Y4 = <span style="color:#800000">"hair tied in buns"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x204A | ||
+ | Q5Y4 = <span style="color:#800000">"shaved head and topknot"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x203C | ||
+ | Q5Y4 = <span style="color:#800000">"hair worn long"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2044 | ||
+ | Q5Y4 = <span style="color:#800000">"a mohawk hairstyle"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x203D | ||
+ | Q5Y4 = <span style="color:#800000">"hair tied back"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2045 | ||
+ | Q5Y4 = <span style="color:#800000">"pageboy hair"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2048 | ||
+ | Q5Y4 = <span style="color:#800000">"receding hairline"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x203B | ||
+ | Q5Y4 = <span style="color:#800000">"hair worn short"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">default</span> | ||
+ | Q5Y4 = <span style="color:#800000">"bald"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> (Q5Y4); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RX(<span style="color:#0000FF">obj</span> killer) | ||
+ | { | ||
+ | <span style="color:#0000FF">obj</span> Q4UP = [[Engine Function:_getItemAtSlot|<span style="color:#FF0000;font-weight:bold">getItemAtSlot</span>]](killer, 0x0B); | ||
+ | <span style="color:#0000FF">string</span> Q5Y4; | ||
+ | <span style="color:#0000FF">switch</span> ([[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](Q4UP)) | ||
{ | { | ||
<span style="color:#0000FF">case</span> 0x2049 | <span style="color:#0000FF">case</span> 0x2049 |
Latest revision as of 17:36, 12 October 2018
function string Q4RX(int Q65M) { string Q5Y4; switch (Q65M) { case 0x2049 Q5Y4 = "hair in two pigtails"; break; case 0x2047 Q5Y4 = "curly hair"; break; case 0x2046 Q5Y4 = "hair tied in buns"; break; case 0x204A Q5Y4 = "shaved head and topknot"; break; case 0x203C Q5Y4 = "hair worn long"; break; case 0x2044 Q5Y4 = "a mohawk hairstyle"; break; case 0x203D Q5Y4 = "hair tied back"; break; case 0x2045 Q5Y4 = "pageboy hair"; break; case 0x2048 Q5Y4 = "receding hairline"; break; case 0x203B Q5Y4 = "hair worn short"; break; default Q5Y4 = "bald"; break; } return (Q5Y4); }
function string Q4RX(obj killer) { obj Q4UP = getItemAtSlot(killer, 0x0B); string Q5Y4; switch (getObjType(Q4UP)) { case 0x2049 Q5Y4 = "hair in two pigtails"; break; case 0x2047 Q5Y4 = "curly hair"; break; case 0x2046 Q5Y4 = "hair tied in buns"; break; case 0x204A Q5Y4 = "shaved head and topknot"; break; case 0x203C Q5Y4 = "hair worn long"; break; case 0x2044 Q5Y4 = "a mohawk hairstyle"; break; case 0x203D Q5Y4 = "hair tied back"; break; case 0x2045 Q5Y4 = "pageboy hair"; break; case 0x2048 Q5Y4 = "receding hairline"; break; case 0x203B Q5Y4 = "hair worn short"; break; default Q5Y4 = "bald"; break; } return (Q5Y4); }