• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Zombie Event Funcionando

Darkaness

New Member
Joined
Jan 6, 2011
Messages
8
Reaction score
1
Hola Buenas Noches amigos. Posteo esto, ya que veo que no sirven lo que estan en el foro y este yo lo tenia y no recuerdo de quien era solo lo tenia aqui en mi disco.
Aqui les traigo un script, probado en TFS 0.4, 0.3.7, supongo que tambien servirá para OTX ya que esta basado en ese motor y para TFS 0.3.6 solo que aquí deben de cambiar de milésimas a segundo.

Bueno comenzamos.
Primero que nada deben de descargar el .rar con los scripts este es el:[/h4]
Link

Les dejé todo ordenado de como va todo en el .rar, ya una vez que tengan todo instalado procedemos a configurar.

Para editar el premio que les dará se van a creaturescripts, luego a la carpeta zombie y luego al archivo onattack.lua

Code:
           doPlayerAddItem(winner, 2160, 2, true)
            doPlayerAddItem(winner, 6119, 1, false)

Pueden cambiar todo eso, el id 2160 es el del crystal coin y del 6119 es de un scroll pueden poner el que ustedes deseen.

Luego ahora nos vamos a la carpeta lib y editamos el archivo zombie_event.lua

Code:
ZE_blockEnterItemPosition = {x= 1000, y=1009, z=7}
ZE_enterPosition = {x = 925, y = 1036, z = 7}
ZE_kickPosition = {x=1000, y=1000, z=7}
ZE_spawnFromPosition = {x = 913, y = 1024, z = 7}
ZE_spawnToPosition = {x = 939, y = 1049, z = 7}
-- ITEM IDS
ZE_blockEnterItemID = 9485

Aqui es donde estará el item que bloqueara el evento.
Code:
ZE_blockEnterItemPosition = {x= 1000, y=1009, z=7}

Aqui es donde los enviará el tp al entrar
Code:
ZE_enterPosition = {x = 925, y = 1036, z = 7}

Aqui es donde los enviará cuando el zombie los mate(por lo general es el templo)
Code:
ZE_kickPosition = {x=1000, y=1000, z=7}

Aqui es donde se ponen las posiciones esquina a esquina donde saldrán los zombies
Code:
ZE_spawnFromPosition = {x = 913, y = 1024, z = 7}
ZE_spawnToPosition = {x = 939, y = 1049, z = 7}
Aqui les dejo una imagen
14jlyt4.png


Para cambiar el id del item que bloquea y como pueden ver en el video tengo como unas rejas.(OJO EL APARECERÁ Y DESAPARECERÁ AUTOMÁTICAMENTE NO HAY QUE PONERLO EN EL MAPA)
Code:
ZE_blockEnterItemID = 9485

Y ahora en movements, el id que instalaron actionid="5555" en eso lo tienen que poner en un tp en el map como por ejemplo
2qd4qjc.png


Los comandos son

Code:
/zombiestart +players (ejemplo:/zombiestart 15)
/zombiestart force
Y eso es todo amigos, cualquier duda comenten, si falta algo tambien, puede que se me haya olvidado
 
u need to change this to english m8
also will it check the sqm to spawn the zombie?
Code:
function spawnNewZombie()
    local posx = {}
    local posy = {}
    local posz = {}
    local pir = {}
    for i=1, 5 do
        local posx_tmp = math.random(ZE_spawnFromPosition.x ,ZE_spawnToPosition.x)
        local posy_tmp = math.random(ZE_spawnFromPosition.y ,ZE_spawnToPosition.y)
        local posz_tmp = math.random(ZE_spawnFromPosition.z ,ZE_spawnToPosition.z)
        local pir_tmp = 0
        local spec = getSpectators({x=posx_tmp, y=posy_tmp, z=posz_tmp}, 3, 3, false)
        if(spec and #spec > 0) then
            for z, pid in pairs(spec) do
                if(isPlayer(pid)) then
                    pir_tmp = pir_tmp + 1
                end
            end
        end
        posx[i] = posx_tmp
        posy[i] = posy_tmp
        posz[i] = posz_tmp
        pir[i] = pir_tmp
    end
    local lowest_i = 1
    for i=2, 5 do
        if(pir[i] < pir[lowest_i]) then
            lowest_i = i
        end
    end
    local ret = (type(doCreateMonster('Zombie Event', {x=posx[lowest_i], y=posy[lowest_i], z=posz[lowest_i], stackpos = 253})) == 'number')
    if(ret) then
        addZombiesCount()
    end
    return ret
end
 
Courtesy of google translate :)

Hello Goodnight friends. I post this because I see no use what they are and this forum I had and I do not remember who it was just what I had here on my record .

Here I bring a script , tested in TFS 0.4, 0.3.7 , I guess that also serve to OTX since it is based on that engine and TFS 0.3.6 except that here must change thousandths of a second.

Good start .
First of all must download the .rar with scripts this is : [/ h4 ]
link

I left everything tidy as is everything in the .rar, and once you have everything installed proceed to configure .

To edit the prize that will give them are to creaturescripts after the zombie folder and then the file onattack.lua

Code:
doPlayerAddItem ( winner , 2160 , 2 , true)
doPlayerAddItem ( winner , 6119 , 1, false)
They can change all that, the id is the crystal 2160 and 6119 coin is a scroll can put you wish .

Then now we go to the lib folder and edit the file zombie_event.lua

Code:
ZE_blockEnterItemPosition = { x = 1000 , y = 1009 , z = 7 }
ZE_enterPosition = { x = 925 , y = 1036, z = 7 }
ZE_kickPosition = { x = 1000 , y = 1000 , z = 7 }
ZE_spawnFromPosition = { x = 913 , y = 1024 , z = 7 }
ZE_spawnToPosition = { x = 939, y = 1049 , z = 7 }
- ITEM IDS
ZE_blockEnterItemID = 9485
This is where will the item to block the event.
Code:
ZE_blockEnterItemPosition = { x = 1000 , y = 1009 , z = 7 }
Here is where tp entering Ships

Code:
ZE_enterPosition = { x = 925 , y = 1036, z = 7 }
Here is where sent when the zombie kills (usually is the temple )
Code:
ZE_kickPosition = { x = 1000 , y = 1000 , z = 7 }
This is where the corner to corner positions where they will get the zombies
Code:
ZE_spawnFromPosition = { x = 913 , y = 1024 , z = 7 }
ZE_spawnToPosition = { x = 939, y = 1049 , z = 7 }
Here I leave a picture


To change the id of the item that blocks and as you can see in the video have as few bars. (NOTE THIS WILL APPEAR AND DISAPPEAR AUTOMATICALLY NOT TO PUT ON THE MAP )
Code:
ZE_blockEnterItemID = 9485
And now Movements, who installed ActionID id = "5555 " in that they have to put in a tp on the map such as

The commands are
Code:
/ zombiestart + players ( example: / zombiestart 15)
/ zombiestart force
And that's all folks , discuss any questions if something is also missing, maybe I've forgotten
 
Back
Top