Ir para conteúdo

BUNDINA

Campones
  • Total de itens

    9
  • Registro em

  • Última visita

Posts postados por BUNDINA

  1. 8 horas atrás, DarkWore disse:

    Altera seu surf.lua do Movements por esse:

    https://hastebin.com/raw/opivufuvec

     

    Altere seu surfcancel.lua por esse:

    https://hastebin.com/raw/yudagohiwo

     

    Me Informa os Resultados.

     

    Funcionou, mas está dando esse erro 

    Spoiler


    [11/10/2017 06:41:28] [Error - Action Interface] 
    [11/10/2017 06:41:28] datapack/actions/scripts/surf.lua:onUse
    [11/10/2017 06:41:28] Description: 
    [11/10/2017 06:41:28] attempt to index a nil value
    [11/10/2017 06:41:28] stack traceback:
    [11/10/2017 06:41:28]     [C]: in function 'doSetCreatureOutfit'
    [11/10/2017 06:41:28]     datapack/actions/scripts/surf.lua:92: in function <datapack/actions/scripts/surf.lua:75>

     

  2. Spoiler

    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 flie = {'4820', '4821', '4822', '4823', '4824', '4825'}
                                                                       --alterado v1.6 tabelas agora em configuration.lua!
    local premium = false

    function onStepIn(cid, item, position, fromPosition)

    if not isPlayer(cid) or isInArray({5, 6}, getPlayerGroupId(cid)) then --alterado v1.9
    return true
    end
    if getPlayerStorageValue(cid, 75846) >= 1 then return true end   --alterado v1.9

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

    if isPlayer(cid) and not isPremium(cid) and premium == true then
       doTeleportThing(cid, fromPosition, false)
       doPlayerSendCancel(cid, "Only premium 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
                           --alterado v1.6
    if (not isInArray(specialabilities["surf"], getPokemonName(getCreatureSummons(cid)[1]))) then 
       doPlayerSendCancel(cid, "This pokemon cannot surf.")
       doTeleportThing(cid, fromPosition, false)
       return true
    end

    if getPlayerStorageValue(cid, 5700) == 1 then
       doPlayerSendCancel(cid, "You can't do that while is mount in a bike!")
       doTeleportThing(cid, fromPosition, false)
       return true
    end

    if getPlayerStorageValue(cid, 212124) >= 1 then         --alterado v1.6
       doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!")
       doTeleportThing(cid, fromPosition, false)
       return true
    end

    if getPlayerStorageValue(cid, 52480) >= 1 then
       doPlayerSendCancel(cid, "You can't do it while a duel!")  --alterado v1.6
       doTeleportThing(cid, fromPosition, false)
       return true
    end

    if getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then 
       doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!")   --alterado v1.7
       doTeleportThing(cid, fromPosition, false)
       return true
    end
     local addonsurf = getPlayerSlotItem(cid, 8).uid
                    local addosurf = getItemAttribute(addonsurf,"addonsurf")
                    if not addosurf then
                                  doSetItemAttribute(addonsurf,"addonsurf",0) 
        doSetCreatureOutfit(cid, {lookType = surfs[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1) 
                    end
                    if addosurf > 0 then
                                    doSetCreatureOutfit(cid, {lookType = addosurf}, -1)

                    end
    doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", 1)
    doChangeSpeed(cid, -(getCreatureSpeed(cid)))
                                            --alterado v1.6
    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)

    local item = getPlayerSlotItem(cid, 8)
    if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) <= 0 then
       addEvent(sendAuraEffect, 120, cid, auraSyst[getItemAttribute(item.uid, "aura")])    --alterado v1.8
    end

    if useOTClient then
       doPlayerSendCancel(cid, '12//,hide') --alterado v1.8
    end

    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]              
                    local balla = getPlayerSlotItem(cid, 8).uid
                    local balladdon = getItemAttribute(balla,"addon")
                    if not balladdon then
                                    doSetItemAttribute(balla,"addon",0) 

                    end
                    if balladdon > 0 then
                                    doSetCreatureOutfit(pk, {lookType = balladdon}, -1)

                    end

            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))
            doRegainSpeed(cid)      --alterado v1.6
            
            doTeleportThing(pk, fromPosition, false)
            doTeleportThing(pk, getThingPos(cid), true)
            doCreatureSetLookDir(pk, getCreatureLookDir(cid))

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

            if useOTClient then
               doPlayerSendCancel(cid, '12//,show') --alterado v1.8
            end
            
        end

    return true
    end

    Spoiler

    function onStepIn(cid, item, position, fromPosition)
    if getPlayerStorageValue(cid, 17000) >= 1 then
    return true
    end
    if getPlayerStorageValue(cid, 63215) >= 1 then
    doRemoveCondition(cid, CONDITION_OUTFIT)
    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, getItemAttribute(item.uid, "nick")..", Im tired of surfing!", 1)
        else
            doCreatureSay(cid, getItemAttribute(item.uid, "poke")..", Im tired of surfing!", 1)
        end

        doSummonMonster(cid, pokemon)

        local pk = getCreatureSummons(cid)[1]

        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)

    return true
    end
    end

    2 horas atrás, DarkWore disse:

    Vai em Datapack/Movements e manda seu surf.lua e surfcancel.lua.

     

     

     

  3. 11 minutos atrás, Marshmello disse:
      Ocultar conteúdo

    local pokes = {
    ["Poliwag"] = {lookType=629, speed = 320},
    ["Poliwhirl"] = {lookType=488, speed = 480},
    ["Seaking"] = {lookType=620, speed = 520},
    ["Dewgong"] = {lookType=534, speed = 700},
    ["Blastoise"] = {lookType=535, speed = 850},
    ["Tentacruel"] = {lookType=536, speed = 750},
    ["Lapras"] = {lookType=537, speed = 960},
    ["Gyarados"] = {lookType=538, speed = 1050},
    ["Omastar"] = {lookType=539, speed = 680},
    ["Kabutops"] = {lookType=540, speed = 840},
    ["Poliwrath"] = {lookType=541, speed = 680},
    ["Vaporeon"] = {lookType=542, speed = 800},
    ["Staryu"] = {lookType=617, speed = 385},
    ["Starmie"] = {lookType=618, speed = 685},
    ["Goldeen"] = {lookType=619, speed = 355},
    ["Seadra"] = {lookType=621, speed = 655},
    ["Golduck"] = {lookType=622, speed = 760},
    ["Squirtle"] = {lookType=624, speed = 365},
    ["Wartortle"] = {lookType=626, speed = 605},
    ["Tentacool"] = {lookType=628, speed = 340},
    ["Snorlax"] = {lookType=651, speed = 500},
    ["Piplup"] = {lookType=1562, speed = 350},
    ["Prinplup"] = {lookType=1561, speed = 400},
    ["Empoleon"] = {lookType=1564, speed = 550},
    ["Shiny Blastoise"] = {lookType=1009, speed = 935},
    ["Shiny Tentacruel"] = {lookType=1365, speed = 825},
    ["Shiny Gyarados"] = {lookType=1381, speed = 1155},
    ["Shiny Vaporeon"] = {lookType=1032, speed = 880},      
    ["Shiny Seadra"] = {lookType=1383, speed = 720.5},
    ["Shiny Tentacool"] = {lookType=1364, speed = 374},
    ["Shiny Snorlax"] = {lookType=1386, speed = 550},
    ["Mantine"] = {lookType=987, speed = 820},
    ["Totodile"] = {lookType=988, speed = 360},
    ["Croconow"] = {lookType=989, speed = 590},
    ["Feraligatr"] = {lookType=996, speed = 900},
    ["Marill"] = {lookType=990, speed = 340},
    ["Azumarill"] = {lookType=993, speed = 680},
    ["Quagsire"] = {lookType=994, speed = 740},
    ["Kingdra"] = {lookType=995, speed = 1020},
    ["Octillery"] = {lookType=992, speed = 600},
    ["Wooper"] = {lookType=991, speed = 315},
    ["Buizel"] = {lookType=1511, speed = 315},
    ["Floatzel"] = {lookType=1509, speed = 350},
    ["Gastrodon east"] = {lookType=1573, speed = 200},
    ["Gastrodon"] = {lookType=1572, speed = 200},
    ["Finneon"] = {lookType=1544, speed = 120},
    ["Lumineon"] = {lookType=1543, speed = 120},
    ["Walrein"] = {lookType=1757, speed = 120},
    ["Wingull"] = {lookType=1751, speed = 120},
    ["Wailmer"] = {lookType=1750, speed = 120},
    ["Swampert"] = {lookType=1746, speed = 120},
    ["Ludicolo"] = {lookType=1743, speed = 120},
    ["Sharpedo"] = {lookType=1739, speed = 120},
    ["Gorebys"] = {lookType=1734, speed = 120},
    ["Huntail"] = {lookType=1733, speed = 120},
    ["Relicanth"] = {lookType=1753, speed = 120},
    ["Linoone"] = {lookType=1730, speed = 120},
    ["Spheal"] = {lookType=1729, speed = 120},
    ["Mudkip"] = {lookType=1728, speed = 120},
    ["Whiscash"] = {lookType=1727, speed = 120},
    ["Marshtomp"] = {lookType=1726, speed = 120},
    ["Luvdisc"] = {lookType=1725, speed = 120},
    ["Lombre"] = {lookType=1724, speed = 120},
    ["Barboach"] = {lookType=1723, speed = 120},
    ["Finneon"] = {lookType=1544, speed = 120},
    ["Shiny Lapras"] = {lookType=2060, speed = 1200},
    }
    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"):match("This is (.-)'s pokeball.")..", Im tired of surfing!", 1)
    pk = doSummonCreature(getItemAttribute(item.uid, "poke"):match("This is (.-)'s pokeball."), 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

    Teste

    Não vai ainda 

  4. 16 horas atrás, felipedaniel disse:

    Ola Amigo, primeiramente verifique se aparece algum erro na distro, tire um print e poste,e tbem poste o script de surf

    Então não há nenhum bug na distro mesmo quando a uso

     

    8 horas atrás, Marshmello disse:

    manda seu surf.lua no actions

    local pokes = {

    ["Poliwag"] = {lookType=629, speed = 320},
    ["Poliwhirl"] = {lookType=488, speed = 480},
    ["Seaking"] = {lookType=620, speed = 520},
    ["Dewgong"] = {lookType=534, speed = 700},
    ["Blastoise"] = {lookType=535, speed = 850},
    ["Tentacruel"] = {lookType=536, speed = 750},
    ["Lapras"] = {lookType=537, speed = 960},
    ["Gyarados"] = {lookType=538, speed = 1050},
    ["Omastar"] = {lookType=539, speed = 680},
    ["Kabutops"] = {lookType=540, speed = 840},
    ["Poliwrath"] = {lookType=541, speed = 680},
    ["Vaporeon"] = {lookType=542, speed = 800},
    ["Staryu"] = {lookType=617, speed = 385},
    ["Starmie"] = {lookType=618, speed = 685},
    ["Goldeen"] = {lookType=619, speed = 355},
    ["Seadra"] = {lookType=621, speed = 655},
    ["Golduck"] = {lookType=622, speed = 760},
    ["Squirtle"] = {lookType=624, speed = 365},
    ["Wartortle"] = {lookType=626, speed = 605},
    ["Tentacool"] = {lookType=628, speed = 340},
    ["Snorlax"] = {lookType=651, speed = 500},
    ["Piplup"] = {lookType=1562, speed = 350},
    ["Prinplup"] = {lookType=1561, speed = 400},
    ["Empoleon"] = {lookType=1564, speed = 550},
    ["Shiny Blastoise"] = {lookType=1009, speed = 935},
    ["Shiny Tentacruel"] = {lookType=1365, speed = 825},
    ["Shiny Gyarados"] = {lookType=1381, speed = 1155},
    ["Shiny Vaporeon"] = {lookType=1032, speed = 880},      
    ["Shiny Seadra"] = {lookType=1383, speed = 720.5},
    ["Shiny Tentacool"] = {lookType=1364, speed = 374},
    ["Shiny Snorlax"] = {lookType=1386, speed = 550},
    ["Mantine"] = {lookType=987, speed = 820},
    ["Totodile"] = {lookType=988, speed = 360},
    ["Croconow"] = {lookType=989, speed = 590},
    ["Feraligatr"] = {lookType=996, speed = 900},
    ["Marill"] = {lookType=990, speed = 340},
    ["Azumarill"] = {lookType=993, speed = 680},
    ["Quagsire"] = {lookType=994, speed = 740},
    ["Kingdra"] = {lookType=995, speed = 1020},
    ["Octillery"] = {lookType=992, speed = 600},
    ["Wooper"] = {lookType=991, speed = 315},
    ["Buizel"] = {lookType=1511, speed = 315},
    ["Floatzel"] = {lookType=1509, speed = 350},
    ["Gastrodon east"] = {lookType=1573, speed = 200},
    ["Gastrodon"] = {lookType=1572, speed = 200},
    ["Finneon"] = {lookType=1544, speed = 120},
    ["Lumineon"] = {lookType=1543, speed = 120},
    ["Walrein"] = {lookType=1757, speed = 120},
    ["Wingull"] = {lookType=1751, speed = 120},
    ["Wailmer"] = {lookType=1750, speed = 120},
    ["Swampert"] = {lookType=1746, speed = 120},
    ["Ludicolo"] = {lookType=1743, speed = 120},
    ["Sharpedo"] = {lookType=1739, speed = 120},
    ["Gorebys"] = {lookType=1734, speed = 120},
    ["Huntail"] = {lookType=1733, speed = 120},
    ["Relicanth"] = {lookType=1753, speed = 120},
    ["Linoone"] = {lookType=1730, speed = 120},
    ["Spheal"] = {lookType=1729, speed = 120},
    ["Mudkip"] = {lookType=1728, speed = 120},
    ["Whiscash"] = {lookType=1727, speed = 120},
    ["Marshtomp"] = {lookType=1726, speed = 120},
    ["Luvdisc"] = {lookType=1725, speed = 120},
    ["Lombre"] = {lookType=1724, speed = 120},
    ["Barboach"] = {lookType=1723, speed = 120},
    ["Finneon"] = {lookType=1544, speed = 120},
    ["Shiny Lapras"] = {lookType=2060, speed = 1200},
    }

    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)
    -- doChangeSpeed(cid, pokes[getCreatureName(getCreatureSummons(cid)[1])].speed)
    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)
    -- pk = doSummonCreature(getItemAttribute(item.uid, "poke"):match("This is (.-)'s pokeball."), getCreaturePosition(cid))
    -- doConvinceCreature(cid, pk)
    doRegainSpeedLevel(cid)
    end
    return true
    end

    16 horas atrás, felipedaniel disse:

    Ola Amigo, primeiramente verifique se aparece algum erro na distro, tire um print e poste,e tbem poste o script de surf

    [10/10/2017 08:04:09] [Error - MoveEvents Interface] 
    [10/10/2017 08:04:09] datapack/movements/scripts/surf.lua:onStepIn
    [10/10/2017 08:04:09] Description: 
    [10/10/2017 08:04:09] datapack/movements/scripts/surf.lua:75: attempt to compare number with nil
    [10/10/2017 08:04:09] stack traceback:
    [10/10/2017 08:04:09]     datapack/movements/scripts/surf.lua:75: in function <datapack/movements/scripts/surf.lua:11>

  • Quem Está Navegando   0 membros estão online

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