Forum > Serverside Modding

[QUESTION] /Lua\ ; Some questions.

<< < (2/2)

noc:
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 "="

schlumpf:

--- Quote from: "ViridielLorael" ---That's hard to say, there are no errors or anything. It just wont load.
--- End quote ---
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?

ViridielLorael:

--- Quote from: "schlumpf" ---
--- Quote from: "ViridielLorael" ---That's hard to say, there are no errors or anything. It just wont load.
--- End quote ---
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?
--- End quote ---

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

Navigation

[0] Message Index

[*] Previous page

Go to full version