Piechu
New Member
When you kill a human , deads are disappear. Please fix me that bug. I Give rep ++
Don't bump so fast, wait a day or so.
And learn to write english, I don't understand your question and alot with me.
local corpse_ids = {
[0] = 3065,
[1] = 3058
}
function onPrepareDeath(cid, deathList)
if getPlayerItemSlot(cid, 2).itemid == 2173 then
doCreatureSetDropLoot(cid, false)
local corpse, killers = doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), ""
for i = 1, math.min(getConfigInfo('deathAssistCount') + 1, #deathList) do
killers = killers .. (i == 1 and "" or ", ") .. (isMonster(deathList[i]) and "a " or "") .. getCreatureName(deathList[i])
end
end
return true
end
>,<gl
Lua:local corpse_ids = { [0] = 3065, [1] = 3058 } function onPrepareDeath(cid, deathList) if getPlayerItemSlot(cid, 2).itemid == 2173 then doCreatureSetDropLoot(cid, false) local corpse, killers = doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), "" for i = 1, math.min(getConfigInfo('deathAssistCount') + 1, #deathList) do killers = killers .. (i == 1 and "" or ", ") .. (isMonster(deathList[i]) and "a " or "") .. getCreatureName(deathList[i]) end end return true end
local message = [[WElkom to This ot Gz OWNER Cassek
!buypremuim=premium
!createguild=guildmaker
Spells :
:exevo pala=paladin
:exevo druid=druid
:exevo Knight=knight
:exevo Sorc=sorcerer
When you have Guild with members you only have to say
!go an the have the same outfit of yours
)
]]
function onLogin(cid)
registerCreatureEvent(cid, "Advance")
registerCreatureEvent(cid, "reward")
registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- make arena rooms free
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
doPlayerPopupFYI(cid, message)
registerCreatureEvent(cid, "PlayerDeath")
--registerCreatureEvent(cid, "MEDALS") This is Nahruto's Metal System for killing someone, Dont add this unless you use it.--
registerCreatureEvent(cid, "KilledMonstersCounter")
registerCreatureEvent(cid, "playeradvance")
return TRUE
end