Chaky Posted July 31, 2014 Posted July 31, 2014 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:
Chaky Posted August 1, 2014 Author Posted August 1, 2014 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
alex17 Posted August 2, 2014 Posted August 2, 2014 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 )
BorderLine Posted August 4, 2014 Posted August 4, 2014 1) Asegurate de que el resource extra_health este activado 2) Asegurate de que se llama exactamente "extra_health" y no has cambiado el nombre. 3) Intenta poniendo cifras menores en la vida, supongo que 999999 es demaciado. Intenta algo como 10,000 o asi.
Recommended Posts