Jump to content

Como hjago que el boss tenga mas vida?


Kilfwan

Recommended Posts

Este son los scripts

       local hillRadar = createRadarArea ( 2520.1318359375, -953.83752441406, 200, 200, 181, 0, 0, 255 ) 
            function Nemesisbymanawydan ( )   
                   baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 ) 
                   nemesi = exports [ "slothBot" ]:spawnBot ( 2622.4934082031, -847.33459472656, 75.048431396484, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
                  setElementModel ( nemesi, 107 ) 
                  outputChatBox ("#9E0000Nemesis: #9E0000 Grrr Grrr!",getRootElement(), 255, 255, 255, true ) 
                  local myBlip = (createBlipAttachedTo ( nemesi, 0 )) 
                  attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) 
                  triggerClientEvent ( "nsound", root )     
                  triggerClientEvent ( "nemesismissel", root ) 
                 setTimer( 
                  function() 
                  exports.extra_health:setElementExtraHealth(nemesi, 1000) 
                  end, 1100, 0) 
             end 
            addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan)   
           addEvent("onBotWasted", true) 
        addEventHandler("onBotWasted", getRootElement)   
  
function money (theKiller) 
if (source == nemesi) then 
givePlayerMoney(theKiller,math.random(20000)) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $20.000 como recompensa",getRootElement(), 255, 255, 255, true ) 
setTimer(Nemesisbymanawydan, 16000, 1) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 
      
function destroy () 
     if ( not isElement ( nemesi ) ) then 
     destroyElement(myBlip) 
     end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), destroy) 

Son dos archivos este es el otro:

       local hillRadar = createRadarArea ( 2520.1318359375, -953.83752441406, 200, 200, 181, 0, 0, 255 ) 
            function Nemesisbymanawydan ( )   
                   baz = createObject ( 360, 622.4934082031, -847.33459472656, 75.0484313964, 0, 0, 0 ) 
                   nemesi = exports [ "slothBot" ]:spawnBot ( 2622.4934082031, -847.33459472656, 75.048431396484, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
                  setElementModel ( nemesi, 107 ) 
                  outputChatBox ("#9E0000Nemesis: #9E0000 Grrr Grrr!",getRootElement(), 255, 255, 255, true ) 
                  local myBlip = (createBlipAttachedTo ( nemesi, 0 )) 
                  attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) 
                  triggerClientEvent ( "nsound", root )     
                  triggerClientEvent ( "nemesismissel", root ) 
                 setTimer( 
                  function() 
                  exports.extra_health:setElementExtraHealth(nemesi, 1000) 
                  end, 1100, 0) 
             end 
            addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan)   
           addEvent("onBotWasted", true) 
        addEventHandler("onBotWasted", getRootElement)   
  
function money (theKiller) 
if (source == nemesi) then 
givePlayerMoney(theKiller,math.random(20000)) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $20.000 como recompensa",getRootElement(), 255, 255, 255, true ) 
setTimer(Nemesisbymanawydan, 16000, 1) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 
      
function destroy () 
     if ( not isElement ( nemesi ) ) then 
     destroyElement(myBlip) 
     end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), destroy) 

Link to comment
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...