❌invocar boss por objeto

T

thefrancis

Invited
buenas noches, quisiera saber si es posible para la version 12x (hellgrave)
configurar un script para poder invocar un boss, usando un objeto sobre otro (onda asi como sacrificio) con alguna animacion bonita, y poder configurar donde apareceria dicho boss.
 
buenas noches, quisiera saber si es posible para la version 12x (hellgrave)
configurar un script para poder invocar un boss, usando un objeto sobre otro (onda asi como sacrificio) con alguna animacion bonita, y poder configurar donde apareceria dicho boss.

No se si existe un script de ese tipo, pero si se que se puede crear, por qué al usar un item = onUse y de tipo Action().

Habría que encontrar un script, cualquiera ( action mejor ) que crea un monstruo y en ese caso editarlo para que haga lo que tu quieras.

Se puede utilizar de esa forma, "si hay item 1111 y se usa en item 7444 entonces" , hara lo que pondras debajo de esa funcion,
if item.id == 1111 and target item.id == 7444 then
Para crear un monstruo usamos:
Game.createMonster('demon')
Ya puede ser 'demon' o bien indicas, por ejemplo config.bossName , si usas al principio del script un local config con sus respectivas informaciones.
 
hola buenas estaba modificando uno como no se mucho, y al principio me estaba funcionando ahora nose que fue lo que movi y ya no jaja


SQL:
-------------THIS SCRIPT WAS MADED BY VANKK AT 15TH DECEMBER 2016 AT 4 P.M (GMT - 3) -------------

local config = {
    [7636] = {
        targetId = 38834, -- Target ID.
        bossName = 'Goshnar Greed', -- boss name
        keyPlayerPosition = Position(33608, 32394, 11), -- Where the player should be.
        bossPosition = Position(32355, 32272, 7), -- Boss Position
    }
}


local keys = Action()

function keys.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    local tmpConfig = config[item.itemid]
    if not tmpConfig then
        return true
    end
    
    if target.itemid ~= tmpConfig.targetId then
    return true
    end

    local monster = Game.createMonster(tmpConfig.bossName, tmpConfig.bossPosition)
    if not monster then
        return true
    end
    
        -- Send message
    player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Cuidado! un Boss ha sido convocado!')
    
        item:remove()
    return true
end

bosskeys:id(7636)
bosskeys:register()

a ver si me ayudan con esto jaja
 
View attachment 3087

este error me da, se que no es el mejor script modificado pero enserio que me funcionaba jajaja
Hola thefrancis, aquí arreglé el script para que sea más fácil usarlo espero que te sirva, funciona perfecto, un saludo.

local config = {
targetId = 7131, -- Item ID que vas a usar y va a desaparecer.
bossName = 'Horadron', -- boss name
keyPlayerPosition = Position(2098, 742, 13), -- posicion del player aunque no se si sea usable
bossPosition = Position(2093, 742, 13), -- Boss Position
}



local bosskeys = Action()

function bosskeys.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tmpConfig = config
if not tmpConfig then
return true
end

if itemid == tmpConfig.targetId then
return true
end

local monster = Game.createMonster(tmpConfig.bossName, tmpConfig.bossPosition)
if not monster then
return true
end

-- Send message
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Cuidado! un Boss ha sido convocado!')

item:remove()
return true
end

bosskeys:uid(55543) -- unique id que le pondras al objeto en el remeres
bosskeys:register()
 
Hola,
El error es simple,
Arriba has escrito
local keys= Action()
function Keys.onUse()
Y abajo
bosskeys:id(7636) bosskeys:register=()[ISPOILER][/ISPOILER]

Entonces modifica keys para bosskeys
Arriba y listo.

es el mismo pero mejorado para que vuelva a aparecer el item, sabes como hacer para que cuando aparezca de nuevo venga con la uniqueid?

local config = {
targetId = 7131, -- Item ID que vas a usar y va a desaparecer.
bossName = 'Horadron', -- boss name
keyPlayerPosition = Position(2098, 742, 13), -- posicion del player aunque no se si sea usable
bossPosition = Position(2093, 742, 13), -- Boss Position
}

local itemPos = Position(2099, 742, 13)

local bosskeys = Action()

function bosskeys.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tmpConfig = config
if not tmpConfig then
return true
end

if itemid == tmpConfig.targetId then
return true
end

local monster = Game.createMonster(tmpConfig.bossName, tmpConfig.bossPosition)
if not monster then
return true
end

-- Send message
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Cuidado! un Boss ha sido convocado!')

item:remove()
toPosition:sendMagicEffect(CONST_ME_POFF)
addEvent(function()
Game.createItem(7131, 1, itemPos)
end, 20000)
return true
end

bosskeys:uid(55543) -- unique id que le pondras al objeto en el remeres
bosskeys:register()
 

Tibia Server Lists

#1 FEATURED US Ultron OT 1,482 / 5,000 EXPStages PROTO8.6 ENGINEUltron OT RANK PTS6.6 -9% VOTES0 #2 FEATURED US Nefera 198 / 0 EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.9 +24% VOTES0 #3 FEATURED CL ZHYRAVEX 13 / 500 EXPx5 PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.8 +100% VOTES0 #4 FEATURED ES Deixis 0 / 0 EXPStages PROTO1098 ENGINETFS RANK PTS4.0 -60% VOTES1 #5 DE DBU Online 205 / 400 EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS6.1 +1,000% VOTES0 #6 BR Exordion Legacy 63 / 2,000 EXPx2 PROTO7.72 ENGINEExordion RANK PTS5.7 +1% VOTES0 #7 MX Marlboro War 40 / 300 EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -27% VOTES0 #8 BR Tibinha YurOts 31 / 150 EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.5 +5% VOTES0 #9 US Wiki Ots 55 / 1,000 EXPx9999 PROTOcustom client ENGINETFS 1.4.2 RANK PTS5.1 +100% VOTES0 #10 ES JustRL FreeTC 1530 17 / 250 EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS5.0 +15% VOTES0 #11 PL Lubelski 2 / 1,000 EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.9 -16% VOTES0 #12 PL ReWar 0 / 2,000 EXPcustom PROTO8.6 ENGINEOther RANK PTS4.6 +100% VOTES0 #13 US Halera 0 / 0 EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.4 -83% VOTES0 #14 PL Velesta 0 / 1,000 EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.4 -100% VOTES0 #15 BR Turion Server 0 / 2,000 EXPx1 PROTO7.4 ENGINETurion 7.7 Project RANK PTS4.4 +156% VOTES0 #16 US BerethaOnline 0 / 2,000 EXPStages PROTO15.0 ENGINETFS RANK PTS4.3 -72% VOTES0 #17 ES Farlia Global 2026 0 / 333 EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS4.0 -100% VOTES0 #18 SE MortalisOT Custom 0 / 500 EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS4.0 -100% VOTES0 #19 RU Oldavia | 8.60 0 / 0 EXPx9999 PROTO8.6 ENGINETFS 1.3 RANK PTS3.9 +100% VOTES0 #20 BR Rethoria OpenToday 7.4 Custom 7 / 0 EXPx10 PROTO10.98 ENGINEOther RANK PTS3.8 +100% VOTES0 #21 US Rommania 0 / 3,000 EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.7 -88% VOTES0 #22 MX Maeli 0 / 150 EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.5 -36% VOTES0 #23 ES DarkDragon EXPx10 PROTO8.6 ENGINECanary RANK PTS0.0 0% VOTES0
Top