Hi all,

I've ran into a little roadblock while creating a WHILE loop within a procedure that's intended to go through every row within a table, world.creature_template.

Query runs fine in my database, no warnings or errors, but it's not actually changing anything at all. Affected rows are always at 0.

Link to the code is below, thanks in advance.

https://srcb.in/YVuGJQU4o8

Some sample records:

entrydifficulty_entry_1difficulty_entry_2difficulty_entry_3KillCredit1KillCredit2modelid1modelid2modelid3modelid4namesubnameIconNamegossip_menu_idminlevelmaxlevelexpfactionnpcflagspeed_walkspeed_runscalerankdmgschoolBaseAttackTimeRangeAttackTimeBaseVarianceRangeVarianceunit_classunit_flagsunit_flags2dynamicflagsfamilytypetype_flagslootidpickpocketlootskinlootPetSpellDataIdVehicleIdmingoldmaxgoldAINameMovementTypeHoverHeightHealthModifierManaModifierArmorModifierDamageModifierExperienceModifierRacialLeadermovementIdRegenHealthmechanic_immune_maskspell_school_immune_maskflags_extraScriptNameVerifiedBuild
2900025499025275000KanrethadMaster of Death09090035011.14286100200020001110204800700000000011250111100100012340
3000000382000Forest Spider056022010.857141002000200011102048031130005880000SmartAI11111110100100012340
3100000145000Furbolg01203501.21.14286100200020001110204800000000000011111100100012340
3600000367000Harvest Golem01112014011.1428610020002000111020480093276836000013211111111001163840012340
38000005035503600Defias Thug03407010.8571410020002000111020480070383800027SmartAI11111110100100012340
4000000373000Kobold Miner067026010.85714100200020001110204800704040000512SmartAI11111110100100012340

generated 2024-03-31 22:08:23 by HeidiSQL 12.1.0.6537