Caktchup 9 Postado Fevereiro 29, 2016 Share Postado Fevereiro 29, 2016 quando eu uso Fly no meu otserv não da para passar em cima da agua nem de nada mesma coisa que tivesse sem fly. se o meu fly.xml for necessário aqui esta ele local del = {'460', '1022', '1023'} local updown = {'1', '3'} function onStepIn(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 17000) <= 0 then doTeleportThing(cid, topos, false) doRemoveItem(getTileThingByPos(frompos).uid, 1) if isPlayer(cid) then doPlayerSendCancel(cid, "You can't fly.") end return true end if getPlayerStorageValue(cid, 17000) >= 1 then if topos.z == frompos.z then if getCreatureOutfit(cid).lookType == 316 then effect = 136 else effect = 2 end doSendMagicEffect(topos, effect) end end for x=-1,1 do for y=-1,1 do posa = {x=topos.x+x,y=topos.y+y,z=topos.z} if isInArray(del, getTileThingByPos(posa).itemid) then doRemoveItem(getTileThingByPos(posa).uid, 1) end end end for x=-1,1 do for y=-1,1 do pose = {x=frompos.x+x,y=frompos.y+y,z=frompos.z} if getTileThingByPos(pose).itemid == 0 then doCombatAreaHealth(cid, 0, pose, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, pose) end end end doCombatAreaHealth(cid, 0, topos, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, frompos) if topos.z > frompos.z then doCreateItem(1023, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1023) elseif topos.z < frompos.z then doCreateItem(1022, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1022) end return true end Alguém me ajuda???????????????? UPP UPPPPPPPPPPPPP??????????????? UPPP??????????UPPP??????????UPPP??????????UPPP?????????? Link para o comentário https://xtibia.com/forum/topic/239632-fly-n%C3%A3o-passa/ Compartilhar em outros sites More sharing options...
0 Caronte 446 Postado Fevereiro 29, 2016 Share Postado Fevereiro 29, 2016 quando eu uso Fly no meu otserv não da para passar em cima da agua nem de nada mesma coisa que tivesse sem fly. A ideia é passar somente quando usar surf if getPlayerStorageValue(cid, 17000) <= 0 the Igual o Fly, o surf deve ter uma condição para não deixar pisar se não estiver de surf... Link para o comentário https://xtibia.com/forum/topic/239632-fly-n%C3%A3o-passa/#findComment-1687097 Compartilhar em outros sites More sharing options...
0 Caktchup 9 Postado Fevereiro 29, 2016 Autor Share Postado Fevereiro 29, 2016 A ideia é passar somente quando usar surf Não quando Esta no Fly Você pode tbm passa por cima da agua. Igual o Fly, o surf deve ter uma condição para não deixar pisar se não estiver de surf... Não entendi essa parte que você disse Link para o comentário https://xtibia.com/forum/topic/239632-fly-n%C3%A3o-passa/#findComment-1687107 Compartilhar em outros sites More sharing options...
0 Caronte 446 Postado Fevereiro 29, 2016 Share Postado Fevereiro 29, 2016 Não quando Esta no Fly Você pode tbm passa por cima da agua. Então não faz sentido ter o surf se já tiver o fly, no pokemon pelo menos, o fly dá para pegar antes do surf, o fly é em celadon city, e surf é no safari... tibia poke é diferente? sim, mas não faz sentido ter os dois então... Poste o seu surf.lua... O fly usa tile invisível para andar? quais são os ids da água? Link para o comentário https://xtibia.com/forum/topic/239632-fly-n%C3%A3o-passa/#findComment-1687111 Compartilhar em outros sites More sharing options...
0 Caktchup 9 Postado Março 1, 2016 Autor Share Postado Março 1, 2016 Então não faz sentido ter o surf se já tiver o fly, no pokemon pelo menos, o fly dá para pegar antes do surf, o fly é em celadon city, e surf é no safari... tibia poke é diferente? sim, mas não faz sentido ter os dois então... Poste o seu surf.lua... O fly usa tile invisível para andar? quais são os ids da água? Sim então Você ta certo se ja tem Fly para que surf. Então podia TENTA deixa o Fly para passar por cima das arvores... Esse e o Meu Surf.Lua local function doSendMagicEffecte(pos, effect) addEvent(doSendMagicEffect, 50, pos, effect) end local waters = {11756, 4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} --alterado v2.5 local flie = {'11756', '4614', '4615', '4616', '4617', '4618', '4619', '4608', '4609', '4610', '4611', '4612', '4613', '7236', '4614', '4615', '4616', '4617', '4618', '4619', '4620', '4621', '4622', '4623', '4624', '4625', '4665', '4666', '4820', '4821', '4822', '4823', '4824', '4825'} --alterado v2.6 tabela agora em configuration.lua! local premium = false function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) or isInArray({5, 6}, getPlayerGroupId(cid)) then --alterado v2.9 return true end if getPlayerStorageValue(cid, 75846) >= 1 then return true end --alterado v2.9 if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV if isPlayer(cid) and not isPremium(cid) and premium == true then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "Only premium members are allowed to surf.") return true end if getCreatureOutfit(cid).lookType == 316 or getCreatureOutfit(cid).lookType == 648 then doSendMagicEffect(fromPosition, 136) end if (getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 17000) >= 1) then return true end if #getCreatureSummons(cid) == 0 then doPlayerSendCancel(cid, "You need a pokemon to surf.") doTeleportThing(cid, fromPosition, false) return true end if (not isInArray(specialabilities["surf"], getPokemonName(getCreatureSummons(cid)[1]))) then --alterado v2.6 doPlayerSendCancel(cid, "This pokemon cannot surf.") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 5700) == 1 then doPlayerSendCancel(cid, "You can't do that while is mount in a bike!") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 212124) >= 1 then --alterado v2.6 doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!") doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 52480) >= 1 then doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v2.6 doTeleportThing(cid, fromPosition, false) return true end if getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v2.7 doTeleportThing(cid, fromPosition, false) return true end --alterado v2.6 doSetCreatureOutfit(cid, {lookType = surfs[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1) doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", 1) doChangeSpeed(cid, -(getCreatureSpeed(cid))) local speed = 75 + PlayerSpeed + getSpeed(getCreatureSummons(cid)[1]) * 8 * speedRate setPlayerStorageValue(cid, 54844, speed) doChangeSpeed(cid, speed) local pct = getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1]) local item = getPlayerSlotItem(cid, 8) --alterado v2.8 doItemSetAttribute(item.uid, "hp", pct) doRemoveCreature(getCreatureSummons(cid)[1]) if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) <= 0 then addEvent(sendAuraEffect, 120, cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v2.8 end if useOTClient then doPlayerSendCancel(cid, '12//,hide') --alterado v2.8 end addEvent(setPlayerStorageValue, 100, cid, 63215, 1) return true end local direffects = {30, 49, 9, 51} function onStepOut(cid, item, position, fromPosition) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end local checkpos = fromPosition checkpos.stackpos = 0 if isInArray(waters, getTileInfo(checkpos).itemid) then if getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 17000) >= 1 then doSendMagicEffecte(fromPosition, direffects[getCreatureLookDir(cid) + 1]) end end if not isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then if getPlayerStorageValue(cid, 17000) >= 1 then return true end if getPlayerStorageValue(cid, 63215) <= 0 then return true end doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, 63215, -1) local item = getPlayerSlotItem(cid, 8) local pokemon = getItemAttribute(item.uid, "poke") local x = pokes[pokemon] if not x then return true end if getItemAttribute(item.uid, "nick") then doCreatureSay(cid, getItemAttribute(item.uid, "nick")..", I'm tired of surfing!", 1) else doCreatureSay(cid, getItemAttribute(item.uid, "poke")..", I'm tired of surfing!", 1) end doSummonMonster(cid, pokemon) local pk = getCreatureSummons(cid)[1] if not isCreature(pk) then pk = doCreateMonster(pokemon, backupPos) if not isCreature(pk) then doPlayerSendCancel(cid, "You can't stop surfing here.") doTeleportThing(cid, fromPosition, false) return true end doConvinceCreature(cid, pk) end doChangeSpeed(pk, getCreatureSpeed(cid)) doChangeSpeed(cid, -getCreatureSpeed(cid)) doRegainSpeed(cid) --alterado v2.6 doTeleportThing(pk, fromPosition, false) doTeleportThing(pk, getThingPos(cid), true) doCreatureSetLookDir(pk, getCreatureLookDir(cid)) adjustStatus(pk, item.uid, true, false, true) if useOTClient then doPlayerSendCancel(cid, '12//,show') --alterado v2.8 end end return true end Meu Fly.Lua local del = {'460', '1022', '1023'} local updown = {'1', '3'} function onStepIn(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 17000) <= 0 then doTeleportThing(cid, topos, false) doRemoveItem(getTileThingByPos(frompos).uid, 1) if isPlayer(cid) then doPlayerSendCancel(cid, "You can't fly.") end return true end if getPlayerStorageValue(cid, 17000) >= 1 then if topos.z == frompos.z then if getCreatureOutfit(cid).lookType == 316 then effect = 136 else effect = 2 end doSendMagicEffect(topos, effect) end end for x=-1,1 do for y=-1,1 do posa = {x=topos.x+x,y=topos.y+y,z=topos.z} if isInArray(del, getTileThingByPos(posa).itemid) then doRemoveItem(getTileThingByPos(posa).uid, 1) end end end for x=-1,1 do for y=-1,1 do pose = {x=frompos.x+x,y=frompos.y+y,z=frompos.z} if getTileThingByPos(pose).itemid == 0 then doCombatAreaHealth(cid, 0, pose, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, pose) end end end doCombatAreaHealth(cid, 0, topos, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, frompos) if topos.z > frompos.z then doCreateItem(1023, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1023) elseif topos.z < frompos.z then doCreateItem(1022, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1022) end return true end UPPPP?????????????????????????????????????? UPPPP?????????????????????????????????????? UPPPP?????????????????????????????????????? UPPPP?????????????????????????????????????? Link para o comentário https://xtibia.com/forum/topic/239632-fly-n%C3%A3o-passa/#findComment-1687115 Compartilhar em outros sites More sharing options...
Pergunta
Caktchup 9
quando eu uso Fly no meu otserv não da para passar em cima da agua nem de nada mesma coisa que tivesse sem fly.
se o meu fly.xml for necessário aqui esta ele
Alguém me ajuda???????????????? UPP
UPPPPPPPPPPPPP???????????????
UPPP??????????UPPP??????????UPPP??????????UPPP??????????
Link para o comentário
https://xtibia.com/forum/topic/239632-fly-n%C3%A3o-passa/Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados