shadowslayer133
20-01-09, 02:17 PM
Hey Everyone, Obama is in office and i'm done with the news so i made a lil something :)
You create an item and upon clicking it. (like activating it) A menu comes up and you can then Learn all the GM spells you need! This helps me so much when i create a new toon on my server.
local itemid = 22948
function Item_Trigger(item, event, player)
Item_menu(item, player)
end
function Item_menu(item, player)
item:GossipCreateMenu(100, player, 0)
item:GossipMenuAddItem(2, "Teach me every spell in stock",1, 0)
item:GossipMenuAddItem(4, "Scripted by Shadowslayer133!",2, 0)
item:GossipMenuAddItem(4, "Spell ID's",3, 0)
item:GossipSendMenu(player)
end
function OnSelect(item, event, player, id, intid, code)
---Spells---
if (intid == 1) then
player:LearnSpell(7)
player:LearnSpell(265)
player:LearnSpell(39258)
player:LearnSpell(35182)
player:LearnSpell(5)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(11)
player:LearnSpell(36356)
player:LearnSpell(35874)
player:LearnSpell(35912)
player:LearnSpell(38734)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(38505)
player:LearnSpell(1908)
player:LearnSpell(35886)
player:LearnSpell(41451)
player:LearnSpell(40395)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(2583)
player:LearnSpell(33719)
player:LearnSpell(22093)
player:LearnSpell(41034)
player:LearnSpell(25906)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(40303)
player:LearnSpell(12854)
player:LearnSpell(32837)
player:LearnSpell(36073)
player:LearnSpell(30449)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(27819)
player:LearnSpell(3180)
player:LearnSpell(37072)
player:LearnSpell(36220)
player:LearnSpell(38632)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26134)
player:LearnSpell(33535)
player:LearnSpell(35846)
player:LearnSpell(35869)
player:LearnSpell(31902)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(30944)
player:LearnSpell(40827)
player:LearnSpell(40859)
player:LearnSpell(30888)
player:LearnSpell(40860)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(39921)
player:LearnSpell(6061)
player:LearnSpell(35919)
player:LearnSpell(40861)
player:LearnSpell(43218)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(33836)
player:LearnSpell(38777)
player:LearnSpell(26339)
player:LearnSpell(26170)
player:LearnSpell(26139)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26126)
player:LearnSpell(25947)
player:LearnSpell(25840)
player:LearnSpell(25812)
player:LearnSpell(25805)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(25772)
player:LearnSpell(25749)
player:LearnSpell(25462)
player:LearnSpell(25425)
player:LearnSpell(25322)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(25260)
player:LearnSpell(25050)
player:LearnSpell(25033)
player:LearnSpell(24910)
player:LearnSpell(24843)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(24312)
player:LearnSpell(22876)
player:LearnSpell(22865)
player:LearnSpell(7033)
player:LearnSpell(17235)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(260)
player:LearnSpell(18209)
player:LearnSpell(747)
player:LearnSpell(1302)
player:LearnSpell(8985)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(17178)
player:LearnSpell(40938)
player:LearnSpell(33329)
player:LearnSpell(35354)
player:LearnSpell(27604)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26977)
player:LearnSpell(26546)
player:LearnSpell(15007)
player:LearnSpell(38538)
player:LearnSpell(38538)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(29973)
player:LearnSpell(40327)
player:LearnSpell(15636)
player:LearnSpell(30616)
player:LearnSpell(30890)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(30890)
player:LearnSpell(36240)
player:LearnSpell(512)
player:LearnSpell(37675)
player:LearnSpell(30129)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(41965)
player:LearnSpell(24910)
player:LearnSpell(38010)
player:LearnSpell(39594)
player:LearnSpell(40585)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(33129)
player:LearnSpell(41937)
player:LearnSpell(41938)
player:LearnSpell(38759)
player:LearnSpell(41410)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(31258)
player:LearnSpell(30280)
player:LearnSpell(32686)
player:LearnSpell(30878)
player:LearnSpell(31984)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(2602)
player:LearnSpell(41596)
player:LearnSpell(41131)
player:LearnSpell(40832)
player:LearnSpell(33804)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(16785)
player:LearnSpell(29879)
player:LearnSpell(23189)
player:LearnSpell(37427)
player:LearnSpell(10987)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(35941)
player:LearnSpell(35354)
player:LearnSpell(30383)
player:LearnSpell(38917)
player:LearnSpell(40938)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(21737)
player:LearnSpell(41276)
player:LearnSpell(39835)
player:LearnSpell(30522)
player:LearnSpell(38688)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(37897)
player:LearnSpell(41917)
player:LearnSpell(26093)
player:LearnSpell(37098)
player:LearnSpell(30115)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(37284)
player:LearnSpell(34436)
player:LearnSpell(17151)
player:LearnSpell(40251)
player:LearnSpell(40685)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(34922)
player:LearnSpell(40322)
player:LearnSpell(27741)
player:LearnSpell(27742)
player:LearnSpell(33340)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(42047)
player:LearnSpell(42048)
player:LearnSpell(42049)
player:LearnSpell(42051)
player:LearnSpell(33339)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(33342)
player:LearnSpell(33341)
player:LearnSpell(37383)
player:LearnSpell(27589)
player:LearnSpell(27254)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(27255)
player:LearnSpell(27258)
player:LearnSpell(27261)
player:LearnSpell(27249)
player:LearnSpell(26659)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26462)
player:LearnSpell(26463)
player:LearnSpell(26467)
player:LearnSpell(26468)
player:LearnSpell(26470)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26471)
player:LearnSpell(26476)
player:LearnSpell(26477)
player:LearnSpell(26478)
player:LearnSpell(26479)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26480)
player:LearnSpell(26481)
player:LearnSpell(24576)
player:LearnSpell(43343)
player:LearnSpell(10032)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(30971)
player:LearnSpell(8225)
player:LearnSpell(32453)
player:LearnSpell(23775)
player:LearnSpell(9454)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(23452)
player:LearnSpell(33686)
player:LearnSpell(31972)
player:LearnSpell(34068)
player:LearnSpell(41377)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(28524)
player:LearnSpell(46199)
player:GossipComplete()
end
end
RegisterItemGossipEvent(22948,1,"Item_Trigger")
RegisterItemGossipEvent(22948,2,"OnSelect")
Feel free to change it, like the spells that it teeches but please give me credit :)
Btw I made the item ID be 22948 Change it if you want but that is what i used for defualt :)
You create an item and upon clicking it. (like activating it) A menu comes up and you can then Learn all the GM spells you need! This helps me so much when i create a new toon on my server.
local itemid = 22948
function Item_Trigger(item, event, player)
Item_menu(item, player)
end
function Item_menu(item, player)
item:GossipCreateMenu(100, player, 0)
item:GossipMenuAddItem(2, "Teach me every spell in stock",1, 0)
item:GossipMenuAddItem(4, "Scripted by Shadowslayer133!",2, 0)
item:GossipMenuAddItem(4, "Spell ID's",3, 0)
item:GossipSendMenu(player)
end
function OnSelect(item, event, player, id, intid, code)
---Spells---
if (intid == 1) then
player:LearnSpell(7)
player:LearnSpell(265)
player:LearnSpell(39258)
player:LearnSpell(35182)
player:LearnSpell(5)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(11)
player:LearnSpell(36356)
player:LearnSpell(35874)
player:LearnSpell(35912)
player:LearnSpell(38734)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(38505)
player:LearnSpell(1908)
player:LearnSpell(35886)
player:LearnSpell(41451)
player:LearnSpell(40395)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(2583)
player:LearnSpell(33719)
player:LearnSpell(22093)
player:LearnSpell(41034)
player:LearnSpell(25906)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(40303)
player:LearnSpell(12854)
player:LearnSpell(32837)
player:LearnSpell(36073)
player:LearnSpell(30449)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(27819)
player:LearnSpell(3180)
player:LearnSpell(37072)
player:LearnSpell(36220)
player:LearnSpell(38632)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26134)
player:LearnSpell(33535)
player:LearnSpell(35846)
player:LearnSpell(35869)
player:LearnSpell(31902)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(30944)
player:LearnSpell(40827)
player:LearnSpell(40859)
player:LearnSpell(30888)
player:LearnSpell(40860)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(39921)
player:LearnSpell(6061)
player:LearnSpell(35919)
player:LearnSpell(40861)
player:LearnSpell(43218)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(33836)
player:LearnSpell(38777)
player:LearnSpell(26339)
player:LearnSpell(26170)
player:LearnSpell(26139)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26126)
player:LearnSpell(25947)
player:LearnSpell(25840)
player:LearnSpell(25812)
player:LearnSpell(25805)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(25772)
player:LearnSpell(25749)
player:LearnSpell(25462)
player:LearnSpell(25425)
player:LearnSpell(25322)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(25260)
player:LearnSpell(25050)
player:LearnSpell(25033)
player:LearnSpell(24910)
player:LearnSpell(24843)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(24312)
player:LearnSpell(22876)
player:LearnSpell(22865)
player:LearnSpell(7033)
player:LearnSpell(17235)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(260)
player:LearnSpell(18209)
player:LearnSpell(747)
player:LearnSpell(1302)
player:LearnSpell(8985)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(17178)
player:LearnSpell(40938)
player:LearnSpell(33329)
player:LearnSpell(35354)
player:LearnSpell(27604)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26977)
player:LearnSpell(26546)
player:LearnSpell(15007)
player:LearnSpell(38538)
player:LearnSpell(38538)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(29973)
player:LearnSpell(40327)
player:LearnSpell(15636)
player:LearnSpell(30616)
player:LearnSpell(30890)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(30890)
player:LearnSpell(36240)
player:LearnSpell(512)
player:LearnSpell(37675)
player:LearnSpell(30129)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(41965)
player:LearnSpell(24910)
player:LearnSpell(38010)
player:LearnSpell(39594)
player:LearnSpell(40585)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(33129)
player:LearnSpell(41937)
player:LearnSpell(41938)
player:LearnSpell(38759)
player:LearnSpell(41410)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(31258)
player:LearnSpell(30280)
player:LearnSpell(32686)
player:LearnSpell(30878)
player:LearnSpell(31984)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(2602)
player:LearnSpell(41596)
player:LearnSpell(41131)
player:LearnSpell(40832)
player:LearnSpell(33804)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(16785)
player:LearnSpell(29879)
player:LearnSpell(23189)
player:LearnSpell(37427)
player:LearnSpell(10987)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(35941)
player:LearnSpell(35354)
player:LearnSpell(30383)
player:LearnSpell(38917)
player:LearnSpell(40938)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(21737)
player:LearnSpell(41276)
player:LearnSpell(39835)
player:LearnSpell(30522)
player:LearnSpell(38688)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(37897)
player:LearnSpell(41917)
player:LearnSpell(26093)
player:LearnSpell(37098)
player:LearnSpell(30115)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(37284)
player:LearnSpell(34436)
player:LearnSpell(17151)
player:LearnSpell(40251)
player:LearnSpell(40685)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(34922)
player:LearnSpell(40322)
player:LearnSpell(27741)
player:LearnSpell(27742)
player:LearnSpell(33340)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(42047)
player:LearnSpell(42048)
player:LearnSpell(42049)
player:LearnSpell(42051)
player:LearnSpell(33339)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(33342)
player:LearnSpell(33341)
player:LearnSpell(37383)
player:LearnSpell(27589)
player:LearnSpell(27254)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(27255)
player:LearnSpell(27258)
player:LearnSpell(27261)
player:LearnSpell(27249)
player:LearnSpell(26659)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26462)
player:LearnSpell(26463)
player:LearnSpell(26467)
player:LearnSpell(26468)
player:LearnSpell(26470)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26471)
player:LearnSpell(26476)
player:LearnSpell(26477)
player:LearnSpell(26478)
player:LearnSpell(26479)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(26480)
player:LearnSpell(26481)
player:LearnSpell(24576)
player:LearnSpell(43343)
player:LearnSpell(10032)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(30971)
player:LearnSpell(8225)
player:LearnSpell(32453)
player:LearnSpell(23775)
player:LearnSpell(9454)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(23452)
player:LearnSpell(33686)
player:LearnSpell(31972)
player:LearnSpell(34068)
player:LearnSpell(41377)
player:GossipComplete()
end
if (intid == 1) then
player:LearnSpell(28524)
player:LearnSpell(46199)
player:GossipComplete()
end
end
RegisterItemGossipEvent(22948,1,"Item_Trigger")
RegisterItemGossipEvent(22948,2,"OnSelect")
Feel free to change it, like the spells that it teeches but please give me credit :)
Btw I made the item ID be 22948 Change it if you want but that is what i used for defualt :)