Register for your free account! | Forgot your password?

Go Back   elitepvpers > World of Warcraft > WoW Private Server
You last visited: Today at 22:38

  • Please register to post and access all features, it's quick, easy and FREE!

 

Missing Spell Trainer Problem [Lua]

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 140
Received Thanks: 31
Question Missing Spell Trainer Problem [Lua]

Hi,

ich hab mir selbst ein Lua script geschrieben für die Fehlenden Spells! Doch i-wie funktioniert es nicht. Wenn ich ihn anklicke passiert nichts !

bitte keine auslach spam mails ist mein erstes selbst geschriebenes Lua Script!

Code:
function MissingSpellTrainer_OnGossipTalk(pUnit, event, player, pMisc)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("Ihr seit in einen Kampf verwickelt!")
else
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(2, "Missing Spells (Fehlende Zauber)", 1, 0)
pUnit:GossipSendMenu(player)
end
end

function MissingSpellTrainer_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("Ihr seit in einen Kampf verwickelt!")
else
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(2, "Missing Spells (Fehlende Zauber)", 1, 0)
pUnit:GossipSendMenu(player)
end

if (intid == 1) then
pUnit:GossipCreateMenu(99, player, 0)
if (player:GetPlayerClass() == "Druid") then
pUnit:GossipMenuAddItem(4, "Druid", 3, 0)
end
if (player:GetPlayerClass() == "Warrior") then
pUnit:GossipMenuAddItem(4, "Warrior", 4, 0)
end
if (player:GetPlayerClass() == "Deathknight") then
pUnit:GossipMenuAddItem(4, "Deathknight", 5, 0)
end
if (player:GetPlayerClass() == "Warlock") then
pUnit:GossipMenuAddItem(4, "Warlock", 6, 0)
end
if (player:GetPlayerClass() == "Hunter") then
pUnit:GossipMenuAddItem(4, "Hunter", 7, 0)
end
if (player:GetPlayerClass() == "Shaman") then
pUnit:GossipMenuAddItem(4, "Shaman", 8, 0)
pUnit:GossipSendMenu(player)
end
end


if (intid == 4) then
pUnit:LearnSpell(7366)
pUnit:LearnSpell(71)
end

if (intid == 3) then
pUnit:LearnSpell(5487)
pUnit:LearnSpell(1066)
end

if (intid == 5) then
pUnit:LearnSpell(50977)
pUnit:LearnSpell(53431)
end

if (intid == 6) then
pUnit:LearnSpell(34238)
pUnit:LearnSpell(25112)
pUnit:LearnSpell(691)
pUnit:LearnSpell(712)
end
end

RegisterUnitGossipEvent(333336, 1, "MissingSpellTrainer_OnGossipTalk")
RegisterUnitGossipEvent(333336, 2, "MissingSpellTrainer_OnGossipSelect")



Sevenface is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Hojo's Multibot (Spell Trainer v2.1a)
Hey guys, I have remade the spell trainer. This one is alot more durable. New Features: -Choose where to right click (goto the setup menu)...
29 Replies - CO2 Bots & Macros
Hojo's Multibot (Spell Trainer v2.0)
Hey guys, this should work for CO2 so I thaught Ide post here too. http://www.elitepvpers.com/forum/index.php?...&f=85&t=8166&s= Read ^ for more...
7 Replies - CO2 Bots & Macros
Hojo's Tao Spell Trainer
Hey all, I just finished Remaking my bot again after the one I made at school fucked up and wouldnt open on my PC computer...Either way does the same...
47 Replies - CO2 Bots & Macros



All times are GMT +1. The time now is 22:38.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.