(28-04-2010 22:26)wla64 a écrit : Sans être méchant il faudra rectifié sa :
Citation :--Commande #spell.lua Codé par Neø pour Felena-Online
Le script venait initialement de moi =/ Et je comprend toujours pas pourquoi ça ne marche pas
[LUA]Problème avec un script très important
|
(29-04-2010 05:55)Sadikum a écrit : Riful tu pourrais me dire si le code suivant fonctionne :
[code=lua]local SPELL_MSG = "#spell"
function PlayerOnChat(event, pPlayer, message, type, language)
local LCM = message:lower()
local entry = { 16771, 4594, 5491, 16681, 8308, 3039, 4215, 4582, 4090, 16658, 28474, 28474, 17520, 3032, 17514, 4568, 5171, 16646, 0, 0, 4217, 16655 }
if(LCM == SPELL_MSG) then
pPlayer:SpawnCreature(entry[pPlayer:GetPlayerClass() + pPlayer:GetTeam()], pPlayer:GetX() + 1, pPlayer:GetY() + 1, pPlayer:GetZ(), pPlayer:GetO()*3.14, 0, 120000)
end
end
RegisterServerHook(16, "PlayerOnChat")[/code]
Ou dans le cas contraire me dire si le problème reste le même ou s'il y a une erreur en console.