Does anyone have the most up-to-date magictype structure?
UID = 0,
SpellID = 1,
Type = 2,
Crime = 4,
Ground = 5,
AOE = 6,
Target = 7,
Level = 8,
Cost = 9,
Power = 10,
CastTime = 11,
HitRate = 12,
Duration = 13,
Range = 14,
Distance = 15,
Status = 16,
RequiredProf = 17,
RequiredExp = 18,
RequiredLevel = 20,
XPSkill = 21,
WeaponID = 22,
ActiveTimes = 23,
AutoActive = 24,
FloorAttr = 25,
AutoLearn = 26,
LearnLevel = 27,
DropWeapon = 28,
StaminaCost = 29,
WeaponHit = 30,
UseItem = 31,
NextMagic = 32,
Delay = 33,
UseItemNum = 34,
Width = 35,
PushBack = 38,
TargetPush = 44,
CoolDown = 47
Quote:
Some "offsets" I've got, a lot are still missing unfortunately.
Code:UID = 0, SpellID = 1, Type = 2, Crime = 4, Ground = 5, AOE = 6, Target = 7, Level = 8, Cost = 9, Power = 10, CastTime = 11, HitRate = 12, Duration = 13, Range = 14, Distance = 15, Status = 16, RequiredProf = 17, RequiredExp = 18, RequiredLevel = 20, XPSkill = 21, WeaponID = 22, ActiveTimes = 23, AutoActive = 24, FloorAttr = 25, AutoLearn = 26, LearnLevel = 27, DropWeapon = 28, StaminaCost = 29, WeaponHit = 30, UseItem = 31, NextMagic = 32, Delay = 33, UseItemNum = 34, Width = 35, PushBack = 38, TargetPush = 44, CoolDown = 47
well that will work with StaminaUse,ManaUse etc because inside the client it says how much it uses etc , but there is some values the client does not give any info about it , so I cant compare it with magictype.dat, that's why I asked if anyone got it.Quote:
Anything missing is probably garbage or padding. Though, if it's truly important, just parse an item you know the stats of, read every offset, and name the offsets that match certain values accordingly. That's how I learned to parse the magictype for 4xxx.
True. But, as you loop through items and go from level to level (i.e. from level 1 ring to level 10 ring, to level 20, etc) you can easily figure out what the values correspond to.Quote:
well that will work with StaminaUse,ManaUse etc because inside the client it says how much it uses etc , but there is some values the client does not give any info about it , so I cant compare it with magictype.dat, that's why I asked if anyone got it.