Jump to content

Problema Con BOSS!


Chaky

Recommended Posts

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:

Link to comment
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
Link to comment

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 ) 
  
  

Link to comment
  • Recently Browsing   0 members

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