Jonthe838's Weapon Master
====================
Hi i have been working on some scripts to my server all day :P
this is one of the scripts i made ^^
its a weapon master that teaches evrything...
Here is The .lua:
And here is the SQL:Code:function matrix_main_menu(pUnit, player) pUnit:GossipCreateMenu(3544, player, 0) pUnit:GossipMenuAddItem(6, "Weapon skillz", 21, 0) pUnit:GossipSendMenu(player) end function matrix_on_gossip_talk(pUnit, event, player) matrix_main_menu(pUnit, player) end function matrix_on_gossip_select(pUnit, event, player, id, intid, code, pMisc) if(intid == 1) then player:Teleport(0,-13271.959961,149.105515,34.464458) pUnit:GossipComplete(player) end if(intid == 21) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(0, "Weapon Skills", 25, 0) pUnit:GossipSendMenu(player) end if(intid == 76) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(1, "Bows", 84, 0) pUnit:GossipMenuAddItem(1, "Crossbows", 85, 0) pUnit:GossipMenuAddItem(1, "Guns", 86, 0) pUnit:GossipMenuAddItem(1, "Thrown", 87, 0) pUnit:GossipMenuAddItem(1, "Wands", 88, 0) pUnit:GossipMenuAddItem(2, "Go Back", 100, 0) pUnit:GossipSendMenu(player) end if(intid == 77) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(1, "One-Handed Axes", 89, 0) pUnit:GossipMenuAddItem(1, "One-Handed Maces", 90, 0) pUnit:GossipMenuAddItem(1, "One-Handed Swords", 91, 0) pUnit:GossipMenuAddItem(1, "Daggers", 92, 0) pUnit:GossipMenuAddItem(1, "Fist Weapons", 93, 0) pUnit:GossipMenuAddItem(2, "Go Back", 100, 0) pUnit:GossipSendMenu(player) end if(intid == 78) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(1, "Two-Handed Axes", 94, 0) pUnit:GossipMenuAddItem(1, "Two-Handed Maces", 95, 0) pUnit:GossipMenuAddItem(1, "Two-Handed Swords", 96, 0) pUnit:GossipMenuAddItem(1, "Staves", 97, 0) pUnit:GossipMenuAddItem(1, "Polearms", 98, 0) pUnit:GossipMenuAddItem(2, "Go Back", 100, 0) pUnit:GossipSendMenu(player) end if(intid == 100) then pUnit:GossipCreateMenu(3544, player, 0) pUnit:GossipMenuAddItem(6, "Weapon skillz", 21, 0) pUnit:GossipSendMenu(player) endossipSendMenu(player) end if(intid == 25) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(0, "Ranged Weapons", 76, 0) pUnit:GossipMenuAddItem(0, "One-Handed Weapons", 77, 0) pUnit:GossipMenuAddItem(0, "Two-Handed Weapons", 78, 0) pUnit:GossipMenuAddItem(2, "Go Back", 100, 0) pUnit:GossipSendMenu(player) end if(intid == 84) then player:LearnSpell(264) end if(intid == 85) then player:LearnSpell(5011) end if(intid == 86) then player:LearnSpell(266) end if(intid == 87) then player:LearnSpell(2764) end if(intid == 88) then player:LearnSpell(5009) end if(intid == 89) then player:LearnSpell(196) end if(intid == 90) then player:LearnSpell(198) end if(intid == 91) then player:LearnSpell(201) end if(intid == 92) then player:LearnSpell(1180) end if(intid == 93) then player:LearnSpell(15590) end if(intid == 94) then player:LearnSpell(197) end if(intid == 95) then player:LearnSpell(199) end if(intid == 96) then player:LearnSpell(202) end if(intid == 97) then player:LearnSpell(227) end if(intid == 98) then player:LearnSpell(200) end end RegisterUnitGossipEvent(100010, 1, "matrix_on_gossip_talk") RegisterUnitGossipEvent(100010, 2, "matrix_on_gossip_select")
Btw this is one of my first scripts so go easy on meCode:INSERT INTO creature_proto (entry, minlevel, maxlevel, faction, minhealth, maxhealth, mana, scale, npcflags, attacktime, mindamage, maxdamage, rangedattacktime, rangedmindamage, rangedmaxdamage, respawntime, armor, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, combat_reach, bounding_radius, auras, boss, money, invisibility_type, death_state) VALUES (100010, 83, 83, 35, 1600000, 1600000, 180000, 1.7, 1, 1800, 150, 250, 1800, 500, 650, 36000, 0, 0, 0, 0, 0, 0, 0, 1, 0, "MEMO", 2, 0, 0, 0); INSERT INTO creature_names (entry, `name`, Subname, Flags1, type, Family, Rank, unk4, SpellDataID, male_displayid, female_displayid, unknown_float1, unknown_float2, Civilian, Leader, info_str) VALUES (100010,"Ancient War Veteran","Weapon Master",1,7,0,0,0,NULL,27020,27020,1, 1,1,NULL, '');^^
Pics:
Enjoy!

![[Release] Weapon Master - lua + sql](https://www.ownedcore.com/forums/./ocpbanners/1/3/8/1/5/6/8/4191561def4ce6642a8f9df827e3a26b.gif)
![TradeSafe Middleman [Release] Weapon Master - lua + sql](https://www.ownedcore.com/assets/mm/images/wits.png)
![CoreCoins [Release] Weapon Master - lua + sql](https://www.ownedcore.com/forums/images/styles/OwnedCoreFX/addimg/wicc.png)



^^

Reply With Quote![[Release] Weapon Master - lua + sql](https://www.ownedcore.com/images/ba/g/b2.gif)







enjoy!