Offical forum of LASP, a project to script all the areas in wow via LUA
HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­Donate!  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Need help;)

View previous topic View next topic Go down 
AuthorMessage
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: 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 Razz
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!"
Back to top Go down
View user profile http://www.nxwow.aowc.net
Darhan
Admin
Admin


Posts: 63
Join date: 2008-04-23

PostSubject: 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")
Back to top Go down
View user profile
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Need help;)   Thu May 08, 2008 3:41 pm

So, the thing you changed are the things that were wrong? should this work?
Back to top Go down
View user profile http://www.nxwow.aowc.net
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Need help;)   Thu May 08, 2008 4:02 pm

Did not work =/
Back to top Go down
View user profile http://www.nxwow.aowc.net
Darhan
Admin
Admin


Posts: 63
Join date: 2008-04-23

PostSubject: Re: Need help;)   Thu May 08, 2008 5:04 pm

Check Ac-web, i forgot some "s and one end Razz
Back to top Go down
View user profile
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: 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 Smile
Back to top Go down
View user profile http://www.nxwow.aowc.net
Darhan
Admin
Admin


Posts: 63
Join date: 2008-04-23

PostSubject: 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")
Back to top Go down
View user profile
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Need help;)   Thu May 08, 2008 7:02 pm

thx allot
Back to top Go down
View user profile http://www.nxwow.aowc.net
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Need help;)   Thu May 08, 2008 7:12 pm

Here's your reward for the help Very Happy

BOOMKIN POWER!
Back to top Go down
View user profile http://www.nxwow.aowc.net
Cholzzon
Spammer?


Posts: 30
Join date: 2008-05-08
Age: 15
Location: Sweden

PostSubject: Re: Need help;)   Thu May 08, 2008 7:19 pm

IT WORKS XD!!! THX ALLOT MAN!! Now i can finally script Wink
Back to top Go down
View user profile http://www.nxwow.aowc.net
 

Need help;)

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
LUA Area Scripting Project :: General :: Support! If you want to ask anything, do it here-
Post new topic   Reply to topic