Jump to content

[Ayuda] Mas de 1 Slothbot "BOSS"


Narutimmy

Recommended Posts

Hola lo que pasa es que yo tengo 1 BOSS que al morir da una recompensa, pero quiero meter otro BOSS pero que de otra recompensa yo uso ese:

---Dinero 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
function( theKiller) 
    exports.exp_system:addPlayerEXP ( theKiller, 20000 ) 
    destroyElement(myBlip2) 
    givePlayerMoney ( theKiller, 500000 ) 
    local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour 
    local chatterName = getPlayerName ( theKiller ) 
    outputChatBox (  chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) 
end 
) 

Pero solo Funciona con el primer jefe que es este:

---Nemesis 
local colshape = createColRectangle ( 88.4608, 1779.9825, 400, 400 ) 
zombiesMatados = 0 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
zombiesMatados = ( zombiesMatados + 1 ) 
if ( zombiesMatados == 50 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca 
if ( not isElement ( slothbot1 ) ) then 
        slothbot1 = exports [ "slothbot" ]:spawnBot ( 249.1348, 1820.0046, 9, 90, 33, 0, 0, ex, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot1, 8000 ) 
outputChatBox ( "#ff0000Nemesis: #eeff00S.T.A.R.S!!!", getRootElement(), 255, 255, 255, true ) 
triggerClientEvent ( "playTheSound", root ) 
onZomieWasted = 75 
myBlip = createBlipAttachedTo ( slothbot1, 23 ) 
  
         end 
      end 
   end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 
  
  
---RepawnBots 
function restartear ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        zombiesMatados = 0 
   end 
end 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted",getRootElement(), restartear ) 
  
  
---Dinero 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
function( theKiller) 
    exports.exp_system:addPlayerEXP ( theKiller, 5000 ) 
    destroyElement(myBlip) 
    givePlayerMoney ( theKiller, 100000 ) 
    local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour 
    local chatterName = getPlayerName ( theKiller ) 
    outputChatBox (  chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) 
end 
) 
  

Link to comment
  • Recently Browsing   0 members

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