Ir para conteúdo

Featured Replies

Postado
  • Solução

Colocou dessa forma?

local boss = {

["fire overlord"] = {g_storage = 40064, p_storage = 60027},
["energy overlord"] = {g_storage = 40065, p_storage = 60028},
["ice overlord"] = {g_storage = 40066, p_storage = 60029},
["earth overlord"] = {g_storage = 40067, p_storage = 60030},
}




function onDeath(cid, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
local pid = Player(mostdamagekiller)


local t = boss[Creature(cid):getName():lower()]
if not t then
return true
end


Player(pid):setStorageValue(t.p_storage, 1)
setGlobalStorageValue(t.g_storage, -1)


return true
end




function onKill(cid, target)
if Creature(target):getName():lower() == "lord of the elements" then
Player(cid):setStorageValue(60031, 1)
end


return true
end


function onLogin(cid)
Player(cid):registerEvent("ElementalSpheresKill")
return true
end
  • Respostas 6
  • Visualizações 370
  • Created
  • Última resposta

Top Posters In This Topic

Posted Images

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo