StanMarsh Posted May 24, 2013 Posted May 24, 2013 Hola, Tengo un problema con el boss =/ Puse para que spawneara en el area 51 pero cuando mato los zombies necesarios no aparece el boss y tengo el slothbot activado Y El extra_health me podrian ayudar? aqui esta el script: local colshape = createColRectangle ( 249.2529296875, 1824.9951171875, 220, 200 ) -- estas son las coordenadas donde se va a crear el boss para cambiarlas solamente copien la posicion x e y de su admin panel zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 4 ) then if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 300), 0, 0, ex, 6, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, 25000 ) outputChatBox ("#FF0000Nemesis:#EEFF00S.T.A.R.S!!!",getRootElement(), 255, 255, 255, true ) myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) function restartear ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = 0 end end addEvent ("onBotWasted", true ) addEventHandler ( "onBotWasted",getRootElement(), restartear ) function autor () outputChatBox("BOSSES creados por [COD]Plate", getRootElement(), 0, 255, 255, true) end addEventHandler("onPlayerJoin", getRootElement, autor) ----MATA addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) destroyElement(myBlip23) givePlayerMoney ( theKiller,50000 ) local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000Ha Matado A Nemesis O_O !!! *", getRootElement(), r, g, b, true ) end )
Plate Posted May 25, 2013 Posted May 25, 2013 Estas seguro que las coordenadas estan exactamente bien ? yo pienso que capas las pusistes mal
StanMarsh Posted May 25, 2013 Author Posted May 25, 2013 Estas seguro que las coordenadas estan exactamente bien ? yo pienso que capas las pusistes mal :I puse como estaban las coordenadas en el admin panel y para asegurarme tambien probe con el say my pos y estaba ijual a las de el panel :I
Alexs Posted May 25, 2013 Posted May 25, 2013 slothbot1 = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random(300, 300), 0, 0, ex, 6, "hunting", true ) Tienes definido 'ex' ?
MTA Team 0xCiBeR Posted May 25, 2013 MTA Team Posted May 25, 2013 No hace falta definir ex, ya que esa variable del boss es ambigua..puede o no definirla (es el team) Te da algun error?
Recommended Posts