Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 5 of 5
  1. #1
    Senior Sergeant
    MikExV™'s Avatar
    Join Date
    Feb 2010
    Location
    Ohio
    Posts
    117
    Post Thanks / Like
    Rep Power
    15
    Reputation
    35

    [Lua/SQL] T10 Giver


    Register to remove this ad
    Lua Script below
    Code:
    function On_Gossip(pUnit, event, player)
        pUnit:GossipCreateMenu(3544, player, 0)
        pUnit:GossipMenuAddItem(0, "Welcome To The T10 Giver!", 99, 0)
        pUnit:GossipMenuAddItem(0, "Deathknight T10", 1, 0)
        pUnit:GossipMenuAddItem(0, "Mage T10", 2, 0)
        pUnit:GossipMenuAddItem(0, "Druid Resto T10", 3, 0)
        pUnit:GossipMenuAddItem(0, "Druid Feral T10", 4, 0)
        pUnit:GossipMenuAddItem(0, "Druid Balance T10", 5, 0)
        pUnit:GossipMenuAddItem(0, "Hunter T10", 6, 0)
        pUnit:GossipMenuAddItem(0, "Paladin Holy T10", 7, 0)
        pUnit:GossipMenuAddItem(0, "Paladin Ret T10", 8, 0)
        pUnit:GossipMenuAddItem(0, "Priest Holy T10", 9, 0)
        pUnit:GossipMenuAddItem(0, "Priest Shadow T10", 10, 0)
        pUnit:GossipMenuAddItem(0, "Page 2", 11, 0)
        pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    
    if (intid == 11) then
        pUnit:GossipCreateMenu(3543, player, 0)
        pUnit:GossipMenuAddItem(0, "Rogue T10", 12, 0)
        pUnit:GossipMenuAddItem(0, "Shaman Resto T10", 13, 0)
        pUnit:GossipMenuAddItem(0, "Shaman Enhancement T10", 14, 0)
        pUnit:GossipMenuAddItem(0, "Shaman Elemental T10", 15, 0)
        pUnit:GossipMenuAddItem(0, "Warlock T10", 16, 0)
        pUnit:GossipMenuAddItem(0, "Warrior T10", 17, 0)
        pUnit:GossipMenuAddItem(0, "Paladin Prot T10", 18, 0)
        pUnit:GossipMenuAddItem(0, "Deathknight T10(Tank)", 19, 0)
        pUnit:GossipSendMenu(player)
    end
    
    if (intid == 1) then
    player:AddItem(50094, 1)
    player:AddItem(50095, 1)
    player:AddItem(50096, 1)
    player:AddItem(50097, 1)
    player:AddItem(50098, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 2) then
    player:AddItem(50106, 1)
    player:AddItem(50107, 1)
    player:AddItem(50108, 1)
    player:AddItem(50109, 1)
    player:AddItem(50113, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 3) then
    player:AddItem(50824, 1)
    player:AddItem(50825, 1)
    player:AddItem(50826, 1)
    player:AddItem(50827, 1)
    player:AddItem(50828, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 4) then
    player:AddItem(50824, 1)
    player:AddItem(50825, 1)
    player:AddItem(50826, 1)
    player:AddItem(50827, 1)
    player:AddItem(50828, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 5) then
    player:AddItem(50819, 1)
    player:AddItem(50820, 1)
    player:AddItem(50821, 1)
    player:AddItem(50822, 1)
    player:AddItem(50823, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 6) then
    player:AddItem(50114, 1)
    player:AddItem(50115, 1)
    player:AddItem(50116, 1)
    player:AddItem(50117, 1)
    player:AddItem(50118, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 7) then
    player:AddItem(50865, 1)
    player:AddItem(50866, 1)
    player:AddItem(50867, 1)
    player:AddItem(50868, 1)
    player:AddItem(50869, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 8) then
    player:AddItem(50324, 1)
    player:AddItem(50325, 1)
    player:AddItem(50326, 1)
    player:AddItem(50327, 1)
    player:AddItem(50328, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 9) then
    player:AddItem(50765, 1)
    player:AddItem(50766, 1)
    player:AddItem(50767, 1)
    player:AddItem(50768, 1)
    player:AddItem(50769, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 10) then
    player:AddItem(50391, 1)
    player:AddItem(50392, 1)
    player:AddItem(50393, 1)
    player:AddItem(50394, 1)
    player:AddItem(50396, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 12) then
    player:AddItem(50087, 1)
    player:AddItem(50088, 1)
    player:AddItem(50089, 1)
    player:AddItem(50090, 1)
    player:AddItem(50105, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 13) then
    player:AddItem(50835, 1)
    player:AddItem(50836, 1)
    player:AddItem(50837, 1)
    player:AddItem(50838, 1)
    player:AddItem(50839, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 14) then
    player:AddItem(50830, 1)
    player:AddItem(50831, 1)
    player:AddItem(50832, 1)
    player:AddItem(50833, 1)
    player:AddItem(50834, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 15) then
    player:AddItem(50841, 1)
    player:AddItem(50842, 1)
    player:AddItem(50843, 1)
    player:AddItem(50844, 1)
    player:AddItem(50845, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 16) then
    player:AddItem(50240, 1)
    player:AddItem(50241, 1)
    player:AddItem(50242, 1)
    player:AddItem(50243, 1)
    player:AddItem(50244, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 17) then
    player:AddItem(50078, 1)
    player:AddItem(50079, 1)
    player:AddItem(50080, 1)
    player:AddItem(50081, 1)
    player:AddItem(50082, 1)
    pUnit:GossipComplete(player)
    end
    if (intid == 18) then
    player:AddItem(50860, 1)
    player:AddItem(50861, 1)
    player:AddItem(50862, 1)
    player:AddItem(50863, 1)
    player:AddItem(50864, 1)
    pUnit:GossipComplete(player)
    end
    
    if (intid == 19) then
    player:AddItem(50853, 1)
    player:AddItem(50854, 1)
    player:AddItem(50855, 1)
    player:AddItem(50856, 1)
    player:AddItem(50857, 1)
    pUnit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(96633, 1, "On_Gossip")
    RegisterUnitGossipEvent(96633, 2, "Gossip_Submenus")
    SQL Below

    Code:
    insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `killcredit1`, `killcredit2`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `leader`) 
    values ('96633', "T10 Giver", "Want Some T10?", '', '0', '10', '0', '0', '0', '0', '384', '384', '384', '384', '1', '1', '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`, `summonguard`) 
    values ('96633', '255', '255', '35', '900000000', '900000000', '0', '2.0', '1', '100', '0', '9999', '9999', '0', '0', '0', '0', '1000', '90000000', '9000', '9000', '9000', '9000', '9000', '9000', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0', '1');



    › See More: [Lua/SQL] T10 Giver

  2. #2
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Post Thanks / Like
    Rep Power
    19
    Reputation
    188
    Nice release, when I can.

  3. #3
    Senior Sergeant
    MikExV™'s Avatar
    Join Date
    Feb 2010
    Location
    Ohio
    Posts
    117
    Post Thanks / Like
    Rep Power
    15
    Reputation
    35
    Thank you

  4. #4
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    18
    Reputation
    113
    Nice Nice

  5. #5
    Beginner

    Join Date
    May 2010
    Posts
    36
    Post Thanks / Like
    Rep Power
    15
    Reputation
    4

    Register to remove this ad
    Bump!




  6. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Visitors found this page by searching for:

T10 lua

lua t10

t10 additem

additem lua

lua player additem

t10 death knight additem

SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 03:19 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org