Support ✅Set de Inicio

L

Lucifer

Invited
Alguien me pudiese ayudar, para poder cambiar el set que se les da de inicio a los players en el server?
 
Solution
Alguien me pudiese ayudar, para poder cambiar el set que se les da de inicio a los players en el server?
Hola

Depende que servidor estás jugando.
En el Real Map ( otservbr / canary ) sera muy probablemente en Dawnport ? Si es el set de los que inician en dawnport o en otra ciudad, deberás de fijarte en la Action ID del Chest, y buscar la ActionID en tus archivos.

Para hacer una búsqueda fácil y rápida, te aconsejo descargar Visual Studio Code.

Te permitirá abrir la carpeta entera del servidor y en la búsqueda, podrás encontrar cualquier cosa relacionada al servidor.

En el caso de que no tengas el script, aqui tienes uno que puedes poner en data/scripts/creaturescripts:

Code:
local creatureevent = CreatureEvent("FirstItems")...
Alguien me pudiese ayudar, para poder cambiar el set que se les da de inicio a los players en el server?
Hola

Depende que servidor estás jugando.
En el Real Map ( otservbr / canary ) sera muy probablemente en Dawnport ? Si es el set de los que inician en dawnport o en otra ciudad, deberás de fijarte en la Action ID del Chest, y buscar la ActionID en tus archivos.

Para hacer una búsqueda fácil y rápida, te aconsejo descargar Visual Studio Code.

Te permitirá abrir la carpeta entera del servidor y en la búsqueda, podrás encontrar cualquier cosa relacionada al servidor.

En el caso de que no tengas el script, aqui tienes uno que puedes poner en data/scripts/creaturescripts:

Code:
local creatureevent = CreatureEvent("FirstItems")

local config = {
    [1] = { -- Sorcerer
        items = {
            {2175, 1}, -- spellbook
            {2190, 1}, -- wand of vortex
            {8819, 1}, -- magician's robe
            {8820, 1}, -- mage hat
            {2468, 1}, -- studded legs
            {2643, 1}, -- leather boots
            {2661, 1}  -- scarf
        },
        container = {
            {2120, 1}, -- rope
            {2554, 1}, -- shovel
            {7620, 1}  -- mana potion
        }
    },
    [2] = { -- Druid
        items = {
            {2175, 1}, -- spellbook
            {2182, 1}, -- snakebite rod
            {8819, 1}, -- magician's robe
            {8820, 1}, -- mage hat
            {2468, 1}, -- studded legs
            {2643, 1}, -- leather boots
            {2661, 1}  -- scarf
        },
        container = {
            {2120, 1}, -- rope
            {2554, 1}, -- shovel
            {7620, 1}  -- mana potion
        }
    },
    [3] = { -- Paladin
        items = {
            {2525, 1}, -- dwarven shield
            {2389, 5}, -- 5 spears
            {2660, 1}, -- ranger's cloak
            {8923, 1}, -- ranger legs
            {2643, 1}, -- leather boots
            {2661, 1}, -- scarf
            {2480, 1}  -- legion helmet
        },
        container = {
            {2120, 1},  -- rope
            {2554, 1},  -- shovel
            {7618, 1},  -- health potion
            {2456, 1},  -- bow
            {2544, 50}  -- 50 arrows
        }
    },
    [4] = { -- Knight
        items = {
            {2525, 1}, -- dwarven shield
            {8601, 1}, -- steel axe
            {2465, 1}, -- brass armor
            {2460, 1}, -- brass helmet
            {2478, 1}, -- brass legs
            {2643, 1}, -- leather boots
            {2661, 1}  -- scarf
        },
        container = {
            {8602, 1}, -- jagged sword
            {2439, 1}, -- daramanian mace
            {2120, 1}, -- rope
            {2554, 1}, -- shovel
            {7618, 1}  -- health potion
        }
    },
    [9] = { -- Crusader
        items = {
            {2525, 1}, -- dwarven shield
            {8601, 1}, -- steel axe
            {2465, 1}, -- brass armor
            {2460, 1}, -- brass helmet
            {2478, 1}, -- brass legs
            {2643, 1}, -- leather boots
            {2661, 1}  -- scarf
        },
        container = {
            {8602, 1}, -- jagged sword
            {2439, 1}, -- daramanian mace
            {2120, 1}, -- rope
            {2554, 1}, -- shovel
            {7618, 1}  -- health potion
        }
    }
}

function creatureevent.onLogin(player)
    local targetVocation = config[player:getVocation():getId()]
    if not targetVocation then
        return true
    end

    if player:getLastLoginSaved() ~= 0 then
        return true
    end

    for i = 1, #targetVocation.items do
        player:addItem(targetVocation.items[i][1], targetVocation.items[i][2])
    end

    local backpack = player:addItem(1988) -- backpack
    if not backpack then
        return true
    end

    for i = 1, #targetVocation.container do
        backpack:addItem(targetVocation.container[i][1], targetVocation.container[i][2])
    end
    return true
end

creatureevent:register()
 
Solution

Tibia Server Lists

#1 FEATURED US Ultron OT 1,532 / 5,000Online EXPStages PROTO8.6 ENGINEUltron OT RANK PTS5.9 +100% VOTES0 #2 FEATURED US Nefera 152 / 0Online EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.1 +100% VOTES0 #3 FEATURED ES Deixis 0 / 0Offline EXPStages PROTO1098 ENGINETFS RANK PTS3.7 +100% VOTES1 #4 FEATURED ES Maeli 5 / 150Online EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.7 +100% VOTES0 #5 MX Marlboro War 33 / 300Online EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -33% VOTES0 #6 BR Tibinha YurOts 17 / 150Online EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.2 -14% VOTES0 #7 US Halera 2 / 0Online EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.9 -83% VOTES0 #8 BR Exordion Legacy 52 / 2,000Online EXPx2 PROTO7.72 ENGINEExordion RANK PTS4.9 +100% VOTES0 #9 PL Lubelski 8 / 1,000Online EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.6 -15% VOTES0 #10 ES JustRL FreeTC 1530 39 / 250Online EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS4.3 +100% VOTES0 #11 DE DBU Online 0 / 400Online EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS4.3 +100% VOTES0 #12 PL ReWar 0 / 2,000Online EXPcustom PROTO8.6 ENGINEOther RANK PTS4.3 0% VOTES0 #13 PL Velesta 0 / 1,000Offline EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.3 -99% VOTES0 #14 ES Farlia Global 2026 0 / 333Offline EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS3.9 -22% VOTES0 #15 SE MortalisOT Custom 0 / 500Offline EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS3.8 +100% VOTES0 #16 US Rommania 0 / 500Online EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.6 +100% VOTES0 #17 US BerethaOnline 1 / 2,000Online EXPStages PROTO10.98 ENGINETFS RANK PTS3.5 +100% VOTES0
Top