[Release] Weapon Master - lua + sql menu

User Tag List

Results 1 to 9 of 9
  1. #1
    Jonthe838's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Weapon Master - lua + sql

    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:

    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")
    And here is the SQL:
    Code:
    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, '');
    Btw this is one of my first scripts so go easy on me ^^

    Pics:



    Enjoy!
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


    [Release] Weapon Master - lua + sql
  2. #2
    Aelus's Avatar Active Member
    Reputation
    72
    Join Date
    Jan 2007
    Posts
    687
    Thanks G/R
    0/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good model, was going to do something like this, but you just saved me the time.

    +rep



  3. #3
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very Nice, Looks good

  4. #4
    drewproject86's Avatar Member
    Reputation
    5
    Join Date
    Apr 2008
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    gonna try it out ill rep u if its functional good idea and work

    EDIT: worked +Rep
    Last edited by drewproject86; 12-23-2008 at 01:34 AM.

  5. #5
    Djfrederick's Avatar Banned
    Reputation
    127
    Join Date
    Sep 2008
    Posts
    380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice mate,

    It looks like You got it all working. +Rep for sure.

  6. #6
    yrref's Avatar Active Member
    Reputation
    42
    Join Date
    Dec 2006
    Posts
    376
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work there. Rapecookies x2 for u

    https://www.ownedcore.com/forums/wow-guides/226193-total-beginners-guide-world-warcraft.html

  7. #7
    JaRRu's Avatar Member
    Reputation
    2
    Join Date
    Oct 2008
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What the eck, its work!, thanks

  8. #8
    Jonthe838's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx enjoy!
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


  9. #9
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not to be accusing but the script has the script from the Matrix NPC, and i can tell from how it is made all he did is cut out the rest of the script, im not sure if this is true but It may be, but if it isn't, very nice!

Similar Threads

  1. [Release] Boss Fight! Lua & Sql x2
    By svedin in forum WoW EMU General Releases
    Replies: 10
    Last Post: 01-05-2009, 08:12 AM
  2. [Release] King Murloc!! - Included LUA+SQL
    By FinnZor in forum WoW EMU General Releases
    Replies: 23
    Last Post: 12-27-2008, 01:07 PM
  3. [Release] Mall Guard!! - Included LUA+SQL
    By FinnZor in forum WoW EMU General Releases
    Replies: 41
    Last Post: 10-11-2008, 05:12 AM
  4. [Release] Gnome Elementalists Lua and SQL
    By kreegoth in forum WoW EMU General Releases
    Replies: 11
    Last Post: 09-10-2008, 08:58 PM
  5. [Release][LUA][SQL] Selin Fireheart
    By sheepking in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-11-2008, 11:40 AM
All times are GMT -5. The time now is 01:22 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search