up
info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

up
Poste o creatureevent responsável pela etapa dos canais, por gentileza (data/creaturescripts/scripts).
info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

1 hora atrás, zipter98 disse:Poste o creatureevent responsável pela etapa dos canais, por gentileza (data/creaturescripts/scripts).
if channelId >= 19 and channelId <= 21 then --alterado v1.8 \/ setPlayerStorageValue(cid, 52480, (channelId-18)) setPlayerStorageValue(cid, 52484, ((channelId-18)*2)-1) doSendAnimatedText(getThingPosWithDebug(cid), (channelId-18).."x"..(channelId-18), COLOR_BURN) doPlayerSetVocation(cid, 8) openChannelDialog(cid) return false end if channelId >= 13 and channelId <= 18 then local sid = getPlayerByName(getPlayerStorageValue(cid, 52483):match("(.*),")) ---------------- Proteçao para ter um oponente valido! if not isCreature(sid) then doPlayerSendTextMessage(cid, 20, "The other player isn't online! Duel is canceled!") doPlayerSetVocation(cid, 1) for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel[i], -1) end doCreatureSetSkullType(cid, 0) return false end ---------------- Proteçao para os 2 players terem a qntdade de pokes pro duel local pokes1 = getLivePokeballs(cid, getPlayerSlotItem(cid, 3).uid, true) local pokes2 = getLivePokeballs(sid, getPlayerSlotItem(sid, 3).uid, true) if #pokes1 < (channelId-12) or #pokes2 < (channelId-12) then local tpw = getPlayerStorageValue(cid, 52480) > 1 and "ally" or "opponent" doPlayerSendTextMessage(cid, 20, "You or your "..tpw.." doesn't have that amount of pokemons in their bags! Duel are canceled!") doPlayerSetVocation(cid, 1) for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel[i], -1) end doCreatureSetSkullType(cid, 0) return false end ---------------- if getPlayerStorageValue(cid, 52480) > 1 then setPlayerStorageValue(cid, 52482, getPlayerStorageValue(cid, 52482).. getCreatureName(sid)..",") setPlayerStorageValue(cid, 52483, "") end ---------------- doSendAnimatedText(getThingPos(cid), (channelId-12).." Poke"..(channelId > 13 and "s" or ""), COLOR_BURN) setPlayerStorageValue(cid, 52481, (channelId-12)) setPlayerStorageValue(sid, 52485, getCreatureName(cid)) setPlayerStorageValue(sid, 52481, (channelId-12)) local players, pokes = getPlayerStorageValue(cid, 52480), getPlayerStorageValue(cid, 52481) local str = {} --alterado v1.9 \/ table.insert(str, getCreatureName(cid).." is inviting you to a duel! Use order in him to accept it!\n") table.insert(str, "Info Battle: Duel "..players.."x"..players.." - "..pokes.." pokes.") doPlayerSendTextMessage(sid, 20, table.concat(str)) addEvent(doSendAnimatedText, 1000, getThingPos(cid), "BATTLE", COLOR_ELECTRIC) doPlayerSetVocation(cid, 1) return false end
up
info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

up
info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

up
info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

up
info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino

up



info
Grupo: Campones
Registrado: 08/03/16
Posts: 94
Reputação: +4
Gênero: Masculino
Olá XTibia,
Gostaria que me ajudassem em um bug que está ocorrendo em meu servidor. Quando invito algum Duelo ele funciona normalmente, porem abre o channel 1x1, e o channel da quantidade de pokes, queria que não aparecesse mais esses channels, apensar chamasse em Duelo.
Versão: 0.3.6 TFS
Bug:
Grato desde já.