[Talkaction] Dive System Dando Outfit(Male/female) - Pokemon Dash Advanced

picachul
em Actions e Talkactions

picachul

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 27/10/11Posts: 38

Bom, acho que todos que procuram esse systema já vio o outro topico do Spiga, mas infelizmente ele não funciona!

Então resolvi editar uma versão editada desse script '-'

 

Ai vai:

 

Crie dois arquivos.lua um com o nome de !back e outro com o nome de !dive e coloque na pasta Talkactions.

 

No arquivo !dive coloque:

function onSay(cid, words, param, channel)

if getPlayerStorageValue(cid,63215) >=1 then

pos = getCreaturePosition(cid)
if pos.z ~= 7 then return false end

npos = {x=pos.x, y=pos.y, z=pos.z + 1}
local grounds = {5405, 5406, 5407, 5408, 5409, 5410}
if (not isInArray(grounds, getTileThingByPos(npos).itemid)) then
return doPlayerSendCancel(cid, "You cannot dive here.")
end

if doTeleportThing(cid, npos) then

doSendMagicEffect(npos, 14)
if getPlayerSex(cid) == 1 then
doSetCreatureOutfit(cid, {lookType = 1034, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, -1)
else
doSetCreatureOutfit(cid, {lookType = 1035, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, -1)
end
setPlayerStorageValue(cid, 63215, 0)
local item = getPlayerSlotItem(cid, 8)
local pokemon = getItemAttribute(item.uid, "poke")
local x = pokes[pokemon]

if getItemAttribute(item.uid, "nick") then
doCreatureSay(cid, "".."Good job "..getItemAttribute(item.uid, "nick").." !", 1)
else
doCreatureSay(cid, "".."Good job "..getItemAttribute(item.uid, "poke").." !", 1)
end


local pk = getCreatureSummons(cid)[1]

doChangeSpeed(pk, getCreatureSpeed(cid))
doChangeSpeed(cid, -getCreatureSpeed(cid))
doChangeSpeed(cid, PlayerSpeed)

doTeleportThing(pk, getThingPos(cid), true)
doCreatureSetLookDir(pk, getCreatureLookDir(cid))

adjustStatus(pk, item.uid, true, false, true)

end
else
return doPlayerSendCancel(cid, "You cannot dive here.")
end
return TRUE
end

 

No arquivo !back coloque:

function onSay(cid, words, param, channel)
divepos = getCreaturePosition(cid)
npos2 = getPlayerMasterPos(cid)
poszao = {x=divepos.x, y=divepos.y, z=7}
pos = getCreaturePosition(cid)

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}

local poke = {'Poliwag', 'Poliwhirl', 'Seaking', 'Dewgong', 'Blastoise', 'Tentacruel', 'Lapras', 'Gyarados', 'Omastar', 'Kabutops',
'Vaporeon', 'Staryu', 'Starmie', 'Goldeen', 'Seadra', 'Golduck', 'Squirtle', 'Wartortle', 'Tentacool', 'Snorlax', 'Poliwrath', 'Shiny Poliwag',
'Shiny Poliwhirl', 'Shiny Seaking', 'Shiny Dewgong', 'Shiny Blastoise', 'Shiny Tentacruel', 'Shiny Lapras', 'Shiny Gyarados', 'Shiny Omastar',
'Shiny Kabutops', 'Shiny Vaporeon', 'Shiny Staryu', 'Shiny Starmie', 'Shiny Goldeen', 'Shiny Seadra', 'Shiny Golduck', 'Shiny Squirtle',
'Shiny Wartortle', 'Shiny Tentacool', 'Shiny Snorlax', 'Shiny Poliwrath', "Mantine", "Totodile", "Croconow", "Feraligatr", "Marill",
"Azumarill", "Quagsire", "Wooper", "Octillery", "Kingdra"}


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 dive.")
return true
end

if (not isInArray(poke, getPokemonName(getCreatureSummons(cid)[1]))) then
doPlayerSendCancel(cid, "This pokemon cannot dive.")
return true
end

if (not isInArray(waters, getTileThingByPos(poszao).itemid)) then
doPlayerSendCancel(cid, "You cant up here.")
return true
end

if pos.z >= 8 then
if doTeleportThing(cid, poszao) == true then
doSendMagicEffect(poszao, 14)
end
else return print("Erro ao utilizar comando !back")
end
if pos.z <=7 then
doPlayerSendCancel(cid, "Você precisa estar mergulhando para usar este comando.")
return true
end
end

 

Agora va no aquivo talkactions.xml e adicione as tags:

<talkaction words="!dive" event="script" value="!dive.lua"/>
<talkaction words="!back" event="script" value="!back.lua"/>

 

Pronto!

 

Agora é so usar ^^

 

Topico original:

http://www.xtibia.co...-dash-advanced/

 

Creditos para:

Spiga Pois fez o script

Para jeffe000 pois arrumou o script

E para mim '-' Pois editei ele.. ^^

Dive system dando outfit diferente para male/female:

 

 

Te ajudei maninho? Da REP++ ai :)

BLACKHERT

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/06/08Posts: 52

tem como adicionar speed?

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

descupa fla isso mas.. o script ta funcionando? pq pelo q percebi.. tu esqueceu de sumonar o poke do player denovo quando ele eh mandado pra baixo... ;x -sorry se eu estiver flando meuda-

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

picachul

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 27/10/11Posts: 38

Tais falando MEUDA ;s

 

O script esta funcionando perfeitamente!

So não é perfeito pois os player e o pokemon fica muito lente debaixo da agua...

Dive system dando outfit diferente para male/female:

 

 

Te ajudei maninho? Da REP++ ai :)

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

eh sorry coloquei pra testar e deu tudo certo.. mas ainda n intendi quando q o poke eh sumonado mas blz.. ;p

e sobre a velo.. eh mano.. eu ontem tentei troca a velo dos TILES, tentei aumenta a velo do player e poke pelo script ms.. mas nd deu certo... eu botei a velo do player em 600.. e ele ate q fico rapidinhu.. mas nem tanto ;p e o poke colocando a velo em 600 n muda nd ;x

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

picachul

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 27/10/11Posts: 38

HUmm

EU tambem to fazendo o maximo aqui para tentar arrumar isso.Mas eu vou ficar inativo por esse semana ;P

 

Vou pro carnaval :DDDD

Dive system dando outfit diferente para male/female:

 

 

Te ajudei maninho? Da REP++ ai :)

Jeffer000

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 05/06/11Posts: 297

Vlw pelos creditos...

 

Aqui no meu sv fikei com preguiça de por esse sistema de outfit direto no div...ae como eu tinha posto bike numa nova bag pra n deixa sozinho eu colokei uma marcara de mergulho...e colokei o mesmo script da bike mas dando a outfit de mergulho...colokei speed 900 ficou uma velo boa :)

BrunooMaciell

Bruno Maciel
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/08/11Posts: 1919Gênero: MasculinoChar no Tibia: Bruno Maciel

oque e issu oque essa script faz ???

 

mais uso funcioda como ??

n3tt3rz1

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 01/04/12Posts: 70

oque e issu oque essa script faz ???

 

mais uso funcioda como ??

Olha esse script ele é pra "mergulho" ^^

Tipo nos gyarados !dive ele mergulha

sFVWV.png

Makelin1

Absoft User =D
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 21/03/12Posts: 651Char no Tibia: Pussycat !

oque e issu oque essa script faz ???

 

mais uso funcioda como ??

 

Reportado brunnoo em topicos que o post tem mas de 1 mes e considerado como flood so para subir na posiçao

 

Reportado

 

Att

Smartbox

Att

Smartbox

 

 

Ajudei ? + REP

 

Absoft Map

http://www.xtibia.co...__fromsearch__1

 

2575910.gif

Vilden

Loading. . .
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 09/05/08Posts: 1597

Tópicos parados a mais de 1 mês não podem ser 'revividos'.

 

Membro alertado via mp, caso continue será alertado.

Atenciosamente, Vilden.