• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    [Ayuda] SQM TRAINNER CON FIST HELP!

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1default [Ayuda] SQM TRAINNER CON FIST HELP! el Miér Jun 03, 2020 7:09 pm

    otakrap

    otakrap
    Miembro
    Miembro
    Descripcion escribió:Hola Que tal Comunidad les escribo en esta oportunidad xq quiero agregarle al sqm trainner no solamente los skills que siempre solemos utilizar si no tambien agregarle en esta oportunidad el FIST este es el script alguien que me ayude x favor Help!!!

    Código:
     -- Config --
            local skillTries = 10 -- Number of tries per skill
            local t = 3 * 1000 -- Set the time before try is added to skills
            local lock = 15 -- Time to wait before start again in seconds

            -- Weapon Types --
            local weaponTypes = {
             { 1, 2 }, -- Sword
             { 2, 1 }, -- Club
             { 3, 3 }, -- Axe
             { 4, 5 }, -- Shield
             { 5, 4 }  -- Distance
            }
            
            function onStepIn(cid, item, pos, fromPos)
             local p = {cid = cid, item = item, pos = pos}
             if getPlayerStorageValue(p.cid, 18010) == 2 then
             doTeleportThing(p.cid, fromPos, TRUE)
             doPlayerSendTextMessage(p.cid,22,"You must wait "..lock.." seconds before you start again")
             return false
             end
             setPlayerStorageValue(p.cid, 18010, 1)
             if isPlayer(p.cid) and p.item.actionid == 900 then
             doPlayerSendTextMessage(p.cid,22,"La sesion de entrenamiento comenzara ahora")
             addEvent(trainMe, t, p)
             end
             return true
            end
            function onStepOut(cid, item)
             if getPlayerStorageValue(cid, 18010) == 50000 then
             return false
             end
             setPlayerStorageValue(cid, 18010, 2)
             addEvent(trainLock, lock * 1000, cid)
             doPlayerSendTextMessage(cid,22,"La sesion de entrenamiento ha terminado")
             return true
            end
            function trainLock (cid)
             if isPlayer(cid) then
             setPlayerStorageValue(cid, 18010, 0)
             end
            end
            function trainMe(p)
             if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 and p.item.actionid == 900 then
             local weaponLeft = getPlayerSlotItem(p.cid, CONST_SLOT_LEFT)
             local weaponRight = getPlayerSlotItem(p.cid, CONST_SLOT_RIGHT)
             if weaponLeft.itemid ~= 0 then
             weaponLeft = getItemWeaponType(weaponLeft.uid)
             end
             if weaponRight.itemid ~= 0 then
             weaponRight = getItemWeaponType(weaponRight.uid)
             end
             for _, t in pairs(weaponTypes) do
             if t[1] == weaponLeft or t[1] == weaponRight then
            doPlayerAddSkillTry(p.cid, t[2], skillTries)
             end
             end
             manaspent = getPlayerMana(p.cid)
             doPlayerAddSpentMana(p.cid, manaspent)
             doTargetCombatMana(0, p.cid, -manaspent, -manaspent, CONST_ME_NONE)
            
            doSendMagicEffect(getPlayerPosition(p.cid),34)
            
            addEvent(trainMe, t, p)
             end
             return true
            end

    DE ANTEMANO MUCHAS GRACIAS Embarassed
    Imagen Explicativa escribió:Imagen Explicativa: [Ayuda] SQM TRAINNER CON FIST HELP! Tibiaf10
    Version del Scripts: TFs 0.3.7

    http://aibittools.jimdo.com

    2default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Jue Jun 04, 2020 2:20 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    supong que tendras que agregar le el 0
    Código:

     local weaponTypes = {
            { 0, 0 }, -- fist
            { 1, 2 }, -- Sword
            { 2, 1 }, -- Club
            { 3, 3 }, -- Axe
            { 4, 5 }, -- Shield
            { 5, 4 }  -- Distance
            }



    [Ayuda] SQM TRAINNER CON FIST HELP! YNU5B25
    https://www.tibiaface.com

    3default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Jue Jun 04, 2020 2:24 pm

    otakrap

    otakrap
    Miembro
    Miembro
    dejame testear Smile



    Última edición por otakrap el Vie Jun 05, 2020 10:23 am, editado 1 vez

    http://aibittools.jimdo.com

    4default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Vie Jun 05, 2020 10:22 am

    otakrap

    otakrap
    Miembro
    Miembro
    [Tienes que estar registrado y conectado para ver este vínculo] escribió:supong que tendras que agregar le el 0
    Código:

     local weaponTypes = {
             { 0, 0 }, -- fist
             { 1, 2 }, -- Sword
             { 2, 1 }, -- Club
             { 3, 3 }, -- Axe
             { 4, 5 }, -- Shield
             { 5, 4 }  -- Distance
            }

    Nada bro Sad

    http://aibittools.jimdo.com

    5default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Vie Jun 05, 2020 1:11 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    prueba este

    Código:

    -- Square Skill Trainer made by Arthur aka artofwork
    -- This script will train all of a players skills indefintely
    -- It has a small configuration setup where you can set the number of tries per skill
    -- The time internveral in between each skill try added
    -- A storage value to help prevent abuse
    -- This is truely my first script, it comes without support since lua is new to me
    -- You can assign any tile you wish to this script that a player can walk on with action id 900


    -- Config --
    local storage = 18010 -- Storage value for the player when he steps on and off the tile

    local skilltries = 1 -- Number of tries per skill
    local t = 4 * 1000 -- Set the time before try is added to skills

    -------------------------------------------------------------------------
    function trainerthree(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will begin in 30 seconds")
    addEvent(trainertwo, 10 * 1000, p)
    end
    end
    return FALSE
    end
    function trainertwo(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will begin in 20 seconds")
    addEvent(trainerone, 10 * 1000, p)
    end
    end
    return FALSE
    end
    function trainerone(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will begin in 10 seconds")
    addEvent(readyToTrain, 10 * 1000, p)
    end
    end
    return FALSE
    end



    function readyToTrain(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will now begin")
    addEvent(trainMeA, t, p)
    end
    end
    return FALSE
    end


    function trainMeA(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then

    for a = 1, t do
    if(a == t) then
    doPlayerAddSkillTry(p.cid, SKILL_FIST, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SWORD, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_CLUB, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_AXE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_DISTANCE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SHIELD, skilltries)
    end
    end
    end
    addEvent(trainMeB, t, p)
    end
    return FALSE
    end

    function trainMeB(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    for b = 1, t do
    if(b == t) then
    doPlayerAddSkillTry(p.cid, SKILL_FIST, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_CLUB, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SWORD, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_AXE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_DISTANCE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SHIELD, skilltries)

    end
    end
    end
    addEvent(trainMeA, t, p)
    end
    return FALSE
    end



    function onStepIn(cid, item)
    local p = {cid = cid, item = item, pos = pos}
    setPlayerStorageValue(p.cid, 18010, 1)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    addEvent(trainerthree, 1 * 1000, p)
    end
    end
    return FALSE
    end


    function onStepOut(cid, item)
    getPlayerStorageValue(cid, 18010)
    setPlayerStorageValue(cid, 18010, 0)
    doPlayerSendTextMessage(cid,22,"Your training session has now ended")
    end



    [Ayuda] SQM TRAINNER CON FIST HELP! YNU5B25
    https://www.tibiaface.com

    6default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Sáb Jun 06, 2020 2:32 pm

    otakrap

    otakrap
    Miembro
    Miembro
    [Tienes que estar registrado y conectado para ver este vínculo] escribió:prueba este

    Código:

    -- Square Skill Trainer made by Arthur aka artofwork
    -- This script will train all of a players skills indefintely
    -- It has a small configuration setup where you can set the number of tries per skill
    -- The time internveral in between each skill try added
    -- A storage value to help prevent abuse
    -- This is truely my first script, it comes without support since lua is new to me
    -- You can assign any tile you wish to this script that a player can walk on with action id 900


    -- Config --
    local storage = 18010 -- Storage value for the player when he steps on and off the tile

    local skilltries = 1 -- Number of tries per skill
    local t = 4 * 1000 -- Set the time before try is added to skills

    -------------------------------------------------------------------------
    function trainerthree(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will begin in 30 seconds")
    addEvent(trainertwo, 10 * 1000, p)
    end
    end
    return FALSE
    end
    function trainertwo(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will begin in 20 seconds")
    addEvent(trainerone, 10 * 1000, p)
    end
    end
    return FALSE
    end
    function trainerone(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will begin in 10 seconds")
    addEvent(readyToTrain, 10 * 1000, p)
    end
    end
    return FALSE
    end



    function readyToTrain(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    doPlayerSendTextMessage(p.cid,22,"Your training session will now begin")
    addEvent(trainMeA, t, p)
    end
    end
    return FALSE
    end


    function trainMeA(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then

    for a = 1, t do
    if(a == t) then
    doPlayerAddSkillTry(p.cid, SKILL_FIST, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SWORD, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_CLUB, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_AXE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_DISTANCE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SHIELD, skilltries)
    end
    end
    end
    addEvent(trainMeB, t, p)
    end
    return FALSE
    end

    function trainMeB(p)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    for b = 1, t do
    if(b == t) then
    doPlayerAddSkillTry(p.cid, SKILL_FIST, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_CLUB, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SWORD, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_AXE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_DISTANCE, skilltries)
    doPlayerAddSkillTry(p.cid, SKILL_SHIELD, skilltries)

    end
    end
    end
    addEvent(trainMeA, t, p)
    end
    return FALSE
    end



    function onStepIn(cid, item)
    local p = {cid = cid, item = item, pos = pos}
    setPlayerStorageValue(p.cid, 18010, 1)
    if isPlayer(p.cid) and getPlayerStorageValue(p.cid, 18010) == 1 then
    if p.item.actionid == 900 then
    addEvent(trainerthree, 1 * 1000, p)
    end
    end
    return FALSE
    end


    function onStepOut(cid, item)
    getPlayerStorageValue(cid, 18010)
    setPlayerStorageValue(cid, 18010, 0)
    doPlayerSendTextMessage(cid,22,"Your training session has now ended")
    end

    deje testeo y le aviso

    http://aibittools.jimdo.com

    7default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Dom Jun 07, 2020 8:44 am

    otakrap

    otakrap
    Miembro
    Miembro
    Este sube todos los skills de golpe Sad

    http://aibittools.jimdo.com

    8default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Lun Jun 08, 2020 3:06 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    [Tienes que estar registrado y conectado para ver este vínculo] escribió:Este sube todos los skills de golpe Sad

    trata de modificar esto


    local skilltries = 1 -- Number of tries per skill



    [Ayuda] SQM TRAINNER CON FIST HELP! YNU5B25
    https://www.tibiaface.com

    9default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Miér Jun 10, 2020 11:48 am

    otakrap

    otakrap
    Miembro
    Miembro
    [Tienes que estar registrado y conectado para ver este vínculo] escribió:
    [Tienes que estar registrado y conectado para ver este vínculo] escribió:Este sube todos los skills de golpe Sad

    trata de modificar esto


    local skilltries = 1 -- Number of tries per skill

    ok testeo y te informo

    http://aibittools.jimdo.com

    10default Re: [Ayuda] SQM TRAINNER CON FIST HELP! el Sáb Jun 20, 2020 8:28 pm

    otakrap

    otakrap
    Miembro
    Miembro
    Nada sigue igual :/

    http://aibittools.jimdo.com

    Contenido patrocinado


    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

    Permisos de este foro:
    No puedes responder a temas en este foro.

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).