Postado Abril 8, 2016 9 anos vou ver se esse funciona no meu ot ja testei uns script de look mais nenhum dá
Postado Abril 8, 2016 9 anos Autor Refiz o script, só tem 1 erro agora, a comparação de numeros, mas não sei como fazer... [8/4/2016 17:32:15] [Error - CreatureScript Interface] [8/4/2016 17:32:15] data/creaturescripts/scripts/lawl.lua:onLook [8/4/2016 17:32:15] Description: [8/4/2016 17:32:15] data/creaturescripts/scripts/lawl.lua:20: attempt to compare nil with number [8/4/2016 17:32:16] stack traceback: [8/4/2016 17:32:16] data/creaturescripts/scripts/lawl.lua:20: in function <data/creaturescripts/scripts/lawl.lua:1> function onLook(cid, thing, position, lookDistance) function getDeathsAndKills(cid, type) -- by vodka local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0 if (query:getID() ~= -1) then repeat d = d+1 until not query:next() query:free() end return d end getPoints = function(cid) local Info = db.getResult("SELECT `rep` FROM `players` WHERE `id` = " .. getPlayerGUID(cid) .. ";") local s = Info:getDataInt("s") Info:free() return s end if s <= -20 then x = "GranBigNoob" elseif s <= -10 then x = "Big Noob" elseif s <= -1 then x = "Noob" elseif s == 0 then x = "Citizen" elseif s >= 1 then x = "Avowed" elseif s >= 10 and s < 20 then x = "Respected" elseif s >= 20 and s < 30 then x = "Sagaz" elseif s >= 30 and s < 40 then x = "Domination" elseif s >= 40 and s < 20 then x = "Bloodbath" elseif s >= 50 then x = "Legendary" end if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Matou: ["..getDeathsAndKills(thing.uid, "kill").."] Players. \n"..(getPlayerSex(thing.uid) == 0 and "Ela" or "Ele").." ja Morreu: ["..getDeathsAndKills(thing.uid, "death").."] Vezes.\nReputação: "..s.." ("..x..") " ) end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.