Advertisement
tensador125

tooltip

Oct 26th, 2023 (edited)
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function ReturnTooltip_NTT_ITEM_FARIS (string param, string TooltipType, ETooltipSourceType eSourceType, optional bool isShortcut)
  2. {
  3.   local ItemInfo item;
  4.   local EItemType EItemType;
  5.   local EEtcItemType EEtcItemType;
  6.   local bool bLargeWidth;
  7.   local string SlotString;
  8.   local int nTmp;
  9.   local string ItemName;
  10.   local string ItemSlotWithItemTypeStr;
  11.   local string strAdena;
  12.   local string strAdenaComma;
  13.   local Color AdenaColor;
  14.   local int nEnchantValueTextGap;
  15.   local int nSimpleLineCountAdd;
  16.   local int bMainIconGap;
  17.   local int pAtkValue;
  18.   local int mAtkValue;
  19.   local int pAtkEnchant;
  20.   local int mAtkEnchant;
  21.  
  22.   if ( eSourceType == 1 )
  23.   {
  24.     ParamToItemInfo(param,item);
  25.     if ( isShortcut )
  26.     {
  27.       FindItemByServerID(item.ServerID,item);
  28.     }
  29.     EItemType = EItemType(item.ItemType);
  30.     EEtcItemType = EEtcItemType(item.ItemSubType);
  31.     ItemName = Class'UIDATA_ITEM'.static.GetRefineryItemName(item.Name,item.RefineryOp1,item.RefineryOp2);
  32.     GetTextSize(" + Augmented " $ string(item.Enchanted) $ ItemName $ " " $ item.AdditionalName, textWidth, textHeight);
  33.  
  34.  //   GetTextSize(" + Augmented " ,string(item.Enchanted),ItemName ," " ,item.AdditionalName, textWidth, textHeight);
  35.  
  36.     if ( !(AddBGByType(item)) )
  37.     {
  38.       if ( addItemIcon(item,item.IconName) )
  39.       {
  40.         bMainIconGap = 3;
  41.       }
  42.     } else {
  43.       bMainIconGap = 3;
  44.     }
  45.     if ( (TooltipType != "InventoryPrice1HideEnchant") && (TooltipType != "InventoryPrice1HideEnchantStackable") )
  46.     {
  47.       AddTooltipItemEnchantfaris(item,True,5,1);
  48.       nEnchantValueTextGap = 2;
  49.     }
  50.     AddTooltipItemNamefaris(ItemName,item,1,(bMainIconGap + nEnchantValueTextGap),1);
  51.     AddTooltipItemGradefaris(item,0,1);
  52.     if ( TooltipType != "InventoryPrice1HideEnchantStackable" )
  53.     {
  54.       if ( TooltipType != "QuestReward" )
  55.       {
  56.         if ( item.ItemNum > 0 )
  57.         {
  58.           AddTooltipItemCountfaris(item,0,1);
  59.         }
  60.       }
  61.     }
  62.     ItemSlotWithItemTypeStr = getSlotTypeWithItemTypeString(item);
  63.     if ( ItemSlotWithItemTypeStr != "" )
  64.     {
  65.       Deobfuscated4592.SimpleLineCount = (2 + nSimpleLineCountAdd);
  66.       AddTooltipItemBlank(1);
  67.       AddTooltipColorText(ItemSlotWithItemTypeStr,GetColortool(176,155,121,255),False,True,False,"",40,-17);
  68.       GetTextSize(ItemSlotWithItemTypeStr,textWidth2,textHeight);
  69.     }
  70.     if ( TooltipType != "InventoryList" )
  71.     {
  72.       CompareWithEquipedItem(item);
  73.     }
  74.     if ( item.ClassID == 57 )
  75.     {
  76.       Deobfuscated4592.SimpleLineCount = (3 + nSimpleLineCountAdd);
  77.       AddTooltipText("(" $ ConvertNumToText(string(item.ItemNum)) $ ")", True, True);
  78.  
  79.     }
  80.     if ( (TooltipType == "InventoryStackableUnitPrice") && !(item.bEquipped) )
  81.     {
  82.       strAdena = string(item.Price);
  83.       strAdenaComma = MakeCostString(strAdena);
  84.       AdenaColor = GetNumericColor(strAdenaComma);
  85.       if ( IsStackableItem(item.ConsumeType) && (item.ItemNum > 1) )
  86.       {
  87.         AddTooltipItemBlank(4);
  88.         AddTooltipColorText((GetSystemString(2511) $ " : "),GetColortool(255,180,0,255),True,True,False);
  89.         AddTooltipText("(" $ ConvertNumToText(string(item.ItemNum)) $ ")", True, True);
  90.  
  91.       } else {
  92.         AddTooltipItemOptionfaris(322, (strAdenaComma $ " " $ GetSystemString(469)), True, True, False, , , , AdenaColor);
  93.  
  94.       }
  95.       if ( IsStackableItem(item.ConsumeType) && (item.ItemNum > 1) )
  96.       {
  97.         strAdena = string((item.Price * item.ItemNum));
  98.         strAdenaComma = MakeCostString(strAdena);
  99.         AdenaColor = GetNumericColor(strAdenaComma);
  100.         AddTooltipItemOptionfaris(2595, (strAdenaComma $ " " $ GetSystemString(469)), True, True, False, , , , AdenaColor);
  101.  
  102.       }
  103.       if ( item.Price > 0 )
  104.       {
  105.         AddTooltipItemOptionfaris(0, ("(" $ ConvertNumToText(strAdena) $ ")"), False, True, False);
  106.  
  107.  
  108.         SetTooltipItemColor(AdenaColor.R,AdenaColor.G,AdenaColor.B,0);
  109.       }
  110.     }
  111.     if ( (TooltipType == "InventoryPrice1") && (TooltipType == "InventoryPrice1HideEnchant") || (TooltipType == "InventoryPrice1HideEnchantStackable") || !(item.bEquipped) )
  112.     {
  113.       strAdena = string(item.Price);
  114.       strAdenaComma = MakeCostString(strAdena);
  115.       AdenaColor = GetNumericColor(strAdenaComma);
  116.       AddTooltipItemOptionfaris(322, ("(" $ ConvertNumToText(strAdenaComma) $ " " $ GetSystemString(469) $ ")"), True, True, False);
  117.  
  118.       Deobfuscated4592.SimpleLineCount = (3 + nSimpleLineCountAdd);
  119.       if ( item.Price > 0 )
  120.       {
  121.         Deobfuscated4592.SimpleLineCount = (4 + nSimpleLineCountAdd);
  122.         AddTooltipItemOptionfaris(0, ("(" $ ConvertNumToText(strAdena) $ ")"), False, True, False);
  123.  
  124.         SetTooltipItemColor(AdenaColor.R,AdenaColor.G,AdenaColor.B,0);
  125.       }
  126.     }
  127.     if ( (TooltipType == "InventoryPrice2") || (TooltipType == "InventoryPrice2PrivateShop") )
  128.     {
  129.       strAdena = string(item.Price);
  130.       strAdenaComma = MakeCostString(strAdena);
  131.       AdenaColor = GetNumericColor(strAdenaComma);
  132.       AddTooltipItemOption2(322,468,True,True,False);
  133.       SetTooltipItemColor(AdenaColor.R,AdenaColor.G,AdenaColor.B,0);
  134.       AddTooltipColorText((" " $ strAdenaComma $ " " $ GetSystemString(469)), AdenaColor, False, True, , , 4);
  135.  
  136.       Deobfuscated4592.SimpleLineCount = (3 + nSimpleLineCountAdd);
  137.       if ( item.Price > 0 )
  138.       {
  139.         Deobfuscated4592.SimpleLineCount = (4 + nSimpleLineCountAdd);
  140.         AddTooltipColorText("(",AdenaColor,True,True);
  141.         AddTooltipColorText(GetSystemString(468),AdenaColor,False,True);
  142.        AddTooltipColorText((" " $ ConvertNumToText(strAdena) $ ")"), AdenaColor, False, True);
  143.  
  144.       }
  145.     }
  146.     if ( TooltipType == "InventoryPrice2PrivateShop" )
  147.     {
  148.       if ( IsStackableItem(item.ConsumeType) && (item.Reserved > 0) )
  149.       {
  150.         AddTooltipItemOptionfaris(808,string(item.Reserved),True,True,False);
  151.       }
  152.     }
  153.     SlotString = "";
  154.     SlotString = GetSlotTypeString(item.ItemType,item.SlotBitType,item.ArmorType);
  155.     switch (EItemType)
  156.     {
  157.       case ITEM_WEAPON:
  158.       bLargeWidth = True;
  159.       if ( item.PhysicalDamage != 0 )
  160.       {
  161.         pAtkValue = GetPhysicalDamage(item.WeaponType,item.SlotBitType,item.CrystalType,item.Enchanted,item.PhysicalDamage);
  162.         pAtkEnchant = ((pAtkValue - item.PhysicalDamage) / 2);
  163.         AddTooltipItemOptionfaris(94,string(item.PhysicalDamage + pAtkEnchant),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  164.         AddTooltipItemBonusfaris(item.PhysicalDamage,pAtkEnchant,0,4);
  165.       }
  166.       if ( item.MagicalDamage != 0 )
  167.       {
  168.         mAtkValue = GetMagicalDamage(item.WeaponType,item.SlotBitType,item.CrystalType,item.Enchanted,item.MagicalDamage);
  169.         mAtkEnchant = ((mAtkValue - item.MagicalDamage) / 2);
  170.         AddTooltipItemOptionfaris(98,string(item.MagicalDamage + mAtkEnchant),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  171.         AddTooltipItemBonusfaris(item.MagicalDamage,mAtkEnchant,0,4);
  172.       }
  173.       AddTooltipItemOptionfaris(111,GetAttackSpeedString(item.AttackSpeed),True,True,False,2);
  174.       if ( item.ShieldDefense > 0 )
  175.       {
  176.         AddTooltipItemOptionfaris(95,string(item.ShieldDefense),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  177.       }
  178.       if ( item.ShieldDefenseRate > 0 )
  179.       {
  180.         AddTooltipItemOptionfaris(317,string(item.ShieldDefenseRate),True,True,False,2);
  181.       }
  182.      
  183.       if ( item.SoulshotCount > 0 )
  184.       {
  185.         AddTooltipItemOptionfaris(404,"X " $ string(item.SoulshotCount),True,True,False);
  186.       }
  187.       if ( item.SpiritshotCount > 0 )
  188.       {
  189.         AddTooltipItemOptionfaris(496,"X " $ string(item.SpiritshotCount),True,True,False);
  190.       }
  191.      
  192.       if ( item.Weight == 0 )
  193.       {
  194.         AddTooltipItemOptionfaris(52," 0 ",True,True,False,2);
  195.       } else {
  196.         AddTooltipItemOptionfaris(52,string(item.Weight),True,True,False,2);
  197.       }
  198.       if ( item.MpConsume != 0 )
  199.       {
  200.         AddTooltipItemOptionfaris(320,string(item.MpConsume),True,True,False,2);
  201.       }
  202.       AddTooltipRefinery(item);
  203.       break;
  204.       case ITEM_ARMOR:
  205.       bLargeWidth = True;
  206.       if ( (item.SlotBitType == 256) || (item.SlotBitType == 128) )
  207.       {
  208.         if ( item.ShieldDefense != 0 )
  209.         {
  210.           AddTooltipItemOptionfaris(95,string(GetShieldDefense(item.CrystalType,item.Enchanted,item.ShieldDefense)),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  211.     AddTooltipItemBonusfaris(item.ShieldDefense,(GetShieldDefense(item.CrystalType,item.Enchanted,item.ShieldDefense) - item.ShieldDefense),0,4);
  212. //  AddTooltipItemBonusfaris(item.ShieldDefense, item.ShieldDefense - GetShieldDefense(item.CrystalType, item.Enchanted, item.ShieldDefense), 0, 4);
  213.  
  214.         }
  215.         if ( item.ShieldDefenseRate > 0 )
  216.         {
  217.           AddTooltipItemOptionfaris(317,string(item.ShieldDefenseRate),True,True,False,2,0);
  218.         }
  219.         AddTooltipItemOptionfaris(97,string(item.AvoidModify),True,True,False,2,0);
  220.         AddTooltipItemOptionfaris(52,string(item.Weight),True,True,False,2,0);
  221.       } else {
  222.         if ( IsMagicalArmor(item.ClassID) )
  223.         {
  224.           if ( item.MpBonus > 0 )
  225.           {
  226.             AddTooltipItemOptionfaris(388,string(item.MpBonus),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  227.           }
  228.           if ( item.PhysicalDefense != 0 )
  229.           {
  230.             AddTooltipItemOptionfaris(95,string(GetPhysicalDefense(item.CrystalType,item.Enchanted,item.PhysicalDefense)),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  231.             AddTooltipItemBonusfaris(item.PhysicalDefense,(GetPhysicalDefense(item.CrystalType,item.Enchanted,item.PhysicalDefense) - item.PhysicalDefense),0,4);
  232.             //AddTooltipItemBonusfaris(item.PhysicalDefense, item.CrystalType - item.Enchanted - item.PhysicalDefense, 0, 4);
  233.  
  234.           }
  235.           if ( item.Weight != 0 )
  236.           {
  237.             AddTooltipItemOptionfaris(52,string(item.Weight),True,True,False,2,0);
  238.           }
  239.         } else {
  240.           if ( item.PhysicalDefense != 0 )
  241.           {
  242.             AddTooltipItemOptionfaris(95,string(GetPhysicalDefense(item.CrystalType,item.Enchanted,item.PhysicalDefense)),True,True,False,2,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  243.            AddTooltipItemBonusfaris(item.PhysicalDefense,(GetPhysicalDefense(item.CrystalType,item.Enchanted,item.PhysicalDefense) - item.PhysicalDefense),0,4);
  244.         //   AddTooltipItemBonusfaris(item.PhysicalDefense, item.CrystalType - item.Enchanted - item.PhysicalDefense, 0, 4);
  245.  
  246.           }
  247.           if ( item.Weight != 0 )
  248.           {
  249.             AddTooltipItemOptionfaris(52,string(item.Weight),True,True,False,2,0);
  250.           }
  251.         }
  252.       }
  253.       break;
  254.       case ITEM_ACCESSARY:
  255.       bLargeWidth = True;
  256.       if ( (item.SlotBitType != 4194304) && (item.SlotBitType != 1048576) && (item.SlotBitType != 2097152) )
  257.       {
  258.         if ( (GetMagicalDefense(item.CrystalType,item.Enchanted,item.MagicalDefense) > 0) )
  259.         {
  260.           AddTooltipItemOptionfaris(99,string(GetMagicalDefense(item.CrystalType,item.Enchanted,item.MagicalDefense)),True,True,False,0,0,getInstanceL2Util().BrightWhite,getInstanceL2Util().ColorYellow);
  261.         }
  262.         AddTooltipItemBonusfaris(item.MagicalDefense,(GetPhysicalDefense(item.CrystalType,item.Enchanted,item.MagicalDefense) - item.MagicalDefense),0,4);
  263.      //   AddTooltipItemBonusfaris(item.MagicalDefense, item.CrystalType - item.Enchanted - item.MagicalDefense, 0, 4);
  264.  
  265.       }
  266.       if ( item.Weight == 0 )
  267.       {
  268.         AddTooltipItemOptionfaris(52," 0 ",True,True,False);
  269.       } else {
  270.         AddTooltipItemOptionfaris(52,string(item.Weight),True,True,False);
  271.       }
  272.       AddTooltipRefinery(item);
  273.       break;
  274.       case ITEM_ETCITEM:
  275.       bLargeWidth = True;
  276.       if ( EEtcItemType == 7 )
  277.       {
  278.         if ( item.Damaged == 0 )
  279.         {
  280.           nTmp = 971;
  281.         } else {
  282.           nTmp = 970;
  283.         }
  284.         AddTooltipItemOption2(969,nTmp,True,True,False);
  285.         AddTooltipItemOptionfaris(88,string(item.Enchanted),True,True,False);
  286.       } else {
  287.         if ( EEtcItemType == 15 )
  288.         {
  289.           AddTooltipItemOptionfaris(972,string(item.Enchanted),True,True,False);
  290.         } else {
  291.           if ( EEtcItemType == 13 )
  292.           {
  293.             AddTooltipItemOptionfaris(670,string(item.Blessed),True,True,False);
  294.             AddTooltipItemOptionfaris(671,GetLottoString(item.Enchanted,item.Damaged),True,True,False);
  295.           } else {
  296.             if ( EEtcItemType == 14)
  297.             {
  298.               AddTooltipItemOptionfaris(670,string(item.Enchanted),True,True,False);
  299.               AddTooltipItemOptionfaris(671,GetRaceTicketString(item.Blessed),True,True,False);
  300.               AddTooltipItemOptionfaris(744,string(item.Damaged * 100),True,True,False);
  301.             }
  302.           }
  303.         }
  304.       }
  305.       if ( item.Weight == 0 )
  306.       {
  307.         AddTooltipItemOptionfaris(52," 0 ",True,True,False);
  308.       } else {
  309.         if ( item.ItemNum > 1 )
  310.         {
  311.           AddTooltipItemOptionfaris(52,string(item.Weight * item.ItemNum),True,True,False);
  312.         } else {
  313.           AddTooltipItemOptionfaris(52,string(item.Weight),True,True,False);
  314.         }
  315.       }
  316.       break;
  317.       default:
  318.     }
  319.     AddTooltipItemDurability(item);
  320.     addDescTooltip(item);
  321.     addSetitemTooltip(item);
  322.  //   addDescTooltipfaris(item);
  323.  //   addSetitemTooltipfaris(item);
  324. //  SetTierBar(item,False);
  325.     addAcquireItem(item);
  326.     addTooltipID(item);
  327.   } else {
  328.     return;
  329.   }
  330.   if ( bLargeWidth )
  331.   {
  332.     Deobfuscated4592.MinimumWidth = 250;
  333.   }
  334.   ReturnTooltipInfo(Deobfuscated4592);
  335. }
  336.  
  337. function addSetitemTooltip (ItemInfo item)
  338. {
  339.   local int idx;
  340.   local string strTmp;
  341.   local int ClassID;
  342.   local int SetID;
  343.   local array<int> arrID;
  344.   local bool bLargeWidth;
  345.  
  346.   if ( item.ClassID > 0 )
  347.   {
  348.     AddTooltipItemBlank(3);
  349.     idx = 0;
  350.     if ( idx < 3 )
  351.     {
  352.       Class'UIDATA_ITEM'.static.GetSetItemIDList(item.ClassID,idx,arrID);
  353.       SetID = 0;
  354.       if ( SetID < arrID.Length )
  355.       {
  356.         bLargeWidth = True;
  357.         ClassID = arrID[SetID];
  358.         if ( item.ClassID != ClassID )
  359.         {
  360.           strTmp = Class'UIDATA_ITEM'.static.GetItemName(ClassID);
  361.           if ( Len(strTmp) > 0 )
  362.           {
  363.             StartItem();
  364.             Deobfuscated2336.eType = DIT_TEXTURE;
  365.             Deobfuscated2336.nOffSetX = 3;
  366.             Deobfuscated2336.nOffSetY = 4;
  367.             Deobfuscated2336.bLineBreak = True;
  368.             Deobfuscated2336.t_bDrawOneLine = True;
  369.             Deobfuscated2336.u_nTextureWidth = 18;
  370.             Deobfuscated2336.u_nTextureHeight = 18;
  371.             Deobfuscated2336.u_nTextureUWidth = 18;
  372.             Deobfuscated2336.u_nTextureUHeight = 18;
  373.             Deobfuscated2336.u_strTexture = "L2FARIS_CH3.Tooltip.lifeBG";
  374.             EndItem();
  375.             StartItem();
  376.             Deobfuscated2336.eType = DIT_TEXTURE;
  377.             Deobfuscated2336.nOffSetX = -17;
  378.             Deobfuscated2336.nOffSetY = 5;
  379.             Deobfuscated2336.t_bDrawOneLine = True;
  380.             Deobfuscated2336.u_nTextureWidth = 16;
  381.             Deobfuscated2336.u_nTextureHeight = 16;
  382.             Deobfuscated2336.u_nTextureUWidth = 32;
  383.             Deobfuscated2336.u_nTextureUHeight = 32;
  384.             Deobfuscated2336.u_strTexture = Class'UIDATA_ITEM'.static.GetItemTextureName(ClassID);
  385.             EndItem();
  386.             StartItem();
  387.             Deobfuscated2336.eType = DIT_TEXT;
  388.             Deobfuscated2336.nOffSetX = 5;
  389.             Deobfuscated2336.nOffSetY = 6;
  390.             Deobfuscated2336.t_bDrawOneLine = True;
  391.             Deobfuscated2336.t_color.R = 100;
  392.             Deobfuscated2336.t_color.G = 100;
  393.             Deobfuscated2336.t_color.B = 65;
  394.             Deobfuscated2336.t_color.A = 255;
  395.             Deobfuscated2336.t_strText = strTmp;
  396.             ParamAdd(Deobfuscated2336.Condition,"Type","Equip");
  397.             ParamAdd(Deobfuscated2336.Condition,"ServerID",string(item.ServerID));
  398.             ParamAdd(Deobfuscated2336.Condition,"EquipID",string(ClassID));
  399.             ParamAdd(Deobfuscated2336.Condition,"NormalColor","100,100,65");
  400.             ParamAdd(Deobfuscated2336.Condition,"EnableColor","255,250,160");
  401.             EndItem();
  402.             AddTooltipItemBlank(1);
  403.           }
  404.         }
  405.         SetID++;
  406.        
  407.       }
  408.       strTmp = Class'UIDATA_ITEM'.static.GetSetItemEffectDescription(item.ClassID,idx);
  409.       if ( Len(strTmp) > 0 )
  410.       {
  411.         bLargeWidth = True;
  412.         StartItem();
  413.         Deobfuscated2336.eType = DIT_TEXT;
  414.         Deobfuscated2336.nOffSetX = 5;
  415.         Deobfuscated2336.nOffSetY = 6;
  416.         Deobfuscated2336.bLineBreak = True;
  417.         Deobfuscated2336.t_color.R = 100;
  418.         Deobfuscated2336.t_color.G = 70;
  419.         Deobfuscated2336.t_color.B = 0;
  420.         Deobfuscated2336.t_color.A = 255;
  421.         Deobfuscated2336.t_strText = strTmp;
  422.         ParamAdd(Deobfuscated2336.Condition,"Type","SetEffect");
  423.         ParamAdd(Deobfuscated2336.Condition,"ServerID",string(item.ServerID));
  424.         ParamAdd(Deobfuscated2336.Condition,"ClassID",string(item.ClassID));
  425.         ParamAdd(Deobfuscated2336.Condition,"EffectID",string(idx));
  426.         ParamAdd(Deobfuscated2336.Condition,"NormalColor","100,70,0");
  427.         ParamAdd(Deobfuscated2336.Condition,"EnableColor","255,180,0");
  428.         EndItem();
  429.         AddTooltipItemBlank(2);
  430.         AddCrossLine();
  431.       }
  432.       idx++;
  433.      
  434.     }
  435.     strTmp = Class'UIDATA_ITEM'.static.GetSetItemEnchantEffectDescription(item.ClassID);
  436.     if ( Len(strTmp) > 0 )
  437.     {
  438.       bLargeWidth = True;
  439.       StartItem();
  440.       Deobfuscated2336.eType = DIT_TEXT;
  441.       Deobfuscated2336.nOffSetX = 5;
  442.       Deobfuscated2336.nOffSetY = 2;
  443.       Deobfuscated2336.bLineBreak = True;
  444.       Deobfuscated2336.t_color.R = 74;
  445.       Deobfuscated2336.t_color.G = 92;
  446.       Deobfuscated2336.t_color.B = 104;
  447.       Deobfuscated2336.t_color.A = 255;
  448.       Deobfuscated2336.t_strText = strTmp;
  449.       ParamAdd(Deobfuscated2336.Condition,"Type","EnchantEffect");
  450.       ParamAdd(Deobfuscated2336.Condition,"ServerID",string(item.ServerID));
  451.       ParamAdd(Deobfuscated2336.Condition,"ClassID",string(item.ClassID));
  452.       ParamAdd(Deobfuscated2336.Condition,"NormalColor","74,92,104");
  453.       ParamAdd(Deobfuscated2336.Condition,"EnableColor","110,140,170");
  454.       EndItem();
  455.     }
  456.   }
  457. }
  458.  
  459.  
  460. function addDescTooltip(ItemInfo item)
  461. {
  462.     local string tmp;
  463.     local array<int> arrID;
  464.  
  465.     Class'UIDATA_ITEM'.static.GetSetItemIDList(item.ClassID, 0, arrID);
  466.     if (arrID[0] > 0)
  467.     {
  468.         AddTooltipItemBlank(4);
  469.         AddTitleIconWithHeadLine("setBG", "Armor Set", "");
  470.     }
  471.     else
  472.     {
  473.         if (Mid(item.Description, 0, 5) == "<Soul")
  474.         {
  475.             AddTooltipItemBlank(4);
  476.             AddTitleIconWithHeadLine("SaBG", "Special Ability: ", item.AdditionalName);
  477.             if (InStr(item.Description, "\n") > 0)
  478.             {
  479.                 tmp = Replace(Mid(item.Description, 29), ". I", "\nI");
  480.             }
  481.             else
  482.             {
  483.                 tmp = Replace(Mid(item.Description, 27), ". I", "\nI");
  484.             }
  485.             AddTooltipItemBlank(4);
  486.             AddTooltipColorText(tmp, GetColortool(110, 140, 160, 255), True, False);
  487.         }
  488.         else
  489.         {
  490.             if (Len(item.Description) > 1)
  491.             {
  492.                 AddCrossLine();
  493.                 AddTooltipColorText(item.Description, GetColortool(178, 190, 207, 255), True, False);
  494.             }
  495.         }
  496.     }
  497. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement