Em 04/01/2017 at 16:03, Tulio271 disse:
pra eu finalizar, preciso saber se vc tem source e se consegue editar...
cria um arquivo lua em talkactions/scripts e coloca isso dentro:
testa.. não consigo testar em 1.2 (obs: vai ser preciso adicionar comando na source! aguardo a resposta ^)
function onSay(player, words, param)
local config = {
name = player:getName(), -- checa o nome do player
level = player:getLevel(), -- checa o level do player
vocation = player:getVocation():getName(), -- checa a vocação do player
vip = player:getPremiumDays() -- checa a quantidade de dias premium
}
local armadura = 0
local earth = 0
local fire = 0
local ice = 0
local physical = 0
local holy = 0
local death = 0
local energy = 0
for i=1, 10 do
local item = player:getSlotItem(i)
if item.uid > 0 then
if i == getItemInfo(item.itemid).wieldPosition then
local att = getItemInfo(item.itemid).defense
if att == 0 then
att = getItemInfo(item.itemid).armor
end
armadura = armadura + att
earth = earth + getItemInfo(item.itemid).absorbPercentEarth
fire = fire + getItemInfo(item.itemid).absorbPercentFire
ice = ice + getItemInfo(item.itemid).absorbPercentIce
physical = physical + getItemInfo(item.itemid).absorbPercentPhysical
holy = holy + getItemInfo(item.itemid).absorbPercentHoly
death = death + getItemInfo(item.itemid).absorbPercentDeath
energy = energy + getItemInfo(item.itemid).absorbPercentEnergy
end
end
end
player:popupFYI(cid, "Name: "..config.name.."\nLevel: "..config.level.."\nVocation: "..config.vocation.."\nArmadura: "..armadura.."\nVip: "..config.vip.." Days\nEarth: "..earth.."\nFire: "..fire.."\nIce: "..ice.."\nPhysical: "..physical.."\nHoly: "..holy.."\nDeath: "..death.."\nEnergy: "..energy)
return true
end