Script Function: Q4GJ

From Ultima Online: The Second Age
Revision as of 17:25, 12 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4GJ(obj victim, int damage)
 {
   loc Q4VS = getLocation(Q67S);
   sfx(Q4VS, 0x28, 0x00);
   if (!Q50G(victim))
   {
     return ();
   }
   doDamageType(Q67S, victim, damage, 0x02);
   int Q5VZ = 0x00 - 0x0A;
   int Q4NC = 0xB4;
   for(int s = 0x00; s < 0x03; s++)
   {
     int Q5NC = Q41Q(victim, s, Q5VZ, Q4NC);
   }
   return ();
 }
 function void Q4GJ(obj victim, int damage)
 {
   if (!isValid(victim))
   {
     return ();
   }
   Q423(this, victim, damage, 0x01, 0x00);
   sfx(getLocation(this), 0x023B, 0x00);
   if (Q50G(victim))
   {
     attachScript(victim, "poisoned");
     setObjVar(victim, "poison_strength", 0x02);
   }
   return ();
 }