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 | 
 

 i did a script

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


Posts: 37
Join date: 2008-04-27

PostSubject: i did a script   Sat May 17, 2008 6:45 am

i did a script with a lua generator but it seams that it has soem bugges cause the script did not work can you see what is wrong pls thx
[function firegod_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "Welcome to your death!!")
Unit:RegisterEvent("firegod_knockback", 60000, 50)
Unit:RegisterEvent("firegod_blast", 30000, 100)
Unit:RegisterEvent("firegod_servant",1000,0)
Unit:RegisterEvent("firegod_servant",1000,0)
Unit:RegisterEvent("firegod_servant",1000,0)
Unit:RegisterEvent("firegod_servant",1000,0)
end

function firegod_knockback(pUnit, Event)
pUnit:CastSpell(38538, pUnit:GetRandomPlayer(0))
end

function firegod_blast(pUnit, Event)
pUnit:FullCastSpellOnTarget(20565, pUnit:GetRandomPlayer(0))
end

function Servant_Spawn(pUnit, Event)
pUnit:SpawnCreature(40010, 5446.49, -2790.56, 1461.70, , 14, 60000)
end

function servant_Spawn2(pUnit, Event)
pUnit:SpawnCreature(40010, 5427.89, -2797.95, 1462.65, , 14, 60000)
end

function firegod_servant(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(0)
pUnit:RegisterEvent("Servant_Spawn",1000,1)
Unit:RegisterEvent("firegod_servant",1000,0)
end
end

function firegod_servant(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(0)
pUnit:RegisterEvent("servant_Spawn2",1000,1)
Unit:RegisterEvent("firegod_servant",1000,0)
end
end

function firegod_servant(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(0)
end
end

function firegod_servant(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:FullCastSpell(0)
end
end

function firegod_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Chicken runn away while you can !!")
end

function firegod_OnDied(Unit, Event)
Unit:RemoveEvents()
Unit:SendChatMessage(12, 0, "Nooo how can this be i have been defeated")
end

function firegod_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "Peauny did you think you could defeat me")
end

RegisterUnitEvent(40009, 1, "firegod_OnCombat")
RegisterUnitEvent(40009, 2, "firegod_OnLeaveCombat")
RegisterUnitEvent(40009, 3, "firegod_OnKilledTarget")
RegisterUnitEvent(40009, 4, "firegod_OnDied")]
Back to top Go down
View user profile
sufa
Spammer?


Posts: 37
Join date: 2008-04-27

PostSubject: Re: i did a script   Sat May 17, 2008 6:47 am

he is supposed to do some spells after some seconds
Back to top Go down
View user profile
Wartick
Admin
Admin


Posts: 23
Join date: 2008-04-23
Age: 14
Location: Finland

PostSubject: Re: i did a script   Sun May 18, 2008 10:45 am

Sorry had no time to read it all but does the "[" and "]" Exist in the Script? If so del em.

And look at Ascent-world.exe what error it gives up. Also check ID's
Back to top Go down
View user profile http://lasp.forummotion.com
sufa
Spammer?


Posts: 37
Join date: 2008-04-27

PostSubject: Re: i did a script   Tue May 20, 2008 6:19 am

it is giving unexpected symbol near ,
Back to top Go down
View user profile
Wartick
Admin
Admin


Posts: 23
Join date: 2008-04-23
Age: 14
Location: Finland

PostSubject: Re: i did a script   Thu May 22, 2008 2:48 pm

Tell the num or Row or just check self
Back to top Go down
View user profile http://lasp.forummotion.com
 

i did a script

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