Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > World of Warcraft
You last visited: Today at 09:57

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

Advertisement



WoW Lua Script Hilfe

Discussion on WoW Lua Script Hilfe within the World of Warcraft forum part of the Popular Games category.

Reply
 
Old   #1
 
[LS]Michael's Avatar
 
elite*gold: 15
Join Date: Oct 2007
Posts: 450
Received Thanks: 474
WoW Lua Script Hilfe

Hallo ich habe da mal ne frage und zwar habe ich ein teleporter Npc Und den will ich nun eine funktion hinzufügen das er wen der Spieler dadrauf klickt MaxWeapon skill griegt
Es sieht im mom so aus das er nichts macht^^ auser porten

Quote:
function On_Gossip(pUnit, event, player)
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(2, "Neutral", 1, 0)
pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
pUnit:GossipMenuAddItem(2, "Killerzone", 4, 0)
pUnit:GossipSendMenu(player)
end

function Gossip_Submenus(pUnit, event, player, id, intid, code)
if(intid == 999) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(2, "Neutral", 1, 0)
pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
pUnit:GossipMenuAddItem(2, "Killerzone", 4, 0)
pUnit:GossipSendMenu(player)
end

if(intid == 1) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end

if(intid == 2) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end

if(intid == 3) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end

if(intid == 4) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(1, "Mall", 310, 0)
pUnit:GossipMenuAddItem(1, "Event", 311, 0)
pUnit:GossipMenuAddItem(1, "Lvl_Area_1-70", 313, 0)
pUnit:GossipMenuAddItem(1, "Lvl_Area_300+", 312, 0)
pUnit:GossipMenuAddItem(1, "Skills", 314, 0) <------ das ist die taste^^
pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
pUnit:GossipSendMenu(player)
end

if(intid == 300) then
player:Teleport(571, 5807.821289, 587.875366, 660.938782)
unit:GossipComplete(player)
end

if(intid == 301) then
player:Teleport(0, -8932.045898, 538.432983, 94.355003)
unit:GossipComplete(player)
end

if(intid == 302) then
player:Teleport(0, -4910.066406, -954.944641, 501.485260)
unit:GossipComplete(player)
end

if(intid == 303) then
player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
unit:GossipComplete(player)
end

if(intid == 304) then
player:Teleport(530, -4044.313477, -11908.476563, -2.447248)
unit:GossipComplete(player)
end

if(intid == 305) then
player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
unit:GossipComplete(player)
end

if(intid == 306) then
player:Teleport(0, 1735.158936, 238.984070, 62.853424)
unit:GossipComplete(player)
end

if(intid == 307) then
player:Teleport(1, -1290.126099, 148.322083, 129.706223)
unit:GossipComplete(player)
end

if(intid == 308) then
player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
unit:GossipComplete(player)
end

if(intid == 309) then
player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
unit:GossipComplete(player)
end

if(intid == 310) then
player:Teleport(1, 16221.326172, 16272.560547, 12.953391)
unit:GossipComplete(player)
end

if(intid == 311) then
player:Teleport(0, -9295.218750, 706.692688, 131.803024)
unit:GossipComplete(player)
end

if(intid == 312) then
player:Teleport(269, -1594.509644, 7104.408203, 32.412937)
unit:GossipComplete(player)
end

if(intid == 313) then
player:Teleport(0, -5236.575684, -1484.905029, 498.434570)
unit:GossipComplete(player)
end

[X]
end

RegisterUnitGossipEvent(222334, 1, "On_Gossip")
RegisterUnitGossipEvent(222334, 2,"Gossip_Submenus")
und er soll dan den spieler mittels Gm Comando :
.char advanceallskills 99999
die waffenfertikeiten auf max setzen blos das macht er nicht^^ (man ist der Faul) Joke^^
davor hatte ich noch das drin
Quote:
if(intid == 314) then
player:log.add(".char advanceallskills 99999")
unit:GossipComplete(player)
ander der stele [X] <-- schau wo das X ist
[LS]Michael is offline  
Old 04/13/2009, 14:47   #2
 
Hundekot's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 58
Received Thanks: 4
1. [no questions]
2. gehen weder GM befehle noch Waffenskill instant maxen auf Liveservern, da das Serverside ist, und nicht Clienside...
Dacher auch noch falsche Sektion, wenn du auf nem eig. / Pserver spielst wenn nicht, bist du einfach nur ein bisschen blöd :O
Hundekot is offline  
Old 04/13/2009, 14:53   #3
 
[LS]Michael's Avatar
 
elite*gold: 15
Join Date: Oct 2007
Posts: 450
Received Thanks: 474
1: wuste ich net
2: bin net blöd ich weis da es server side ist un ja ich habe ein eigen server^^
ich weis das wen man ein mop haut und dabei der waffen skill steigt wird er dan den server gesendet(das man nun ein mop haut) der server reagiert drauf schick ein packet zurück was dein skill steigen läst ^^ das weis ich^^
[LS]Michael is offline  
Old 11/20/2010, 23:48   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 30
Received Thanks: 1
Ziemlich alter thread aber falls noch Leute so ein Problem haben schreib ich hier mal wies norakerweiße gehen müsste

if(intid == 314) then
player:AdvanceAllSkills(450)
unit:GossipComplete(player)
end

Anmerkung: Wenn ich mich nicht irre müsste aber eig. das
unit:GossipComplete(player)
anders heißen nähmlich:
player:GossipComplete()
Andi489156 is offline  
Reply


Similar Threads Similar Threads
Cs Script Hilfe
08/16/2010 - Counter-Strike - 4 Replies
Also ich habe grad nen Longjump script ausprobiert und bin super zufrieden damit ! Nur stört mich eine Sache Unzwar er läuft automatisch an und springt auch automatisch nach oben und macht dann die longjump bewegungen , vielleicht kann mir jemand den script so bauen das er nur die longjump bewegungen auf knopfdruck macht und ich selber anlauf nehme ! Hier der Script : // 0 - 1 kzh_autoduck 0
Script Hilfe
07/19/2010 - AutoIt - 4 Replies
Hallo, schreibe grad ein kleines Script: Koda: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3>
PHP Script Hilfe
06/16/2010 - Web Development - 1 Replies
Hi, weiß wer was ich falsch mache? <html> <head> <title>Geschenk</title> </head> <body> <form> <textarea name=Putin rows=1 cols=20></textarea> <p>
Hilfe !!!! (Script)
05/18/2010 - Metin2 - 1 Replies
Hallo, Könnt ihr mir Bitte Helfen ich hab ein script gemacht und hatte ein Problem wurde aber gelöscht jetzt is wieder ein Problem da ich bitte euch mir zu helfen ! -Ich hab ein script und will wiesen wie ich in dieses script was einbauen kann das der oder die denn script startet und dann keine acctionenen mit der maus und mit der Tastatur machen kann so lange der script leuft pls Help me.:confused:
[Hilfe] Log In Script
08/03/2009 - AutoIt - 9 Replies
Hey Ja nochmal ich ^^ Wollte fragen ob sich jemand mal dieses script angucken kann und mir sagen kann warum das ab nem gewissen punkt nicht das macht was es soll ... Hab alles mögliche probiert schon seit 4std -_- Weiß nicht mehr was ich machen soll =X



All times are GMT +1. The time now is 09:57.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.