Ir para conteúdo

Posts Recomendados

function onDeath(cid, corpse, killer)

local monstName = "Koshei The Deathless"

local Storage = 36205

 

if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then

if isInParty(killer[1]) == TRUE then

local players = getPartyMembers(getPartyLeader(killer[1]))

for i, k in ipairs(players) do

setPlayerStorageValue(k, Storage, 1)

end

doCreatureSay(cid, "'At least I have it back, my precious amulet. I am glad you didn\'t use it! I allow you to ...ahh....enter door.... ahh'.", TALKTYPE_ORANGE_1)

end

end

return TRUE

end

 

 

^ bom o script e esse mais reparei um erro ne o0''

ele funciona asim uma part de 2 player mata o bixu e ganha storage legal xD

mais eu fui tentar mata solo 1 player e nao ganhei storage matei umas 3 x pra ter certesa =/

se alguem puder me ajuda script facil pra quem entende ...funçao basica que o player ganhe storage mesmo em part ou nao vlw xDD

Editado por Dersinho
Link para o comentário
https://xtibia.com/forum/topic/182966-ajuda-duvida-facil-script-de-storage-moster/
Compartilhar em outros sites


function onDeath(cid, corpse, killer)
local monstName = "Koshei The Deathless"
local Storage = 36205

if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then
doCreatureSay(cid, "'At least I have it back, my precious amulet. I am glad you didn\'t use it! I allow you to ...ahh....enter door.... ahh'.", TALKTYPE_ORANGE_1)
if isInParty(killer[1]) == TRUE then
local players = getPartyMembers(getPartyLeader(killer[1]))
for i, k in ipairs(players) do
setPlayerStorageValue(k, Storage, 1)
end
else
setPlayerStorageValue(killer[1], Storage, 1)
end
end
return TRUE
end

Link para o comentário
https://xtibia.com/forum/topic/182966-ajuda-duvida-facil-script-de-storage-moster/#findComment-1221987
Compartilhar em outros sites

×
×
  • Criar Novo...