Hi everyone, I got some questions about some ascent's database settings, a BLP bug, some Cryects Tools which doesn't work as they are supposed to do, and about Lua scripting... As you can see, there's some different subjets, but I don't like to flood, and for me crating one post for each of my question is flooding... (so please forgive me if it's getting on your nerves
and also notice the fact that I'm french, so if you find a sentence that doesn't make any sence, it's normal, english isn't my native thongue
)
1 . BLP errorI got an error with customs BLP (that I converted into PNJ with WoW Image Converter v0.991, a file nammed "wowimage.jar", then edited with Photoshop CS3, and then converted back to BLP always with WoW Image Converter) : when I'm stuck to a NPC with custom skins (or a gameobject), it looks good, but the more I get away from him, the more he is getting black, till he's becoming completly black (without any texture)... So I think WoW Image Converter doesn't recognize well my PNJs... Is there a specific option on PNJ compression to enable when saving the PNJ ?
2 . Database Questions
2.1 Professions and Classes trainerSo when I create a NPC, I give him the flags to be a profession or a class trainer. But how do I clarify which profession or class e will be the master ?
2.2 NPC sayingsI want some NPCs to talk (you know, when you right-click them and a window appears with some text in it). I already find that I must give the flag "1" to my NPC, but where do I store the text he has to say ?
3 . Cryects ToolsSo, I tried to add WMOs and M2s with the FileInfo and LoadInfo tools from Cryects. I followed absolutely every single step of this wonderfull guide (edit : hey, I cannot post links

so this is the great guide from schlumpf), I verified every step about a thousand times, but when I run a modified map in WoW (of course I offsetfixed it, brought it in an MPQ named patch-2.MPQ written like that, run with Model Edit Fix...), the changes do not appears. And when I FileInfo this file again, the changes are in the file, so it's like WoW was just ignoring it.
The changes made under Noggit (textures and landscape changes) do appears.
My Noggit runs under WoW 1.12.1, my WoW under 2.4.2 with the Ascent that runs this version of the game.
So, in your opinion, what can be wrong ?
4 . Lua ScriptingBefore all, I'd like to say that I perfectly code PHP, and that PHP is based on C++, and Lua is based on C++, so it's not like I was trying to learn japanese
I wanted to do some scripts for my server, so I looked how scripts where done. I recognized all the function stuff
PHP Code:
function something(trigger1, trigger2, ...)
things in it, like SendChatMessage(type, ???, message)
function end
That's great, but in PHP in order to have a function working, you have to call it (it wont happen if you don't ask it to happen...)
So how do you call a lua function. For exemple if a player enters in an area, or if he speaks to someone, or if a NPC dies, or if you finish a quest... How do you launch the fonction ?
And, if it's possible, I'd like to know some "already made functions" (like FullCastSpellOnTarget or SendChatMessage) with all the trigers you must give to it for :
- Sending a chat message (I don't know how to make it /s, /e, /y, or with the NPC font color...)
- Make a NPC perform an animation
- spawn an NPC / gameobject
- delete a NPC / gameobject you just spawned
- create an item and give it to the player
- teleport the player somewhere
and I know you can make an if... then... thing, but how you get :
- an NPC life / mana
- if a character enters a zone
- if he sepaks to a NPC
- if he performs a spell / use an object
And I think thats it for now
So, first, thanks for reading me
and thanks in advance for answering one or more of my questions. If you want me to split my topic into smaller ones, just say it, I just didn't wanted to flood.
Bye !