Jump to content

Zona de BOT


Plate

Recommended Posts

Posted

Hola!!!!!! a todos como podria hacer para crear un area donde las personas maten zombies y spawnee un bot se puede?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
createColRectangle -- Para la zona. 
onZombieWasted -- Para cuando un zombie muere. 
exports [ "slothbot" ]:spawnBoth ( argumentos ) -- Para spawnear un bot. 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

solamente esos no tengo que usar getElementData?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

No necesitas esa funcion.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function zona() 
createColCuboid ( 189.61836242676, 1979.748535355163, 17066425, 220, 200, 60 ) 
slothbot = exports [ "slothbot" ]:spawnBot ( 189.61836242676, 1979.748535355163, 17066425, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true) 
 exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
end 
addEventHandler("onZombieWasted",getRootElement(),zona) 
  

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
local colshape = createColCuboid ( 189.61836242676, 1979.748535355163, 17066425, 220, 200, 60 ) 
  
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( 189.61836242676, 1979.748535355163, 17066425, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
    end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Solid pero se ahora como aria para que spawnee cuando el player entra a la zona y se ponga a matar zombies ejemplo

Jugador_x entra a esa zona aparecen zombies empiesa a matar zombies y de la nada aparece el bot se puede?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
Solid pero se ahora como aria para que spawnee cuando el player entra a la zona y se ponga a matar zombies ejemplo

Jugador_x entra a esa zona aparecen zombies empiesa a matar zombies y de la nada aparece el bot se puede?

if ( getElementType ( thePlayer ) == "player" ) then 

O tambien getPlayerName

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted

NOD eso que me pasastes lo agrego o remplazo el

  if ( isElementWithinColShape ( source, colshape ) ) then 

y sirve para lo que yo pedi ? o tengo que agregar mas cosas

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
NOD eso que me pasastes lo agrego o remplazo el
  if ( isElementWithinColShape ( source, colshape ) ) then 

y sirve para lo que yo pedi ? o tengo que agregar mas cosas

Tu lo que quieres es que diga el nombre del player , o que solo diga " Has entrado a la base"? por asi decirlo

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted

No estamos hablando de la base ¬¬ este topic es sobre una zona para spawnear un bot osea que el jugador entre a una zona y mate zombies hasta que spawnee un bot

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Que parte no te funciona?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

entro a la zona mato zombies pero el bot no spawnea

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

El zombi esta dentro del colshape?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Ya se arreglo era un `problema con la posicion z pero solid el bot aparece cuando mato un zombie yo quisiera que por lo menos matenn 30 y aparesca

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Crea una variable y anda incrementandola, luego fijate si esa variable es mayor o igual que 30 y ahi lo spawneas al bot.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

No necesitas ningun evento, ya te explique como se hace.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
local colshape = createColCuboid ( -1916.9927978516, 1182.4553222656, 46.214420318604, 220, 200, 60 ) 
 createRadarArea ( -1916.9927978516, 1182.4553222656, 220, 200, 0, 0, 0, 100 ) -- esto lo cree para saber donde esta el area 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( -1787.2111816406, 1216.2250976563, 32.65625, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
outputChatBox("Prueva 1") 
local myBlip = createBlipAttachedTo ( slothbot, 23 ) 
local zk = onZombieWasted 
if zk >= 30 then 
end 
    end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Sin ofender, pero eso no tiene el menor sentido.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
local colshape = createColCuboid ( -1916.9927978516, 1182.4553222656, 46.214420318604, 220, 200, 60 ) 
 createRadarArea ( -1916.9927978516, 1182.4553222656, 220, 200, 0, 0, 0, 100 ) -- esto lo cree para saber donde esta el area 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( -1787.2111816406, 1216.2250976563, 32.65625, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
outputChatBox("Prueva 1") 
local myBlip = createBlipAttachedTo ( slothbot, 23 ) 
local zk = Zombie kills -- asi? 
if zk >= 30 then 
end 
    end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Ya lo lei y todabia no la entiendo tenes algun link de algun script en la comunidad para tomar de ejemplo

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • Recently Browsing   0 members

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