posta o trade.lua ae :#
- Forums
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] Dúvida ! Bug no Trade !
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

o look dentro da janela de trade eh feito nas sourcers.. n eh bug, o brun fez assim e n tem como mudar!
info
Group: Campones
Joined: 01/12/12
Posts: 23
Reputation: +2
Tibia Character: Brechtian

function onTradeRequest(cid, target, item)posta o trade.lua ae :#
for a, b in pairs (pokeballs) do
if b.use == item.itemid then
doPlayerSendCancel(cid, "You can't trade this item.")
return false
end
end
return true
end
local function noCap(cid, sid)
if isCreature(cid) then
doPlayerSendCancel(cid, "You can't carry more than six pokemons, trade cancelled.")
end
if isCreature(sid) then
doPlayerSendCancel(sid, "You can't carry more than six pokemons, trade cancelled.")
end
end
function onTradeAccept(cid, target, item, targetItem)
local pbs = #getPokeballsInContainer(item.uid)
local cancel = false
local p1 = 0
local p2 = 0
local itemPokeball = isPokeball(item.itemid) and 1 or 0
local targetItemPokeball = isPokeball(targetItem.itemid) and 1 or 0
if pbs > 0 and getCreatureMana(target) + pbs > 6 + targetItemPokeball then
cancel = true
p1 = target
end
pbs = #getPokeballsInContainer(targetItem.uid)
if pbs > 0 and getCreatureMana(cid) + pbs > 6 + itemPokeball then
cancel = true
p2 = cid
end
if cancel then
addEvent(noCap, 20, p1, p2)
return false
end
<p>if itemPokeball == 1 and targetItemPokeball ==
info
Group: Campones
Joined: 02/05/11
Posts: 27
Reputation: 0
Tibia Character: Jin Viper

Slicer, quando atualiza ? ;x
info
Group: Príncipe
Joined: 19/08/10
Posts: 4k
Reputation: +1.1k
Gender: Masculino

/\
mano nem pergunte isso pq n vou responder... ainda mais n pergunte em topicos isso pode ser considerado flood... considere isso como um alerta verbal..
@topic
como ja expliquei isso n eh bug e n tem como mudar...
info
Group: Herói
Joined: 28/11/10
Posts: 3.4k
Reputation: +585
Gender: Masculino

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.




info
Group: Campones
Joined: 01/12/12
Posts: 23
Reputation: +2
Tibia Character: Brechtian
Olaa (: ! gente mais uma vez eu aqui com meu Bugs !
Gente desta vez um bug no trade Meu Empoleon ta +15
Olhe \/
12:03 You see a pokeball.
It contains an Empoleon [level 6].
Boost level: +15.
It is male.
Mais qnd eu do trade com outro Player só aparecer o nome ér o lv !
12:03 You see a pokeball.
Contains a Empoleon. [6]
ItemID: [11826].
Não aparecer a Boost +15 aguem ajudar pff ?
Rep +++ !