Jump to content

Zombie Boss


Plate

Recommended Posts

Posted

hola este es un script que encontré en el foro sobre un zombie boss me funciono pero cada ves que me mata el boss luego deja de disparar por un rato hasta que recibe un gran inpacto ej: bazuca o minigun

function spawnSlothBot(thePlayer, cmd, skin, weapon, mode, rot, team)

local x = 1088.0643310547

local y = 1074.5938720703

local z = 10.838157653809

local skin = 2

local weapon = 38

local team = terrorist

local mode = "hunting"

local interior =0

local dimension = 0

local rot = 90

slothbot = exports["slothbot"]:spawnBot( 1086.6645507813, 1076.1888427734, 10.838157653809, 90, 300, 0, 0, Boss, 38, hunting, true )

exports.extrahealth:setElementExtraHealth(slothbot,10000000)

end

addCommandHandler( "spawnbot", spawnSlothBot )

quisiera hacerlo con un setTimer se podria?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

jeje soy noob scripteando no entiendo algunas cosas

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

lo que quier hacer es que se spawnee un zombie boss cada 5 minutos en la posición indicada en el resoruce

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

pero aplicaste un command handler.

Deberias aplicar un onresurcestart

sino se creara cada vez que des de comando /spawnbot

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
function bot() 
BOSS = spawnBot ( 1088.0643310547, 1074.5938720703, 10.838157653809, 90, 2, 0, 0, terrorist, 38, "hunting" ) 
exports.extrahealth:setElementExtraHealth(BOSS,10000) 
end 
addEventHandler("onResourceStart",getRootElement(),bot) 
setTimer(bot,300000,0) 
  

intenta eso y el team deberias crearlo en el mismo cript

señalando por ser

local terrorist = createTeam("Terrorist",255,0,0,) 

Si algo esta mal que algen corrija :)

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

muchas gracias yakuza y alex me podrian decir como hacer que de exp o zombie kill por lo menos por que yo lo ago con los slothbots

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

osa onBotWasted

y para zombie onZombieWasted

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

jaja perdon pero no entendi como usarlo me podrias dar un ejemplo porfavor

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
jaja perdon pero no entendi como usarlo me podrias dar un ejemplo porfavor

debes usar

call --para llamar las funciones y eventos de slothbot 

y

onBotWasted --Es el evento de cuando un ped muere, cuando esto pasa pones un set timer y una funciona para que aparezca otro... 

Developer @ MYVAL

  • Recently Browsing   0 members

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