Jump to content

Como hacer Nemesis y Que Aparesca Con Un Comando


XxRomxX

Recommended Posts

  • Replies 59
  • Created
  • Last Reply

Top Posters In This Topic

Puse el numero del id y lo puse en la ultima parte.

Asi te tiene que quedár esa parte.

function BossNemesis ( thePlayer )   
x,y,z = getElementPosition( thePlayer ) 
nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
setElementModel(nemesi, 285) 
end 
addCommandHandler("nemesis",BossNemesis) 
Link to comment
Me Sale SCRIPT ERROR: Nemesis\bosss.lua:9: '>' expected >to close '<' at line 6> near "function"

Probalo así ( no está probado )

function BossNemesis ( thePlayer )   
x,y,z = getElementPosition( thePlayer ) 
nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
setElementModel(nemesi, 285) 
end 
addCommandHandler("nemesis",BossNemesis) 
        
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", +25) 
givePlayerMoney( theKiller, 10000) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 
Link to comment
  • 1 month later...
function BossNemesis ( thePlayer )   
                  x,y,z = getElementPosition( thePlayer ) 
                   nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90,  math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
   setElementModel(nemesi, 107) 
                   end 
      addCommandHandler("nemesis",BossNemesis) 
        
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", 25) 
givePlayerMoney( theKiller, 10000) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 

Edited by Guest
Link to comment
function BossNemesis ( thePlayer ) 
x,y,z = getElementPosition( thePlayer ) 
nemesi = exports [ "slothBot" ]:spawnBot ( x+1,y+1,z+0.5, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) 
exports.extra_health:setElementExtraHealth(nemesi, la cantidad de vida que quieras) 
setElementModel(nemesi, 107) 
end 
addCommandHandler("nemesis",BossNemesis) 
  
  
function money (theKiller) 
if (source == nemesi) then 
local kills = getElementData ( theKiller, "Zombie kills" ) 
setElementData ( theKiller, "Zombie kills", kills + 25) 
givePlayerMoney( theKiller, 10000) 
outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa Matado Ha Nemesis :3 , Se Cree Muy Prah!",getRootElement(), 255, 255, 255, true ) 
end 
end 
addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", getRootElement(), money) 

PD:Necesitas tener el extra_health activado

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...