funfa msm??? vou testar!!
não posso dizer nada ainda...
Nota 4,0 pelo tutorial.. 8,0 se pegar
![]()
info
Grupo: Campones
Registrado: 08/02/08
Posts: 81
Reputação: +1
Char no Tibia: nemhum

funfa msm??? vou testar!!
não posso dizer nada ainda...
Nota 4,0 pelo tutorial.. 8,0 se pegar
![]()
aff o cara nao anda na agua
eu mergulho e ele volta pra areia como se tivesse dentro dagua -.-'
info
Grupo: Campones
Registrado: 20/03/08
Posts: 60
Reputação: 0
Char no Tibia: Draxa Loth

É, eu achei muito interessante.
Tem muitos ots que não cvem com swimm ou vem com ele defeituoso.
Isso ja da uma força.
Abraço
//Kronus
os caras agradecem, elogiam, mas nem testam pra saber se funfa
no caso, esse ai não funfou -.-
info
Grupo: Campones
Registrado: 28/12/05
Posts: 4
Reputação: 0
Excelente, meu ot tava bugado a prada de nadar, agora a piscina ta liberada flws!
info
Grupo: Cavaleiro
Registrado: 01/05/07
Posts: 156
Reputação: +3
Char no Tibia: Zenki Down

Boaa..
vai me ajuda pacas !
^^
parabens bom tuto!
info
Grupo: Cavaleiro
Registrado: 06/02/08
Posts: 160
Reputação: 0
Char no Tibia: Hacked

Kra tutorial muito bom !
MAIS ESSA ###### DO MEU SERVER N PEGO BEM NA HORA BUAAAAAAAAAAAAAAAAAAAA !!!
kara
esse action id n e 3330 não ?
c for avisa o povo ai plz.
Espero Respostas
-------------------
Sttriker Server
function onStepIn(cid, item, position, fromPosition)
swimvalue = 3330 --storagevalue to check
diveroutfit = { lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
kra esse action axo q e 3330 olha ai
------------------------------
malz ai eu errei, não é action id 3330 não.
Desculpe ai
info
Grupo: Campones
Registrado: 06/03/08
Posts: 1
Reputação: 0
Char no Tibia: Fello Aureas

Ae, para as pessoas q tentaram e quando o char foi pular na agua ele pula na terra
Eu fiz tudo como ta ae, mas nao deu certo entao eu editei com outras actions
Coloca la no swimm.lua
function onStepIn(cid, item, position, fromPosition)swimvalue = 3330 --storagevalue to check
diveroutfit = { lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
standardoutfit = { lookType = getPlayerStorageValue(cid, 3331), lookHead = getPlayerStorageValue(cid, 3332), lookBody =
getPlayerStorageValue(cid, 3333), lookLegs = getPlayerStorageValue(cid, 3334), lookFeet = getPlayerStorageValue(cid, 3335), lookAddons =
getPlayerStorageValue(cid, 3336) }
isswimming = getPlayerStorageValue(cid, swimvalue)
if isPlayer(cid) then
if (isswimming == -1) or (isswimming == 2) then
pozycja = {x = 124, y = 58, z= 7}
if item.itemid == 4632 then
pos = {x = position.x, y = position.y - 2, z = position.z}
elseif item.itemid == 4633 then
pos = {x = position.x - 2, y = position.y, z = position.z}
elseif item.itemid == 4634 then
pos = {x = position.x, y = position.y + 2, z = position.z}
elseif item.itemid == 4635 then
pos = {x = position.x + 2, y = position.y, z = position.z}
elseif item.itemid == 4636 then
pos = {x = position.x + 2, y = position.y + 2, z = position.z}
elseif item.itemid == 4637 then
pos = {x = position.x - 2, y = position.y + 2, z = position.z}
elseif item.itemid == 4638 then
pos = {x = position.x + 2, y = position.y - 2, z = position.z}
elseif item.itemid == 4639 then
pos = {x = position.x - 2, y = position.y - 2, z = position.z}
elseif item.itemid == 4640 then
pos = {x = position.x + 2, y = position.y + 2, z = position.z}
elseif item.itemid == 4641 then
pos = {x = position.x - 2, y = position.y + 2, z = position.z}
elseif item.itemid == 4642 then
pos = {x = position.x + 2, y = position.y - 2, z = position.z}
elseif item.itemid == 4643 then
pos = {x = position.x - 2, y = position.y - 2, z = position.z}
end
setPlayerStorageValue(cid, 3331, getCreatureOutfit(cid).lookType)
setPlayerStorageValue(cid, 3332, getCreatureOutfit(cid).lookHead)
setPlayerStorageValue(cid, 3333, getCreatureOutfit(cid).lookBody)
setPlayerStorageValue(cid, 3334, getCreatureOutfit(cid).lookLegs)
setPlayerStorageValue(cid, 3335, getCreatureOutfit(cid).lookFeet)
setPlayerStorageValue(cid, 3336, getCreatureOutfit(cid).lookAddons)
setPlayerStorageValue(cid, swimvalue, 1)
doSetCreatureOutfit(cid, diveroutfit, 3600000)
if item.actionid == 3333 then
player1pos = {x = position.x, y = position.y - 1, z = position.z}
player1 = getThingfromPos(player1pos)
doTeleportThing(cid, player1pos)
doSendMagicEffect(player1pos, CONST_ME_WATERSPLASH)
elseif item.actionid == 3334 then
player1pos = {x = position.x - 1, y = position.y, z = position.z}
player1 = getThingfromPos(player1pos)
doTeleportThing(cid, player1pos)
doSendMagicEffect(player1pos, CONST_ME_WATERSPLASH)
elseif item.actionid == 3335 then
player1pos = {x = position.x, y = position.y + 1, z = position.z}
player1 = getThingfromPos(player1pos)
doTeleportThing(cid, player1pos)
doSendMagicEffect(player1pos, CONST_ME_WATERSPLASH)
elseif item.actionid == 3336 then
player1pos = {x = position.x +1, y = position.y, z = position.z}
player1 = getThingfromPos(player1pos)
doTeleportThing(cid, player1pos)
doSendMagicEffect(player1pos, CONST_ME_WATERSPLASH)
end
end
if isswimming == 1 then
if item.itemid == 4632 then
dir = 2
elseif item.itemid == 4633 then
dir = 1
elseif item.itemid == 4634 then
dir = 0
elseif item.itemid == 4635 then
dir = 3
elseif item.itemid == 4636 then
dir = 3
elseif item.itemid == 4637 then
dir = 1
elseif item.itemid == 4638 then
dir = 3
elseif item.itemid == 4639 then
dir = 2
elseif item.itemid == 4640 then
dir = 3
elseif item.itemid == 4641 then
dir = 1
elseif item.itemid == 4642 then
dir = 3
elseif item.itemid == 4643 then
dir = 1
end
doSetCreatureOutfit(cid, standardoutfit, 1)
doMoveCreature(cid, dir)
setPlayerStorageValue(cid, swimvalue, 2)
end
end
return TRUE
end
A parte vermelha foi onde eu editei.
Ja q tem outros actions vai no movements.xml e acrescenta isso:
<movevent event="StepIn" actionid="3333" script="swimm.lua"/><movevent event="StepIn" actionid="3334" script="swimm.lua"/>
<movevent event="StepIn" actionid="3335" script="swimm.lua"/>
<movevent event="StepIn" actionid="3336" script="swimm.lua"/>
Dai no map editor vc coloca na:
Borda "4632" vc coloca action id: "3333"
Borda "4633" vc coloca action id: "3334"
Borda "4634" vc coloca action id: "3335"
Borda "4635" vc coloca action id: "3336"
E pronto, talvez de certo no ot de quem nao deu certo
Todos os creditos para Tprocheira
Vlw
Editado Maio 29 por JogadorxD
EITA MANO, AKI N PEGO ESSES SCRIPT...
N SEI OQ DEU MAS N PEGO... FIZ TUDO CERTIM.
info
Grupo: Conde
Registrado: 08/06/08
Posts: 676
Reputação: +1
Char no Tibia: Kimera De Pegasus

Meu ot vai ficar rox com esse dicar u.u
Ja ouvi falar de alguns servers com esse sistema mais nao gosto de Ultilizar nos meus ![]()
vlww aee ... funfo 70%
mais jah ajuda
Flw
info
Grupo: Artesão
Registrado: 24/09/07
Posts: 103
Reputação: 0
Char no Tibia: Kirack Tyril

Vou testar ..
Bom tuto
info
Grupo: Campones
Registrado: 20/03/08
Posts: 30
Reputação: 0
Char no Tibia: Sir'Taj
Nossa otimo tópico.. bem detalhado e tudo mais... com reditos.. nota 10
p.s: no meu ja tem tambem