Continua
info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

parabens... conseguisse achar um bug q eu nunca vi na minha vida e ainda por cima q n faz o menor sentido haha
tente tirar isso do script..
--[vocation] = id do corpse
se n functionar... hã... sei la.. good luck
info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé

@up acabei de ver isso, tambem como nao tinha visto que lol -'
info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

Continua '-',não tem otro script?
info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé

@Slicer bug encontrado.
@SkyDarkyes tente usar isso no login.lua registerCreatureEvent(cid, "corpseDecay")
oque o lek passo foi registerCreatureEvent("corpseDecay")
Editado Julho 22 por Maenilse
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

@Slicer bug encontrado.
wtf?
blz, achasse um problema... mas em tese, o bug q ta no console dele ali n eh esse ae n kk' se fosse esse, soh daria um erro de 'creature not found' e daria no login.lua ;p
info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé

ah tendeu, so to falando que o bug tambem tava no login.lua ![]()
info
Grupo: Campones
Registrado: 24/05/10
Posts: 31
Reputação: +11
Char no Tibia: Omega Snap

Tenta esse \/
creaturescripts.xml
<event type="death" name="death" event="script" value="death.lua"/>
login.lua
registerCreatureEvent(cid, "death")
death.lua
Editado Julho 22 por R1B31R0
info
Grupo: Visconde
Registrado: 06/04/11
Posts: 350
Reputação: +8
Char no Tibia: Mulekepirado

cara eu tenho um aki funciona perfeita mento aki no meu ot, num sei se vai funcionar no seu olhae:
function onLogin(cid)registerCreatureEvent(cid, "ChangeCorpse")return trueendfunction onDeath(cid, corpse, deathList)local voc = {[1] = 5960, --- naruto[2] = 5962, --- naruto[3] = 6008, --- naruto[4] = 5960, --- kyuubi[5] = 5960, --- kyuubi[6] = 5960, --- kyuubi[7] = 5962, --- kyuubi[8] = 5962, --- kyuubi[9] = 5962, --- kyuubi[10] = 5962, --- kyuubi[11] = 5962, --- kyuubi[12] = 5963, --- kyuubi[14] = 5963, --- hashirama[15] = 5964, --- hashirama[16] = 5965, --- hashirama[17] = 5966, --- madara[18] = 5967, --- madara[19] = 5966, --- madara[20] = 5966, --- madara}local newCorpse = voc[getPlayerVocation(cid)]if newCorpse and newCorpse ~= corpse.itemid thenaddEvent(function (pos, newId, oldId)local corpse = getTileItemById(pos, oldId)if corpse.uid <= 1 then return enddoTransformItem(corpse.uid, newId)doDecayItem(corpse.uid)end, 1, getThingPos(cid), newCorpse, corpse.itemid)endreturn trueend
usa essas duas tags no creaturescript.xml, lembrando nao prescisa colocar nada no login.lua:
<event type="death" name="ChangeCorpse" event="script" value="changecorpse.lua"/><event type="login" name="RegisterChangeCorpse" event="script" value="changecorpse.lua"/>
![]()
info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino

Nbb vlw ![]()







info
Grupo: Conde
Registrado: 20/09/12
Posts: 711
Reputação: +86
Char no Tibia: noé
tente usar assim o script
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)) end return true end