Dimman
18-04-09, 04:10 PM
http://i387.photobucket.com/albums/oo316/acke123/dimman3.jpg
Hello MMoPro i just finished my Training Dummy Lua script... like 1 month after the Dummy release, i didn't know that i were the first one to make it and release it so its kinda cool lol :P
http://i387.photobucket.com/albums/oo316/acke123/Dimmansql.jpg
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('NPCID', "Dimmans Training Dummy", "", '', '0', '13', '0', '0', '0', '0', '1555', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('NPCID', '1', '1', '7', '6000000', '6000000', '1', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '100', '1', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
http://i387.photobucket.com/albums/oo316/acke123/Dimmanlua-1.jpg
function TrainingDummy_OnSpawn(pUnit,Event)
pUnit:Root(1)
pUnit:SetCombatMeleeCapable(1)
pUnit:SetCombatRangedCapable(1)
pUnit:SetCombatSpellCapable(1)
pUnit:SetCombatCapable(1)
pUnit:CastSpell(1908)
end
pUnit:SendChatMessage(14, 0, "MADE BY «Dimman» @MMoPRO. Do not attemt to change this simple text, if you are changing it it will crash your core and destroy all your scripts with tomatoes ")
end
RegisterUnitEvent(NPCID, 1, "TrainingDummy_OnSpawn")
http://i387.photobucket.com/albums/oo316/acke123/Dimmandownloadcopy.jpg
«Dimman» (http://www.mmopro.net/forums/members/-dimman-.html)
Hello MMoPro i just finished my Training Dummy Lua script... like 1 month after the Dummy release, i didn't know that i were the first one to make it and release it so its kinda cool lol :P
http://i387.photobucket.com/albums/oo316/acke123/Dimmansql.jpg
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('NPCID', "Dimmans Training Dummy", "", '', '0', '13', '0', '0', '0', '0', '1555', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('NPCID', '1', '1', '7', '6000000', '6000000', '1', '1', '0', '0', '0', '1', '1', '0', '0', '0', '0', '100', '1', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
http://i387.photobucket.com/albums/oo316/acke123/Dimmanlua-1.jpg
function TrainingDummy_OnSpawn(pUnit,Event)
pUnit:Root(1)
pUnit:SetCombatMeleeCapable(1)
pUnit:SetCombatRangedCapable(1)
pUnit:SetCombatSpellCapable(1)
pUnit:SetCombatCapable(1)
pUnit:CastSpell(1908)
end
pUnit:SendChatMessage(14, 0, "MADE BY «Dimman» @MMoPRO. Do not attemt to change this simple text, if you are changing it it will crash your core and destroy all your scripts with tomatoes ")
end
RegisterUnitEvent(NPCID, 1, "TrainingDummy_OnSpawn")
http://i387.photobucket.com/albums/oo316/acke123/Dimmandownloadcopy.jpg
«Dimman» (http://www.mmopro.net/forums/members/-dimman-.html)