Ir para conteúdo

[Encerrado] Help Surf


Wickass

Posts Recomendados

Estou com um problema na script de surf alguem pode me ajudar? Bom eu clico na borda e e o char ate entra na agua mas simplesmente o char nao move fica parado e seu eu clicar na borda dnv o pokemon morre e da um erro na distro.

Script: 

https://hastebin.com/ejexasisac.cs

 

 

 

 

xtibia2.png

Xtibia.png

xtibia3.png

Editado por Wickass
Link para o comentário
Compartilhar em outros sites

1 minuto atrás, Wickass disse:
Versão do Servidor: TFS - 0.3.5
Tipo de Script: actions

Estou com um problema na script de surf alguem pode me ajudar? Bom eu clico na borda e e o char ate entra na agua mas simplesmente o char nao move fica parado e seu eu clicar na borda dnv o pokemon morre e da um erro na distro.

Script: 

https://hastebin.com/ejexasisac.cs

 

Xtibia.png

xtibia2.png

xtibia3.png

Verifica se a água tá como walkable, e pode me enviar o script ?

Link para o comentário
Compartilhar em outros sites

1 minuto atrás, Wickass disse:

o Pokemon continua morrendo ao sair, onde vejo se esta Walkable? 

dá look na água e vai estar no nome.

Link para o comentário
Compartilhar em outros sites

 

4 minutos atrás, Refe disse:

Abre o RME, vai na água e dá um select brush, depois me fala se é walkable o nome

ta sim manin

30 minutos atrás, Refe disse:

Abre o RME, vai na água e dá um select brush, depois me fala se é walkable o nome

Se nao tem um script q nao precise clicar na borda passe direto sabe? 

Link para o comentário
Compartilhar em outros sites

local pokes = {
	["Poliwag"] = {lookType=629, speed = 10},
	["Poliwrath"] = {lookType=541, speed = 10},
	["Virus Poliwag"] = {lookType=2553, speed = 15},
	["Poliwhirl"] = {lookType=488, speed = 40},
	["Seaking"] = {lookType=269, speed = 40},
	["Dewgong"] = {lookType=534, speed = 80},
	["Blastoise"] = {lookType=535, speed = 80},
	["Virus Blastoise"] = {lookType=2365, speed = 90},
	["Tentacruel"] = {lookType=536, speed = 80},
	["Lapras"] = {lookType=537, speed = 80},
	["Gyarados"] = {lookType=537, speed = 80},
	["Omastar"] = {lookType=539, speed = 80},
	["Kabutops"] = {lookType=540, speed = 80},
	["Poliwrath"] = {lookType=190, speed = 80},
	["Vaporeon"] = {lookType=2154, speed = 50},
	["Staryu"] = {lookType=617, speed = 30},
	["Starmie"] = {lookType=618, speed = 70},
	["Goldeen"] = {lookType=619, speed = 20},
	["Seadra"] = {lookType=621, speed = 50},
	["Golduck"] = {lookType=622, speed = 70},
	["Squirtle"] = {lookType=624, speed = 20},
	["Wartortle"] = {lookType=626, speed = 40},
	["Tentacool"] = {lookType=628, speed = 20},
	["Snorlax"] = {lookType=651, speed = 80},
	----------------Shiny----------------------
	["Shiny Blastoise"] = {lookType=1009, speed = 600},
	["Shiny Lapras"] = {lookType=1824, speed = 600},
	["Shiny Kingdra"] = {lookType=1827, speed = 600},
	["Shiny Tentacruel"] = {lookType=841, speed = 600},
	["Shiny Gyarados"] = {lookType=1381, speed = 600},
	["Shiny Vaporeon"] = {lookType=2151, speed = 600},        --alterado v1.6
	["Shiny Seadra"] = {lookType=1376, speed = 600},
	["Shiny Tentacool"] = {lookType=1013, speed = 600},
	["Shiny Snorlax"] = {lookType=1035, speed = 600},
	["Shiny Feraligatr"] = {lookType=1526, speed = 600},
	["Shiny Kabutops"] = {lookType=2237, speed = 80},
	["Shiny Omastar"] = {lookType=2574, speed = 80},
	["Shiny Octillery"] = {lookType=2260, speed = 70},
	----------------Johto----------------------
	["Mantine"] = {lookType=987, speed = 80},
	["Totodile"] = {lookType=988, speed = 20},
	["Croconow"] = {lookType=989, speed = 40},
	["Feraligatr"] = {lookType=996, speed = 80},
	["Marill"] = {lookType=639, speed = 30},
	["Azumarill"] = {lookType=642, speed = 40},
	["Quagsire"] = {lookType=993, speed = 70},
	["Kingdra"] = {lookType=995, speed = 100},
	["Octillery"] = {lookType=992, speed = 70},
	["Wooper"] = {lookType=991, speed = 30},
	["Virus Wooper"] = {lookType=2554, speed = 40},
	["Milotic"] = {lookType=1641, speed = 1000},
	["Wailord"] = {lookType=1656, speed = 1000},
	["Marshtomp"] = {lookType=1648, speed = 1000},
	["Mudkip"] = {lookType=1649, speed = 1000},
	["Swampert"] = {lookType=1650, speed = 2000},
	["Shiny Swampert"] = {lookType=1839, speed = 2000},
	["Shiny Ludicolo"] = {lookType=1860, speed = 2000},
	----------------Virus----------------------
	["Virus Gyarados"] = {lookType=2688, speed = 700},
	["Virus Blastoise"] = {lookType=2716, speed = 700},
	["Virus Poliwag"] = {lookType=2904, speed = 700},
	["Virus Wooper"] = {lookType=2905, speed = 700},
}
local configs = {
	[4647] = {x = -2, y = 0},
	[4645] = {x = 2, y = 0},
	[4646] = {x = 0, y = 2},
	[4644] = {x = 0, y = -2},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local playerpos = getCreaturePosition(cid)
	if #getCreatureSummons(cid) <= 0 and getPlayerStorageValue(cid, 63215) <= 0 then
		return doPlayerSendCancel(cid, "You need a pokemon to surf.")
	end
	local l = false
	for i,x in pairs(pokes) do
		if getPlayerStorageValue(cid, 63215) <= 0 and i:lower() == getCreatureName(getCreatureSummons(cid)[1]):lower() then
			l = true
		end
	end
	if not l and getPlayerStorageValue(cid, 63215) <= 0 then
		return doPlayerSendCancel(cid, "This pokemon can't surf.")
	end
	if getPlayerStorageValue(cid, 63215) <= 0 then
		doTeleportThing(cid, {x=playerpos.x+configs[itemEx.itemid].x, y=playerpos.y+configs[itemEx.itemid].y, z=playerpos.z})
		setPlayerStorageValue(cid, 63215, 1)
		doSetCreatureOutfit(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])], -1)
		doCreatureSay(cid, "Let's surf, "..getCreatureName(getCreatureSummons(cid)[1]), 1)
		setPlayerStorageValue(cid, 61209, getCreatureMaxHealth(getCreatureSummons(cid)[1]))
		setPlayerStorageValue(cid, 61210, getCreatureHealth(getCreatureSummons(cid)[1]))
		doChangeSpeed(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])].speed)
		doRemoveCreature(getCreatureSummons(cid)[1])
	else
		doTeleportThing(cid, {x=playerpos.x-configs[itemEx.itemid].x, y=playerpos.y-configs[itemEx.itemid].y, z=playerpos.z})
		setPlayerStorageValue(cid, 63215, 0)
		doRemoveCondition(cid, CONDITION_OUTFIT)

		local item = getPlayerSlotItem(cid, 8)
		doCreatureSay(cid,getItemAttribute(item.uid, "poke")..", Im tired of surfing!", 1)
		pk = doSummonCreature(getItemAttribute(item.uid, "poke"), getCreaturePosition(cid))
		doConvinceCreature(cid, pk)
		registerCreatureEvent(pk, "DiePoke")
		registerCreatureEvent(pk, "Exp")
		setCreatureMaxHealth(pk, (getPlayerStorageValue(cid, 61209)))
		doCreatureAddHealth(pk, (getPlayerStorageValue(cid, 61209)))
		doCreatureAddHealth(pk, (getPlayerStorageValue(cid, 61210))-(getPlayerStorageValue(cid, 61209)))
		doChangeSpeed(cid, getCreatureBaseSpeed(cid)-getCreatureSpeed(cid))
	end
	return true
end

 

Link para o comentário
Compartilhar em outros sites

4 horas atrás, Crypter disse:

local pokes = {
	["Poliwag"] = {lookType=629, speed = 10},
	["Poliwrath"] = {lookType=541, speed = 10},
	["Virus Poliwag"] = {lookType=2553, speed = 15},
	["Poliwhirl"] = {lookType=488, speed = 40},
	["Seaking"] = {lookType=269, speed = 40},
	["Dewgong"] = {lookType=534, speed = 80},
	["Blastoise"] = {lookType=535, speed = 80},
	["Virus Blastoise"] = {lookType=2365, speed = 90},
	["Tentacruel"] = {lookType=536, speed = 80},
	["Lapras"] = {lookType=537, speed = 80},
	["Gyarados"] = {lookType=537, speed = 80},
	["Omastar"] = {lookType=539, speed = 80},
	["Kabutops"] = {lookType=540, speed = 80},
	["Poliwrath"] = {lookType=190, speed = 80},
	["Vaporeon"] = {lookType=2154, speed = 50},
	["Staryu"] = {lookType=617, speed = 30},
	["Starmie"] = {lookType=618, speed = 70},
	["Goldeen"] = {lookType=619, speed = 20},
	["Seadra"] = {lookType=621, speed = 50},
	["Golduck"] = {lookType=622, speed = 70},
	["Squirtle"] = {lookType=624, speed = 20},
	["Wartortle"] = {lookType=626, speed = 40},
	["Tentacool"] = {lookType=628, speed = 20},
	["Snorlax"] = {lookType=651, speed = 80},
	----------------Shiny----------------------
	["Shiny Blastoise"] = {lookType=1009, speed = 600},
	["Shiny Lapras"] = {lookType=1824, speed = 600},
	["Shiny Kingdra"] = {lookType=1827, speed = 600},
	["Shiny Tentacruel"] = {lookType=841, speed = 600},
	["Shiny Gyarados"] = {lookType=1381, speed = 600},
	["Shiny Vaporeon"] = {lookType=2151, speed = 600},        --alterado v1.6
	["Shiny Seadra"] = {lookType=1376, speed = 600},
	["Shiny Tentacool"] = {lookType=1013, speed = 600},
	["Shiny Snorlax"] = {lookType=1035, speed = 600},
	["Shiny Feraligatr"] = {lookType=1526, speed = 600},
	["Shiny Kabutops"] = {lookType=2237, speed = 80},
	["Shiny Omastar"] = {lookType=2574, speed = 80},
	["Shiny Octillery"] = {lookType=2260, speed = 70},
	----------------Johto----------------------
	["Mantine"] = {lookType=987, speed = 80},
	["Totodile"] = {lookType=988, speed = 20},
	["Croconow"] = {lookType=989, speed = 40},
	["Feraligatr"] = {lookType=996, speed = 80},
	["Marill"] = {lookType=639, speed = 30},
	["Azumarill"] = {lookType=642, speed = 40},
	["Quagsire"] = {lookType=993, speed = 70},
	["Kingdra"] = {lookType=995, speed = 100},
	["Octillery"] = {lookType=992, speed = 70},
	["Wooper"] = {lookType=991, speed = 30},
	["Virus Wooper"] = {lookType=2554, speed = 40},
	["Milotic"] = {lookType=1641, speed = 1000},
	["Wailord"] = {lookType=1656, speed = 1000},
	["Marshtomp"] = {lookType=1648, speed = 1000},
	["Mudkip"] = {lookType=1649, speed = 1000},
	["Swampert"] = {lookType=1650, speed = 2000},
	["Shiny Swampert"] = {lookType=1839, speed = 2000},
	["Shiny Ludicolo"] = {lookType=1860, speed = 2000},
	----------------Virus----------------------
	["Virus Gyarados"] = {lookType=2688, speed = 700},
	["Virus Blastoise"] = {lookType=2716, speed = 700},
	["Virus Poliwag"] = {lookType=2904, speed = 700},
	["Virus Wooper"] = {lookType=2905, speed = 700},
}
local configs = {
	[4647] = {x = -2, y = 0},
	[4645] = {x = 2, y = 0},
	[4646] = {x = 0, y = 2},
	[4644] = {x = 0, y = -2},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local playerpos = getCreaturePosition(cid)
	if #getCreatureSummons(cid) <= 0 and getPlayerStorageValue(cid, 63215) <= 0 then
		return doPlayerSendCancel(cid, "You need a pokemon to surf.")
	end
	local l = false
	for i,x in pairs(pokes) do
		if getPlayerStorageValue(cid, 63215) <= 0 and i:lower() == getCreatureName(getCreatureSummons(cid)[1]):lower() then
			l = true
		end
	end
	if not l and getPlayerStorageValue(cid, 63215) <= 0 then
		return doPlayerSendCancel(cid, "This pokemon can't surf.")
	end
	if getPlayerStorageValue(cid, 63215) <= 0 then
		doTeleportThing(cid, {x=playerpos.x+configs[itemEx.itemid].x, y=playerpos.y+configs[itemEx.itemid].y, z=playerpos.z})
		setPlayerStorageValue(cid, 63215, 1)
		doSetCreatureOutfit(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])], -1)
		doCreatureSay(cid, "Let's surf, "..getCreatureName(getCreatureSummons(cid)[1]), 1)
		setPlayerStorageValue(cid, 61209, getCreatureMaxHealth(getCreatureSummons(cid)[1]))
		setPlayerStorageValue(cid, 61210, getCreatureHealth(getCreatureSummons(cid)[1]))
		doChangeSpeed(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])].speed)
		doRemoveCreature(getCreatureSummons(cid)[1])
	else
		doTeleportThing(cid, {x=playerpos.x-configs[itemEx.itemid].x, y=playerpos.y-configs[itemEx.itemid].y, z=playerpos.z})
		setPlayerStorageValue(cid, 63215, 0)
		doRemoveCondition(cid, CONDITION_OUTFIT)

		local item = getPlayerSlotItem(cid, 8)
		doCreatureSay(cid,getItemAttribute(item.uid, "poke")..", Im tired of surfing!", 1)
		pk = doSummonCreature(getItemAttribute(item.uid, "poke"), getCreaturePosition(cid))
		doConvinceCreature(cid, pk)
		registerCreatureEvent(pk, "DiePoke")
		registerCreatureEvent(pk, "Exp")
		setCreatureMaxHealth(pk, (getPlayerStorageValue(cid, 61209)))
		doCreatureAddHealth(pk, (getPlayerStorageValue(cid, 61209)))
		doCreatureAddHealth(pk, (getPlayerStorageValue(cid, 61210))-(getPlayerStorageValue(cid, 61209)))
		doChangeSpeed(cid, getCreatureBaseSpeed(cid)-getCreatureSpeed(cid))
	end
	return true
end

 

Funciono mano vlw unico problema e que esta travando em algumas agua

ex: 13:14 You see shallow water.
ItemID: [4822]. Nessa trava e na seguinte nao.. 

Link para o comentário
Compartilhar em outros sites

  • 6 months later...
A questão neste suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ 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.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...