Bladeren bron

Updated "F_IsCharm" function to support all latest enchants. (#6391)

Please note that there are some gaps in between these ID ranges, but since we did the same with ID 4700 - 4999, i figured it should be fine.

Fixed #6389
Everade 3 jaren geleden
bovenliggende
commit
17d58f0559
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      npc/other/Global_Functions.txt

+ 2 - 1
npc/other/Global_Functions.txt

@@ -46,6 +46,7 @@
 //= 2.26 Added "F_getpositionname". [Capuche]
 //= 2.27 Added "F_GetPlatinumSkills". [mazvi]
 //= 2.28 Added "close3". [Capuche]
+//= 2.29 Updated "F_IsCharm" to support all latest enchants [Everade]
 //============================================================ 
 
 //////////////////////////////////////////////////////////////////////////////////
@@ -765,5 +766,5 @@ function	script	close3	{
 //////////////////////////////////////////////////////////////////////////////////
 function	script	F_IsCharm	{
 	.@id = getarg(0);
-	return ((.@id >= 4700 && .@id < 5000) || (.@id >= 29000 && .@id <= 29162));
+	return ((.@id >= 4700 && .@id <= 4999) || (.@id >= 29000 && .@id <= 29689) || (.@id >= 310000 && .@id <= 311091 ));
 }