• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Transmogrification Won't work (Rochet2) ones.

Status
Not open for further replies.

wolfz

Enthusiast
Hey, Im back here, with a new thread. I've recently got lua engine working, now I tried to make a transmogrification npc.

So I used Rochet2 transmog script for TrinityCore Lua

And I got this error: http://i.imgur.com/0Zj5Aie.jpg

Everytime going to that area, or login to that character. Also here is the .sql querry, I created it throu WoW SQL Generator (Yes, emudevs.com ones)

attention

Attention

INSERT INTO `creature_template` (`entry`,`difficulty_entry_1`,`difficulty_entry_2`,`difficulty_entry_3`,`KillCredit1`,`KillCredit2`,`modelid1`,`modelid2`,`modelid3`,`modelid4`,`name`,`subname`,`IconName`,`gossip_menu_id`,`minlevel`,`maxlevel`,`exp`,`faction_A`,`faction_H`,`npcflag`,`speed_walk`,`speed_run`,`scale`,`rank`,`mindmg`,`maxdmg`,`dmgschool`,`attackpower`,`dmg_multiplier`,`baseattacktime`,`rangeattacktime`,`unit_class`,`unit_flags`,`unit_flags2`,`dynamicflags`,`family`,`trainer_type`,`trainer_spell`,`trainer_class`,`trainer_race`,`minrangedmg`,`maxrangedmg`,`rangedattackpower`,`type`,`type_flags`,`lootid`,`pickpocketloot`,`skinloot`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`spell1`,`spell2`,`spell3`,`spell4`,`spell5`,`spell6`,`spell7`,`spell8`,`PetSpellDataId`,`VehicleId`,`mingold`,`maxgold`,`AIName`,`MovementType`,`InhabitType`,`HoverHeight`,`Health_mod`,`Mana_mod`,`Armor_mod`,`RacialLeader`,`questItem1`,`questItem2`,`questItem3`,`questItem4`,`questItem5`,`questItem6`,`movementId`,`RegenHealth`,`mechanic_immune_mask`,`flags_extra`,`ScriptName`,`WDBVerified`) VALUES (17979, 0, 0, 0, 0, 0, 8756, 0, 0, 0, 'Wolfz', 'Transmogrification', '', 0, 1, 80, 0, 35, 35, 0, 1, 1, 1, 80, 0, 0, 0, 0, 0, 2000, 2000, 1, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 1, 98685, 98685, 98685, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, '', 1);



 

Rochet2

Moderator / Eluna Dev
To help would probably need to test things.
Im not going to right now. Maybe tomorrow.

You could test yourself with disabling the script for example.
Or spawning the NPC to some other place.
etc etc etc
 

Rochet2

Moderator / Eluna Dev
Ok I tested the NPC and it crashes.
The NPC is somehow faulty.

npcflags should have 1 at least. Atm its 0.
The rank should not be 80.
For some reason the creature has dynamic flag: UNIT_DYNFLAG_TAPPED_BY_PLAYER "Lua_UnitIsTappedByPlayer usually used by (PCV's) Player Controlled Vehicle's".
The stat mod values are insanely high. At level 80 it can result in HP being 527175270, but its still under int32 max so it /might/ be valid never the less.

Not related to lua.


ps. After a bit of testing here and there, the error is produced by the rank being 80.
Use some of these values: http://collab.kpsn.org/display/tc/creature_template#creature_template-rank
 
Status
Not open for further replies.
Top