Ir para conteúdo

[Encerrado] [Pokemon] Dúvidas? - Pda


lucashgas

Posts Recomendados

@vudi se nao me engano o primeiro tem a ver com respawn de pokemon que nao esta configurado no data/lib/ level table

 

 

Segundo usa esse surf aki pq to ocupado agr

 

 

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}

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

local flie = {'4820', '4821', '4822', '4823', '4824', '4825'}

local surf = {
["Poliwag"] = {lookType=278, speed = 320},
["Poliwhirl"] = {lookType=137, speed = 480},
["Seaking"] = {lookType=269, speed = 520},
["Dewgong"] = {lookType=183, speed = 700},
["Blastoise"] = {lookType=184, speed = 850},
["Tentacruel"] = {lookType=185, speed = 750},
["Lapras"] = {lookType=186, speed = 960},
["Gyarados"] = {lookType=187, speed = 1050},
["Omastar"] = {lookType=188, speed = 680},
["Kabutops"] = {lookType=189, speed = 840},
["Poliwrath"] = {lookType=190, speed = 680},
["Vaporeon"] = {lookType=191, speed = 800},
["Staryu"] = {lookType=266, speed = 385},
["Starmie"] = {lookType=267, speed = 685},
["Goldeen"] = {lookType=268, speed = 355},
["Seadra"] = {lookType=270, speed = 655},
["Golduck"] = {lookType=271, speed = 760},
["Squirtle"] = {lookType=273, speed = 365},
["Wartortle"] = {lookType=275, speed = 605},
["Tentacool"] = {lookType=277, speed = 340},
["Snorlax"] = {lookType=300, speed = 500},
["Mantine"] = {lookType=636, speed = 820},
["Totodile"] = {lookType=637, speed = 360},
["Croconow"] = {lookType=638, speed = 590},
["Feraligatr"] = {lookType=645, speed = 900},
["Marill"] = {lookType=639, speed = 340},
["Azumarill"] = {lookType=642, speed = 680},
["Quagsire"] = {lookType=643, speed = 740},
["Kingdra"] = {lookType=644, speed = 1020},
["Octillery"] = {lookType=641, speed = 600},
["Wooper"] = {lookType=640, speed = 315},
}

local premium = false

function onStepIn(cid, item, position, fromPosition)

if not isPlayer(cid) or getPlayerAccess(cid) >= 6 then
return true
end

if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end -- TV

if isPlayer(cid) and not isVip(cid)  then
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Only Vip 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(poke, getPokemonName(getCreatureSummons(cid)[1]))) then
doPlayerSendCancel(cid, "This pokemon cannot surf.")
doTeleportThing(cid, fromPosition, false)
return true
end

doSetCreatureOutfit(cid, {lookType = surf[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])
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", pct)

doRemoveCreature(getCreatureSummons(cid)[1])

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))
	doChangeSpeed(cid, PlayerSpeed)

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

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

end

return true
end

 

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

Pronto Chansey Quest Pronta...

Qm Quiser Eu Posto Aki.

 

Edit

 

Alguem poderia fazer um script de alavanca q teleportasse o player pra tal lugar?

rep

 

Acho melhor usar este aqui:

function onUse (cid,item,frompos,item2,topos)
pos = {x=1527, y=1926, z=7}
pos1 = {x=pos.x+1, y=pos.y, z=pos.z}
if #getCreatureSummons(cid) >= 1 then
  local pk = getCreatureSummons(cid)
  doTeleportThing(cid,pos)
  doTeleportThing(pk,pos1)
  doSendMagicEffect(pos, CONST_ME_TELEPORT)
  doSendMagicEffect(pos1, CONST_ME_TELEPORT)
else
  doTeleportThing(cid,pos)
  doSendMagicEffect(pos, CONST_ME_TELEPORT)
end
return 1
end

 

@Roversinho

use este aqui, pois o que eu postei não tem reset cooldown!

 

 


function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 990) >= 1 then
doPlayerSendCancel(cid, "You can't use revive during gym battles.")
return true
end

if item2.itemid <= 0 or not isPokeball(item2.itemid) then
doPlayerSendCancel(cid, "Please, use revive only on pokeballs.")
return true
end

for a, b in pairs (pokeballs) do
if item2.itemid == b.off then
doTransformItem(item2.uid, b.on)
doSetItemAttribute(item2.uid, "hp", 1)
for c = 1, 15 do
local str = "move"..c
setCD(item2.uid, str, 0)
end
doSendMagicEffect(getThingPos(cid), 13)
doRemoveItem(item.uid, 1)
doCureBallStatus(item2.uid, "all")
return true
end
end

doPlayerSendCancel(cid, "Use revive only on fainted pokémons!")

return true
end

 

 

vlw lek rep pra tu

Link para o comentário
Compartilhar em outros sites

@all

Galera estou com um erro chato no System Promotion assim que resolver posto aki para todos 100%

 

Ajudinha.

 

Kct o Tangela lvl 65 ta dando + de 1 k no absorver, onde posso diminuir essa taxa ?

Link para o comentário
Compartilhar em outros sites

@ElderZard e Zerons

pelo q sei aquilo n muda ND nos atks... ;x

a formula de dano ta no lua/pokemon move.lua... alias.. nem sei se eh la ms q tem q mexer tb.. pois nem intendi como funciona esse move e o leech seed.. ;x o brun eh bem lokin.. mas dizem q todo "genio" eh assim neh? ;p

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

@Slicer

Minha mae fala isso para mim agora quem fala e minha mulher kkkk

Ela so nao gosta muito que eu fique ate as 4 da manha no pc

Chego em casa fico com ela ate ela durmi depois pulo para o pc, se nao for assim nao usso computado, nao sou do tipo de homem que troca mulher por pc nem jogo.

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...