Good guide thx![]()
Good guide thx![]()
No problem thanks for the read
great guide i must say,
very easy to read, understand, its very orginized
but only thing is i would like if it had more examples, like show what to add in every step of the way, show how it should look at dif steps, maybe even put in little challanges to help us learn it.
idk about u guys but i learn the best from actually doing somthing.
nontheless, +Rep
Remember to + Rep people who help you!
I am going to add a link for examples later tonight so your in luck
I will also be adding an advanced tutorial next week along with a video on compiling DLLs
i found out wat was Wrong
Last edited by Evilpape; 04-20-2008 at 12:31 AM. Reason: Found out wat was wrong
Alright good
Glad you fixed it
Alright, I have most of the basic commands down. But if I wanted to make it so that you start a fight with 5 mobs, and after those 5 die, another spawns, how would i do that?
Hey SectorSeven, I have a real quick question: I have it so my creature attacks it's enemys well I try to fight him but he doesn't cast anything, I'll put a short sample of the script:
function Archimonde_fingerofdeath(pUnit, Event)
Unit:CastSpell(31984)
end
RegisterUnitEvent (17968, 1, "Archimonde_fingerofdeath")
Here is the problem ascent.exe says:
Sql query failed due to [Column count doesn't match value count at row 1], Query: [REPLACE INTO creature_spawns VALUES(330275696,17968,0-4838.06,-1645.17,505.023,0.517572,018292,1720,0,0,0,0,0,0)]
scripts\Archimonde.LUA:29: calling 'CastSpell' on bad self (Unit expected, got table)
Im guessing, but change
Unit:CastSpell(31984)
to
pUnit:CastSpell(31984)
Nom Nom Nom :P
function Archimonde_fingerofdeath(pUnit, Event)
pUnit:CastSpell(31984, pTarget)
end
RegisterUnitEvent (17968, 1, "Archimonde_fingerofdeath")
That should work if it doesn't its a problem unrelated to LUA
Ok, I tried but it seems as though he won't attack anyone. I will retype the script up and let you guys know how it goes.
Thats a problem with your creature. His faction is frendly to you
He will attack me and I can attack him but I've tried everyone elses scripts such as yours and tried to make them like yours but he just hits me but doesnt use any spells. I'm going to try your Repack today, hopefully I get better results :/
EDIT: Your repack works thanks a lot SectorSeven!
Last edited by Shownomercy13; 04-22-2008 at 06:15 PM.
Lol ok. Show thats a problem with your SQL query or LUA script. Please post them both in code format.
nice it looks very useful