
Offical forum of LASP, a project to script all the areas in wow via LUA |
| | | Author | Message |
|---|
Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Need help;) Thu May 08, 2008 3:00 pm | |
| | Code: | function Example_OnCombat(Devastator, 1) Unit:SendChatMessage(12, 0, "Die! You pittifull Creature!") end
function Example_OnLeaveCombat(Devastator, 2) Unit:SendChatMessage(12, 0, "Just as i thought... You've got no chanse against the Sunwell!) end
function Example_OnDied(Devastator, 4) Unit:SendChatMessage(12, 0, "We.. Can't... Fall!") end
function Example_OnKilledTarget(Devastator, 3) Unit:SendChatMessage(12, 0, "Just as i thought... You have no chanse againt us!)
RegisterUnitEvent(111205, 1, "Example_OnCombat") RegisterUnitEvent(111205, 2, "Example_OnLeaveCombat") RegisterUnitEvent(111205, 3, "Example_OnDied") RegisterUnitEvent(111205, 4, "Example_OnKilledTarget")
|
I wonder if this Lua will work? I am still just a beginner. And this is my first script ever  The mobs is supposed to Yell "Die! You pittifull Creature" and enter combat
Then if he leaves combat. He is supposed to yell "Just as i thought... You've got no chanse against the Sunwell! and leave combat
And if he dies he yells "We.. Can't... Fall!"
And if he kills the attacker. he yells "Just as i thought... You have no chanse against us!" |
|  | | Darhan Admin

Posts: 63 Join date: 2008-04-23
 | Subject: Re: Need help;) Thu May 08, 2008 3:28 pm | |
| | Code: | function Example_OnCombat(Unit, Event) Unit:SendChatMessage(14, 0, "Die! You pittifull Creature!") end
function Example_OnLeaveCombat(Unit, Event) Unit:SendChatMessage(14, 0, "Just as i thought... You've got no chanse against the Sunwell!) end
function Example_OnDied(Unit, Event) Unit:SendChatMessage(14, 0, "We.. Can't... Fall!") end
function Example_OnKilledTarget(Unit, Event) Unit:SendChatMessage(14, 0, "Just as i thought... You have no chanse againt us!)
RegisterUnitEvent(111205, 1, "Example_OnCombat") RegisterUnitEvent(111205, 2, "Example_OnLeaveCombat") RegisterUnitEvent(111205, 3, "Example_OnDied") RegisterUnitEvent(111205, 4, "Example_OnKilledTarget") |
|
|  | | Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Re: Need help;) Thu May 08, 2008 3:41 pm | |
| So, the thing you changed are the things that were wrong? should this work? |
|  | | Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Re: Need help;) Thu May 08, 2008 4:02 pm | |
| |
|  | | Darhan Admin

Posts: 63 Join date: 2008-04-23
 | Subject: Re: Need help;) Thu May 08, 2008 5:04 pm | |
| Check Ac-web, i forgot some "s and one end  |
|  | | Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Re: Need help;) Thu May 08, 2008 5:05 pm | |
| i did, do you tink you can make the correctly Lua script? and i can see what was wrong with mine... please  |
|  | | Darhan Admin

Posts: 63 Join date: 2008-04-23
 | Subject: Re: Need help;) Thu May 08, 2008 6:14 pm | |
| | Code: | -- Only works with the newest core :)
function Cholzzon_OnCombat(Unit, Event) Unit:SendChatMessage(14, 0, "Die! You pittifull Creature!") end
function Cholzzon_OnLeaveCombat(Unit, Event) Unit:SendChatMessage(14, 0, "Just as i thought... You've got no chanse against the Sunwell!") end
function Cholzzon_OnDied(Unit, Event) Unit:SendChatMessage(14, 0, "We.. Can't... Fall!") end
function Cholzzon_OnKilledTarget(Unit, Event) Unit:SendChatMessage(14, 0, "Just as i thought... You have no chanse againt us!") end
RegisterUnitEvent(111205, 1, "Cholzzon_OnCombat") RegisterUnitEvent(111205, 2, "Cholzzon_OnLeaveCombat") RegisterUnitEvent(111205, 3, "Cholzzon_OnKilledTarget") RegisterUnitEvent(111205, 4, "Cholzzon_OnDied")
-- Older Core version:
function Cholzzon_OnCombat(Unit, Event) Unit:SendChatMessage(12, 0, "Die! You pittifull Creature!") end
function Cholzzon_OnLeaveCombat(Unit, Event) Unit:SendChatMessage(12, 0, "Just as i thought... You've got no chanse against the Sunwell!") end
function Cholzzon_OnDied(Unit, Event) Unit:SendChatMessage(12, 0, "We.. Can't... Fall!") end
function Cholzzon_OnKilledTarget(Unit, Event) Unit:SendChatMessage(12, 0, "Just as i thought... You have no chanse againt us!) end
RegisterUnitEvent(111205, 1, "Cholzzon_OnCombat") RegisterUnitEvent(111205, 2, "Cholzzon_OnLeaveCombat") RegisterUnitEvent(111205, 3, "Cholzzon_OnKilledTarget") RegisterUnitEvent(111205, 4, "Cholzzon_OnDied") |
|
|  | | Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Re: Need help;) Thu May 08, 2008 7:02 pm | |
| |
|  | | Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Re: Need help;) Thu May 08, 2008 7:12 pm | |
| Here's your reward for the help   BOOMKIN POWER! |
|  | | Cholzzon Spammer?

Posts: 30 Join date: 2008-05-08 Age: 15 Location: Sweden
 | Subject: Re: Need help;) Thu May 08, 2008 7:19 pm | |
| IT WORKS XD!!! THX ALLOT MAN!! Now i can finally script  |
|  | | |
| Page 1 of 1 |
| | Permissions of this forum: | You cannot reply to topics in this forum
| |
| |
| |
|