Script: Spellwand

From Ultima Online: The Second Age
Revision as of 13:56, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4ZO(<span style="color:#0000FF">obj</span> Q68S) { <span style="color:#0000FF">list</s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
function int Q4ZO(obj Q68S)
{
  list Q5A8;
  int Q5NC = [[messageret|messageret]](this, Q68S, "spellcanstartcast", Q5A8);
  return (Q5NC);
}
function int Q49T(obj Q68S, obj Q67Y)
{
  return (hasObjEquipped(Q68S, Q67Y));
}
function int Q49S(obj Q68S, obj Q67Y)
{
  if (hasObjEquipped(Q68S, Q67Y))
  {
    if (Q4ZO(Q68S))
    {
      return (0x01);
    }
  }
  return (0x00);
}
function void Q5VL(obj user)
{
  list Q5A8;
  attachScript(user, "spellwords");
  message(user, "spellstartcast", Q5A8);
  return ();
}
trigger use
{
  if (Q49S(user, this))
  {
    Q5VL(user);
  }
  return (0x01);
}