creio eu que nao seja na source, mas se caso for, creio que seja em player.cpp ou player.h
info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

/\ É nas sources -'
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

/\ nao necessariamente... tem uns 10 topicos com esse ms pedido aki na area de pedidos e duvidas e no de resolvidos... eu ms ja fiz umas 2x esse script... da pra fazer com onDeath... soh procurar um pouco ¬¬
info
Group: Campones
Joined: 26/12/12
Posts: 68
Reputation: +1
Tibia Character: Skailord

Toma
local table = {
[1] = 5978, --[vocation] = id do corpse
[2] = 1112,
[3] = 1113,
[4] = 1114
}
local function transform(pos, id, voc)
local item = getTileItemById(pos, id)
if item and item.uid > 1 then
doTransformItem(item.uid, table[voc])
doDecayItem(item.uid or 0)
end
end
function onDeath(cid, corpse)
if not isPlayer(cid) or not table[getPlayerVocation(cid)] then return true end
addEvent(transform, 15, getThingPos(cid), corpse.itemid, getPlayerVocation(cid))
return true
end
Login.lua
registerCreatureEvent("corpseDecay")
Creditos: @Slicer
Edited Julho 22 by Skailord
info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

@SkyDarkyes é como eu disse, nao era necessariamente ser nas source, era so dar uma procurada que voce achava em lua.
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

Só pq agora tenho as sources compiladas para windows,vcs me fala que tem script a é brincadeira neh
info
Group: Conde
Joined: 06/07/13
Posts: 634
Reputation: +142
Gender: Masculino
Tibia Character: Kayinsz

kkkk oloko sahsah
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

uso que tag man?
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

<event type="death" name="corpseDecay" event="script" value="corpseDecay.lua"/>
algu +/- assim...
e sources podem abrir muitos 'horizontes'... kk'
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

Erro:
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

hã.... como EXATAMENTE tu botou tudo ae? ¬¬
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

pasta do ot/data/creaturescript/script CorpseDecay
local table = {
[1] = 5978, --[vocation] = id do corpse
[2] = 1112,
[3] = 1113,
[4] = 1114
}
local function transform(pos, id, voc)
local item = getTileItemById(pos, id)
if item and item.uid > 1 then
doTransformItem(item.uid, table[voc])
doDecayItem(item.uid or 0)
end
end
function onDeath(cid, corpse)
if not isPlayer(cid) or not table[getPlayerVocation(cid)] then return true end
addEvent(transform, 15, getThingPos(cid), corpse.itemid, getPlayerVocation(cid))
return true
end
login
registerCreatureEvent("corpseDecay")
e a sua tag
info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

tente usar essa tag.
<event type="death" name="corpseDecay" script="corpseDecay.lua"/>
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

Tambem nao deu




info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino
Galera gostaria de saber,em que lugar da soucer,edito o corpo das vocs exemplo minato,um corpo etc...