Solace MUD Official Forum

Solace for Serbians => Caskanje => Topic started by: khiren on November 17, 2010, 01:49:31 pm



Title: TinTin++ missing skills/spell tracking code
Post by: khiren on November 17, 2010, 01:49:31 pm
Ako koristis TinTin++ mozes da customizujes ovo parche koda ispod za svog lika.

Primer je za draconian necrona.

Code:
#ACTION {^The following skills and spells are affecting you:} { #delay {0.5} {showMissingSpells;resetAffects;}}
 {5}

#ALIAS {resetAffects} {
        #var affDetectMagic -1;
        #var affArmor -1;
        #var affDetectInvis -1;
        #var affMassInvis -1;
        #var affProtectiveShield -1;
        #var affWraithform -1;
        #var affDarkshield -1;
        #var affGhoulFlesh -1;
        #var affLichsPalm -1;
        #var affSenseLiving -1;
        #var affImprovedShield -1;
        #var affFlying -1;} {5}

#ALIAS {showMissingSpells} {
        #if {$affDetectMagic == -1}      {#delay {0.2} {#showme Lacking: Detect Magic}};
        #if {$affArmor == -1}            {#delay {0.2} {#showme Lacking: Armor}};
        #if {$affDetectInvis == -1}      {#delay {0.2} {#showme Lacking: Detect Invis}};
        #if {$affMassInvis == -1}        {#delay {0.2} {#showme Lacking: Mass Invis}};
        #if {$affProtectiveShield == -1} {#delay {0.2} {#showme Lacking: Protective Shield}};
        #if {$affWraithform == -1}       {#delay {0.2} {#showme Lacking: Wraithform}};
        #if {$affDarkshield == -1}       {#delay {0.2} {#showme Lacking: Darkshield}};
        #if {$affGhoulFlesh == -1}       {#delay {0.2} {#showme Lacking: Ghoul Flesh}};
        #if {$affLichsPalm == -1}        {#delay {0.2} {#showme Lacking: Lichs Palm}};
        #if {$affSenseLiving == -1}      {#delay {0.2} {#showme Lacking: Sense Living}};
        #if {$affImprovedShield == -1}   {#delay {0.2} {#showme Lacking: Improved Shield}};
        #if {$affFlying == -1}           {#delay {0.2} {#showme Lacking: Flying}};} {3}

#ACTION {'Detect magic' %0 is active for %1 hours and %2 minutes}       {#var affDetectMagic %2}        {1}
#ACTION {'Armor' %0 is active for %1 hours and %2 minutes}              {#var affArmor %2}              {1}
#ACTION {'Detect invis' %0 is active for %1 hours and %2 minutes}       {#var affDetectInvis %2}        {1}
#ACTION {'Mass invis' %0 is active for %1 hours and %2 minutes}         {#var affMassInvis %2}          {1}
#ACTION {'Protective shield' %0 is active for %1 hours and %2 minutes}  {#var affProtectiveShield %2}   {1}
#ACTION {'Wraithform' %0 is active for %1 hours and %2 minutes}         {#var affWraithform %2}         {1}
#ACTION {'Darkshield' %0 is active for %1 hours and %2 minutes}         {#var affDarkshield %2}         {1}
#ACTION {'Ghoul flesh' %0 is active for %1 hours and %2 minutes}        {#var affGhoulFlesh %2}         {1}
#ACTION {'Lichs palm' %0 is active for %1 hours and %2 minutes}         {#var affLichsPalm %2}          {1}
#ACTION {'Sense living' %0 is active for %1 hours and %2 minutes}       {#var affSenseLiving %2}        {1}
#ACTION {'Improved shield' %0 is active for %1 hours and %2 minutes}    {#var affImprovedShield %2}     {1}
#ACTION {'Flying' %0 is active %1}                                      {#var affFlying %1}             {1}

#HIGHLIGHT {Lacking:} {bold} {5}


Title: Re: TinTin++ missing skills/spell tracking code
Post by: khiren on September 20, 2014, 08:50:47 am
jos jedan nacin da se prate spellovi/skillovi koji fale.

[log]
#ACTION {^The following skills and spells are affecting you:}
{
  #delay {0.5} {showMissingSpells;resetAffects;}
}
{5}

#ALIAS {resetAffects}
{
  #var {aff}
  {
        {Armor} {-1}
      {Bless}{-1}
      {Detect evil}{-1}
      {Protection}{-1}
        {Detect invis} {-1}
      {Frenzy}{-1}
      {Lightshield}{-1}
      {Protectorate}{-1}
      {Holy prayer}{-1}
      {Divine health}{-1}
      {Shield of faith}{-1}
      {Templars sight}{-1}
      {Divine health}{-1}
      {Aura of courage}{-1}
      {Spiritual healing}{-1}
   }
}
{5}

#ALIAS {showMissingSpells}
{
  #foreach {$aff[]} {tmp}
  {
    #if {$aff[$tmp] == -1}
    {
      #line {substitute} {variables}
      {
        #delay {0.2} {#showme Lacking: $tmp}
      }
    }
  }
}

#foreach {$aff[]} {tmp}
{
  #line {substitute} {variables}
  {
    #action {'$tmp' %1 is active for %2 hours and %3 minutes}
    {
      #math aff[$tmp] %2 * 60 + %3
    }
  }
}

#ACTION {'Armor' %0 is active for %1 hours and %2 minutes} {#var aff[Armor] %2} {1}
#ACTION {'Bless' %0 is active for %1 hours and %2 minutes} {#var aff[Bless] %2} {1}
#ACTION {'Detect evil' %0 is active for %1 hours and %2 minutes} {#var aff[Detect evil] %2} {1}
#ACTION {'Protection' %0 is active for %1 hours and %2 minutes} {#var aff[Protection] %2} {1}
#ACTION {'Detect invis' %0 is active for %1 hours and %2 minutes} {#var aff[Detect invis] %2} {1}
#ACTION {'Frenzy' %0 is active for %1 hours and %2 minutes} {#var aff[Frenzy] %2} {1}
#ACTION {'Lightshield' %0 is active for %1 hours and %2 minutes} {#var aff[Lightshield] %2} {1}
#ACTION {'Protectorate' %0 is active for %1 hours and %2 minutes} {#var aff[Protectorate] %2} {1}
#ACTION {'Holy prayer' %0 is active for %1 hours and %2 minutes} {#var aff[Holy prayer] %2} {1}
#ACTION {'Divine health' %0 is active for %1 hours and %2 minutes} {#var aff[Divine health] %2} {1}
#ACTION {'Shield of faith' %0 is active for %1 hours and %2 minutes} {#var aff[Shield of faith] %2} {1}
#ACTION {'Templars sight' %0 is active for %1 hours and %2 minutes} {#var aff[Templars sight] %2} {1}
#ACTION {'Divine health' %0 is active for %1 hours and %2 minutes} {#var aff[Divine health] %2} {1}
#ACTION {'Aura of courage' %0 is active for %1 hours and %2 minutes} {#var aff[Aura of courage] %2} {1}
#ACTION {'Spiritual healing' %0 is active for %1 hours and %2 minutes} {#var aff[Spiritual healing] %2} {1}

#HIGHLIGHT {Lacking:} {bold} {5}
[/log]