Bem vamos la voce precisa postar o seu surfcancel aki pois e nele que precisamos mudar porque se pos storage so nesse script buga entao posta que ue concert
ai o player ao logar tera o mesmo outfit manda o surfcancel.
Agora em relaçao ao bug do distro e porque o script nao verifica se tem pokemon e nem o nome para concertar subtituia por seu primeiro script que posto por esse:
local speedbonus = 1.0
local premium = false
local outfit = {
[0] = {lookType = 1034, lookHead = 0, lookBody = 105, lookLegs = 0, lookFeet = 0},
[1] = {lookType = 1035, lookHead = 0, lookBody = 105, lookLegs = 0, lookFeet = 0}
}
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"}
function onStepIn(cid, item, pos, fromPosition)
local npos = {x=pos.x, y=pos.y, z=pos.z + 1}
if isPlayer(cid) and not isPremium(cid) and premium == true then
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Only premium members are allowed to dive.")
return true
end
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to surf.")
return true
end
if not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) then
doPlayerSendCancel(cid, "This poemon not use surf.")
return true
end
if isPlayer(cid) then
doTeleportThing(cid, npos)
doPlayerSay(cid, "Swimming!", TALKTYPE_ORANGE_1)
getCreatureCondition(cid, CONDITION_OUTFIT)
doSetCreatureOutfit(cid, outfit[getPlayerSex(cid)], -1)
doChangeSpeed(cid, speedbonus*getCreatureSpeed(cid))
else
return true
end
end
Agora outro script por esse:
local divepoke = {'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 dive = {
["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},
}
function onStepIn(cid, item, pos, fromPosition)
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to dive.")
return true
end
if not isInArray(divepoke, getCreatureName(getCreatureSummons(cid)[1])) then
doPlayerSendCancel(cid, "This poemon not use dive.")
return true
end
local spos = {x=pos.x, y=pos.y, z=pos.z - 1}
if doTeleportThing(cid, spos) then
doSetCreatureOutfit(cid, {lookType = dive[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1)
doChangeSpeed(cid, dive[getSpeed] * 1)
end
return true
end