Forum > Serverside Modding

[SOLVED] Add a custom spell to a trainer

(1/2) > >>

Unbreakables:
Sorry for my bad english, I'm french.

Hello everyone !

I want to add a custom spell to a trainer, I add it on my database in npc_trainer, but it's not working. I don't find any thing in the Spell DBC, so I think it is on mangos source files, but I don't know where.

Thanks !

Amaroth:
I doubt anyone can help you while you provide only such a little of information.

Do you have edited spell.dbc in your custom patch?
Do you have edited spell.dbc in your server data folder?
Did you restart server after all changes?
Did you delete Cache?
Would you provide soke kind of screenshot what your row in npc_trainer looks like?
Are you sure that your NPC has all kind of flags set correctly?
Does your spell work when you try to learn and use it?

And far more questions. There are pretty many things which could go wrong here.

Unbreakables:

--- Quote from: "Amaroth" ---Do you have edited spell.dbc in your custom patch?
Do you have edited spell.dbc in your server data folder?
Did you restart server after all changes?
Did you delete Cache?
Does your spell work when you try to learn and use it?

--- End quote ---

Yes, I have edited and it's work. I can learn it with .learn . But trainer don't want to learn it "is not a learning spell".


--- Quote from: "Amaroth" ---Would you provide soke kind of screenshot what your row in npc_trainer looks like?
--- End quote ---

[attachment=5:115v7q0o]ss+(2015-05-04+at+11.39.33).png[/attachment:115v7q0o]


--- Quote from: "Amaroth" ---Are you sure that your NPC has all kind of flags set correctly?
--- End quote ---

I use a shaman trainor, so I think, yes.

I add some screenshot of the spell in the editor.

[attachment=4:115v7q0o]ss+(2015-05-04+at+11.44.43).png[/attachment:115v7q0o]
[attachment=3:115v7q0o]ss+(2015-05-04+at+11.44.50).png[/attachment:115v7q0o]
[attachment=2:115v7q0o]ss+(2015-05-04+at+11.45.10).png[/attachment:115v7q0o]
[attachment=1:115v7q0o]ss+(2015-05-04+at+11.45.13).png[/attachment:115v7q0o]
[attachment=0:115v7q0o]ss+(2015-05-04+at+11.45.33).png[/attachment:115v7q0o]

Amaroth:
Well, everything seems to be fine, I'm sorry, I can't find anything wrong... Maybe someone else will have some kind of good idea.

stoneharry:
I think there is a spell flag that prevents it being used in a trainer. Trainers are purely server side too I believe. I'm not entirely sure.

Navigation

[0] Message Index

[#] Next page

Go to full version