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
- Forums
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Ajuda Duvida Facil Script De Storage Moster
3
469
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

22 de março de 2012 às 15:25



info
Group: Cavaleiro
Joined: 02/07/08
Posts: 156
Reputation: +4
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
Edited Março 22 by Dersinho