ModStruct problem

03/13/2025 15:21 bob31450#1
Hello everyone, so here I am updating old program to me, and I have 2/3 problems.

To start I can not know if my ModStruct are correct , some are good but others do not work after tests I have performed.I tried with the toolbox to look but nothing corecing with the figure that I have.

Local $PlusDemons = StringInStr($ModStruct, "A0848210", 0, 1) ; +10vs Demons
Local $PlusDragons = StringInStr($ModStruct, "A0948210", 0, 1) ; +10vs Dragons
Local $PlusPlants = StringInStr($ModStruct, "A0348210", 0, 1) ; +10vs Plants
Local $PlusUndead = StringInStr($ModStruct, "A0048210", 0, 1) ; +10vs Undead
Local $PlusTengu = StringInStr($ModStruct, "A0748210", 0, 1) ; +10vs Tengu
; New +10vsMonster Mods 07/10/2018 - Thanks to Savsuds
Local $PlusCharr = StringInStr($ModStruct, "0A014821", 0 ,1) ; +10vs Charr
Local $PlusTrolls = StringInStr($ModStruct, "0A024821", 0 ,1) ; +10vs Trolls
Local $PlusSkeletons = StringInStr($ModStruct, "0A044821", 0 ,1) ; +10vs Skeletons
Local $PlusGiants = StringInStr($ModStruct, "0A054821", 0 ,1) ; +10vs Giants
Local $PlusDwarves = StringInStr($ModStruct, "0A064821", 0 ,1) ; +10vs Dwarves
Local $PlusDragons = StringInStr($ModStruct, "0A094821", 0 ,1) ; +10vs Dragons
Local $PlusOgres = StringInStr($ModStruct, "0A0A4821", 0 ,1) ; +10vs Ogres

I have the same problem with runes

Local $ModStruct = GetModStruct($aItem)
Local $SupVigor = StringInStr($ModStruct, "C202EA27", 0, 1) ; Mod struct for Sup vigor rune
Local $WindWalker = StringInStr($ModStruct, "040430A5060518A7", 0, 1) ; Windwalker insig
Local $MinorMyst = StringInStr($ModStruct, "05033025012CE821", 0, 1) ; Minor Mysticism
Local $SupEarthPrayers = StringInStr($ModStruct, "32BE82109033025", 0, 1) ; Sup earth prayers
Local $Prodigy = StringInStr($ModStruct, "C60330A5000528A7", 0, 1) ; Prodigy insig
Local $SupDom = StringInStr($ModStruct, "30250302E821770", 0, 1) ; Superior Domination
Local $Shamans = StringInStr($ModStruct, "080430A50005F8A", 0, 1) ; Shamans insig
Local $MinorSpawning = StringInStr($ModStruct, "0124E821", 0, 1) ; Minor Spawning
Local $MinorEnergyStorage = StringInStr($ModStruct, "010CE821", 0, 1) ; Minor Energy Storage
Local $MinorFastCasting = StringInStr($ModStruct, "0100E821", 0, 1) ; Minor Fast Casting
Local $MinorIllusion = StringInStr($ModStruct, "0101E821", 0, 1) ; Minor Illusion
Local $MinorSoulReap = StringInStr($ModStruct, "0106E821", 0, 1) ; Minor SoulReaping
Local $Tormentor = StringInStr($ModStruct, "EC010824", 0, 1) ; Tormentor's Insignia
Local $Sentinel = StringInStr($ModStruct, "FB010824", 0, 1) ; Sentinel's Insignia
Local $MinorDivine = StringInStr($ModStruct, "0110E821", 0, 1) ; Minor Divine Favor
Local $MinorInspiration = StringInStr($ModStruct, "0103E821", 0, 1) ; Minor Inspiration Magic
Local $Nightstalker = StringInStr($ModStruct, "E1010824", 0, 1) ; Nightstalker's Insignia
Local $MinorVigor = StringInStr($ModStruct, "C202E827", 0, 1) ; Rune of Minor Vigor
Local $MajorVigor = StringInStr($ModStruct, "CC202E927", 0, 1) ; Rune of Major Vigor

if someone has this information or can tell me how to retrieve them thank you in advance.

then I would like to know the difference between EnterChallengeForeign() and EnterChallenge() because 1 out of 3 times I have a code 007 and the problem seems to come from EnterChallengeForeign() or WaitMapLoading() because the coop has the same number as the city


and finally unable to find a function to recycle the runes on items by looking through all the programs I can have


I hope the translation will be correct thank you in advance for your help
03/18/2025 13:35 Underavelvetmoon#2
Quote:
Originally Posted by bob31450 View Post
Hello everyone, so here I am updating old program to me, and I have 2/3 problems.

To start I can not know if my ModStruct are correct , some are good but others do not work after tests I have performed.I tried with the toolbox to look but nothing corecing with the figure that I have.

Local $PlusDemons = StringInStr($ModStruct, "A0848210", 0, 1) ; +10vs Demons
Local $PlusDragons = StringInStr($ModStruct, "A0948210", 0, 1) ; +10vs Dragons
Local $PlusPlants = StringInStr($ModStruct, "A0348210", 0, 1) ; +10vs Plants
Local $PlusUndead = StringInStr($ModStruct, "A0048210", 0, 1) ; +10vs Undead
Local $PlusTengu = StringInStr($ModStruct, "A0748210", 0, 1) ; +10vs Tengu
; New +10vsMonster Mods 07/10/2018 - Thanks to Savsuds
Local $PlusCharr = StringInStr($ModStruct, "0A014821", 0 ,1) ; +10vs Charr
Local $PlusTrolls = StringInStr($ModStruct, "0A024821", 0 ,1) ; +10vs Trolls
Local $PlusSkeletons = StringInStr($ModStruct, "0A044821", 0 ,1) ; +10vs Skeletons
Local $PlusGiants = StringInStr($ModStruct, "0A054821", 0 ,1) ; +10vs Giants
Local $PlusDwarves = StringInStr($ModStruct, "0A064821", 0 ,1) ; +10vs Dwarves
Local $PlusDragons = StringInStr($ModStruct, "0A094821", 0 ,1) ; +10vs Dragons
Local $PlusOgres = StringInStr($ModStruct, "0A0A4821", 0 ,1) ; +10vs Ogres

I have the same problem with runes

Local $ModStruct = GetModStruct($aItem)
Local $SupVigor = StringInStr($ModStruct, "C202EA27", 0, 1) ; Mod struct for Sup vigor rune
Local $WindWalker = StringInStr($ModStruct, "040430A5060518A7", 0, 1) ; Windwalker insig
Local $MinorMyst = StringInStr($ModStruct, "05033025012CE821", 0, 1) ; Minor Mysticism
Local $SupEarthPrayers = StringInStr($ModStruct, "32BE82109033025", 0, 1) ; Sup earth prayers
Local $Prodigy = StringInStr($ModStruct, "C60330A5000528A7", 0, 1) ; Prodigy insig
Local $SupDom = StringInStr($ModStruct, "30250302E821770", 0, 1) ; Superior Domination
Local $Shamans = StringInStr($ModStruct, "080430A50005F8A", 0, 1) ; Shamans insig
Local $MinorSpawning = StringInStr($ModStruct, "0124E821", 0, 1) ; Minor Spawning
Local $MinorEnergyStorage = StringInStr($ModStruct, "010CE821", 0, 1) ; Minor Energy Storage
Local $MinorFastCasting = StringInStr($ModStruct, "0100E821", 0, 1) ; Minor Fast Casting
Local $MinorIllusion = StringInStr($ModStruct, "0101E821", 0, 1) ; Minor Illusion
Local $MinorSoulReap = StringInStr($ModStruct, "0106E821", 0, 1) ; Minor SoulReaping
Local $Tormentor = StringInStr($ModStruct, "EC010824", 0, 1) ; Tormentor's Insignia
Local $Sentinel = StringInStr($ModStruct, "FB010824", 0, 1) ; Sentinel's Insignia
Local $MinorDivine = StringInStr($ModStruct, "0110E821", 0, 1) ; Minor Divine Favor
Local $MinorInspiration = StringInStr($ModStruct, "0103E821", 0, 1) ; Minor Inspiration Magic
Local $Nightstalker = StringInStr($ModStruct, "E1010824", 0, 1) ; Nightstalker's Insignia
Local $MinorVigor = StringInStr($ModStruct, "C202E827", 0, 1) ; Rune of Minor Vigor
Local $MajorVigor = StringInStr($ModStruct, "CC202E927", 0, 1) ; Rune of Major Vigor

if someone has this information or can tell me how to retrieve them thank you in advance.

then I would like to know the difference between EnterChallengeForeign() and EnterChallenge() because 1 out of 3 times I have a code 007 and the problem seems to come from EnterChallengeForeign() or WaitMapLoading() because the coop has the same number as the city


and finally unable to find a function to recycle the runes on items by looking through all the programs I can have


I hope the translation will be correct thank you in advance for your help
As far as I know, the modstructs should all still be correct, the problem is that when they updated the GW compiler it changed how some of the AutoIt functions work. The modstructs have stayed the same since pretty much the beginning of Guild Wars.

I havent ran anything since the complier update, but maybe one day I will translate the functions to Py4GW - thats probably the best bet.