Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: ViridielLorael on January 03, 2013, 07:20:20 pm
-
Hello,
I've made a small lua script (for arcemu) that needs to learn some spells to a class when they login on the server. The wrong thing is; It isn't working. Could anybody be so kind to check the script I've made, and look what's wrong with It?
pastebin ; Vu00Y3N9
As second;
I've made a npc who will get you back to 'phase1' and/or will 'revive' you , If you're dead. It doesn't work either.
Could anybody check this script too and see what Is wrong?
pastebin ; qVztkZJA
As third;
I'm trying to create an object, when If you click on It then It would add an Item to your backpack.
And guess what? It Isn't working either.
pastebin ; vsRu1RvK
Thank you for reading.
-
All of these things can and should be created in the Database instead of creating scripts. Also, avoid ArcEmu.
-
I can't avoid ArcEmu, And I want to create this with a script Instead of using the database, could anybody help me with that? :)
-
Fix indentation and you will notice the first one immediately.
Also, say how or what does not work. Just "does not work" is NOT any error diagnosis. Is the behavior different from what you intended? Doesn't it compile? ELABORATE.
-
That's hard to say, there are no errors or anything. It just wont load.
-
this is not a good idea : if pPlayer:GetPlayerClass() = Priest then
I would prefer something like this : if pPlayer:GetPlayerClass() == Priest then
the syntax with "if" must be "==" not "="
-
That's hard to say, there are no errors or anything. It just wont load.
And how do you notice it does not load? And if it does not load, why do you think the scripts are bad, rather than just not being in the right directory?
-
That's hard to say, there are no errors or anything. It just wont load.
And how do you notice it does not load? And if it does not load, why do you think the scripts are bad, rather than just not being in the right directory?
It is in the right directory, but ; 1. If you talk to the NPC he won't do anything then just say 'Hi.' 2. You won't learn the spells when you login