Thread Tools Display Modes
08-22-07, 01:58 PM   #1
ogogo
A Defias Bandit
Join Date: Jun 2006
Posts: 3
Bräuchte mal hilfe bei nem slashcommand

Ich bräuchte mal hilfe mein addon geht soweit es ist momentan noch nen
ganz einfaches wie .z.b nen voice mod nur ohne voice.

bei mir sieht meine .lua so aus

Code:
function quote()
		quote = math.random(1,6);

		if quote == 1 then SendChatMessage("Quote: <Name> sagt: Leckt mich am ARSCH !!!", "SAY"); end
		if quote == 2 then SendChatMessage("Quote: <Name> sagt: Ach geh kacken !!!","SAY"); end
		if quote == 3 then SendChatMessage("Quote: <Name> sagt: Huhu. Sorry aber jeder auf der Autobahn wollte UNBEDINGT langsamer sein als ich","SAY"); end
		if quote == 4 then SendChatMessage("Quote: <Name> sagt: Rrrrrwwwwllllll !!!","SAY"); end
		if quote == 5 then SendChatMessage("Quote: <Name> schreit : equip-*****es!1","SAY"); end
		if quote == 6 then SendChatMessage("Quote: <Name> sagt: Ich weiss nur die nici kann gut mit würsten umgehn!","SAY"); end

end
momentan muss ich ja nun " /script quote() " schreiben um das addon auszuführen
wie muss ich das dann machen damit ich nur " /aq " schreibe damit er ein zufälliges postet ???

ich hab schon ein paar posts durchgeguckt auch bei WIKI was gefunden doch das nicht so richtig verstanden da ich noch neu bin falls es nicht zu schwer ist wäre ich um hilfe sehr dankbar mfg

ameba

Last edited by ogogo : 08-22-07 at 02:52 PM.
  Reply With Quote
08-22-07, 02:40 PM   #2
Kaomie
A Scalebane Royal Guard
 
Kaomie's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 438
Was auch immer Sie versuchen, zu tun, sind Ihre Anführungsstriche schreckliches und unhöfliches lol
__________________
Kaomie
"WE LOTS OF PEOPLE FROM STRONG SERVER GUILDS" - Trade Channel
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Bräuchte mal hilfe bei nem slashcommand


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off