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

info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: 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
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

@up acabei de ver isso, tambem como nao tinha visto que lol -'
info
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

Continua '-',não tem otro script?
info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

@Slicer bug encontrado.
@SkyDarkyes tente usar isso no login.lua registerCreatureEvent(cid, "corpseDecay")
oque o lek passo foi registerCreatureEvent("corpseDecay")
Edited Julho 22 by Maenilse
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: 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
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: noé

ah tendeu, so to falando que o bug tambem tava no login.lua ![]()
info
Group: Campones
Joined: 24/05/10
Posts: 31
Reputation: +11
Tibia Character: Omega Snap

Tenta esse \/
creaturescripts.xml
<event type="death" name="death" event="script" value="death.lua"/>
login.lua
registerCreatureEvent(cid, "death")
death.lua
Edited Julho 22 by R1B31R0
info
Group: Visconde
Joined: 06/04/11
Posts: 350
Reputation: +8
Tibia Character: 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
Group: Infante
Joined: 27/01/13
Posts: 1.7k
Reputation: +104
Gender: Masculino

Nbb vlw ![]()







info
Group: Conde
Joined: 20/09/12
Posts: 711
Reputation: +86
Tibia Character: 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