Thought I would release my first customized script I have made. This is a customer pet trainer script which will teach every pet skill available while checking to make sure the player meets level and money requirements. While this script was completely coded by myself I used such scripts as Warpnpc and MorphNPC as guides to help teach myself (So if the creator of these reads this, thank you so much) This was compiled and works with Ascent v3449 so please let me know if you have any problems with it.
Download File
http://filebeam.com/3f70a3c748b8dcff06c4455639114b2f (compiled for v3449)
http://filebeam.com/58c4f0efc476f3e8fb941532145b55b9 ( compiled for ascent v3905 & works with latest trunk)
SQL code for NPC
Code:
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
(60000, 'Animal Magnetism', 'Custom Pet Trainer', '', 1, 0, 0, 0, 0, 0, 12749, 0, 0, 0, 12, 1, 1, '');
INSERT INTO creature_proto
(`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `mountdisplayid`, `equipmodel1`, `equipinfo1`, `equipslot1`, `equipmodel2`, `equipinfo2`, `equipslot2`, `equipmodel3`, `equipinfo3`, `equipslot3`, `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`)
VALUES
(60000, 70, 70, 35, 10000, 10000, 10000, 1, 1, 100, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 5, 5, 5, 5, 5, 5, 5, 1, 1, 0, '0', 0, 0, 0, 3, 8, 14, 0, 0);
* Hope this Pet trainer helps. If you find it useful please feel free to use if credit is given
* it works with my arcemu im not shure if it will work for you