Jump to content

Problema Con BOSS!


Chaky

Recommended Posts

Posted

Bueno miren el problema es simple pero no entiendo por que pasa tengo un script de BOOS de la comunidad por defecto trae 5K de blood el boos pero yo quiero ponerle mas ya que realmente es facil matarlo pero al momento de editar la vida del boss aparenta estar todo bien guardo procedo a iniciar el script en el servidor voy a buscar al boss y sale qe rapidamente los mato aun asi .-. alguna idea de que pasa Gracias y saludos C:

Posted
local randomSpawnTable = 
    { 
        {  -1970.82886, 661.22388, 46.57,}, 
        {  -1931.52368, 668.14990, 46.57 } 
    } 
  
function Bot2 ( ) 
    local random = math.random ( #randomSpawnTable ) 
    local x, y, z = unpack ( randomSpawnTable [ random ] ) 
    Nemesis = exports [ "slothbot" ]:spawnBot ( x, y, z, 90, math.random ( 2,2 ), 0, 0, Boss, 38, hunting, true ) 
    exports.extra_health:setElementExtraHealth ( Nemesis, 9999999 ) 
    outputChatBox ( "Nemesis: STAARRS!!!!!!!!!" ) 
    local myBlip2 = createBlipAttachedTo ( Nemesis, 56 ) 
end 
addEventHandler ( "onResourceStart", resourceRoot, Bot2 ) 
  
  
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", root, function() 
    if (source == Nemesis) then 
         setTimer(Bot2, 3600000, 1)     
 local attached = getAttachedElements ( source ) 
    if ( attached ) then 
        for k,element in ipairs(attached) do 
            if getElementType ( element ) == "blip" then 
                destroyElement ( element ) 
            end 
        end 
    end 
    end 
end) 
  
  
  
  
  
  

postea tu codigo para poder ayudarte
Posted

prueva con esto no estoi seguro

 

function Bot2 ( ) 
    local random = math.random ( #randomSpawnTable ) 
    local x, y, z = unpack ( randomSpawnTable [ random ] ) 
    Nemesis = exports [ "slothBot" ]:spawnBot ( x, y, z, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "chasing", true ) 
if Nemesis then 
    exports.extra_health:setElementExtraHealth ( Nemesis, 9999999 ) 
end 
    outputChatBox ( "Nemesis: STAARRS!!!!!!!!!" ) 
    local myBlip2 = createBlipAttachedTo ( Nemesis, 56 ) 
end 
addEventHandler ( "onResourceStart", resourceRoot, Bot2 ) 
  
  

Posted

1) Asegurate de que el resource extra_health este activado

2) Asegurate de que se llama exactamente "extra_health" y no has cambiado el nombre.

3) Intenta poniendo cifras menores en la vida, supongo que 999999 es demaciado. Intenta algo como 10,000 o asi.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...