Jump to content

Zona de BOT


Plate

Recommended Posts

Posted

Lo que tenes que hacer es muy basico, si no entendes eso, no se para que seguis.

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 lo lei y todabia no la entiendo tenes algun link de algun script en la comunidad para tomar de ejemplo

Talvez , a lo mejor , capas , en una de esas te sirve este :

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

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

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

Perdon solid pero cosas muy basicas se pueden llegar a hacer muy dificiles y no voy a dejar por que me lo digan ¬¬ depende a las personas es muy basico o muy dificil depende a en que se sentren mas

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Comienzo ustedes lo entenderan simplemente pero yo no

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Ok, dejemos el Off Topic, si no aceptas nuestra recomendacion de volver a comenzar para retomar conocimientos olvidados, no te ayudare con cosas mas complejas

Developer @ MYVAL

Posted

Pero con que empieso pasame algunas paginas para estudiar

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Lo que te dije que hicieras es:

-- La variable global: 
zombiesMatados = 0 

-- Aumentamos la variable: 
zombiesMatados = ( zombiesMatados + 1 ) 

if ( zombiesMatados >= 30 ) then -- Si el numero de zombies matados es igual o mayor que 30.. 
     -- Creamos el bot 
end 

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 (edited)

Creo que esto me servira para todo lo que are futuramente con esto gracias a todos los que me ayudaron otra cosa como creo la tabla de asistencia que me habias dicho

PD: sigue spawneando cuando matas 1 zombie

Edited by Guest

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

No te ofendas, pero apenas entendes las variables.

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

Si ya se no entiendo nada de variables u.u pero que hay sobre la asistencia?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Yo te sugiero posponerlo para cuando aprendas mas.

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

Pero si vos ya me pasastes lo que tengo que poner o solamente es un ejemplo?

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Eso era para el tema del bot, yo no te voy a dar el de asistencias.

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

Ah muchas gracias

PD: Lo del bot funciona pero spawnean 2

PD2: Estoy de acuerdo en lo de posponerlo

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Podes verificar si el bot ya existe asi:

if ( not isElement ( slothbot ) ) then 
   -- Creas el bot. 
end 

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

Asi?

local colshape = createColCuboid ( 103.88594818115, 1302.0729980469, 10.5859375, 220, 200, 60 ) 
zombiesMatados = 0 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
zombiesMatados = ( zombiesMatados + 1 ) 
if ( zombiesMatados >= 50 ) then  
if ( not isElement ( slothbot ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
outputChatBox("Testing") 
onZomieWasted = 30 
local myBlip = createBlipAttachedTo ( slothbot, 23 ) 
         end 
      end 
   end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 
  

PD:Mato 50 zombies y si mato 51/52/53 spawnean 4

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
local colshape = createColCuboid ( 103.88594818115, 1302.0729980469, 10.5859375, 220, 200, 60 ) 
zombiesMatados = 0 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
zombiesMatados = ( zombiesMatados + 1 ) 
if ( zombiesMatados == 50 ) then  
if ( not isElement ( slothbot ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
outputChatBox("Testing") 
onZomieWasted = 30 
local myBlip = createBlipAttachedTo ( slothbot, 23 ) 
         end 
      end 
   end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

si el PD es un error eso lo resuelve

Developer @ MYVAL

Posted

Funciona de 10 gracias a todos solid cerra el tema :D

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

De nada.

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.

  • Recently Browsing   0 members

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