- 
                
Posts
92 - 
                
Joined
 - 
                
Last visited
 
Everything posted by Maruchan
- 
	
	
				Ayuda no puedo iniciar sesion en el server ni registrarme
Maruchan replied to Emil Lopez's topic in Spanish / Español
Si no sabes, no pasa nada, adiós. - 
	
	
				Ayuda no puedo iniciar sesion en el server ni registrarme
Maruchan replied to Emil Lopez's topic in Spanish / Español
Busco gente que quiera y sepa mapear, te gustaria ayudarme en mi server?. - 
	Tengo un server DAYZ, y el host siempre estará activo cada mes y no como el típico proyecto que hacen y dura 1 o 2 meses porque luego no tienen como pagar el host. ¿Si alguién desea pertenecer a mi STAFF o dar una mano con algunos scripts que tengo y que no he podido hacer funcionar?, espero sus mensajes desde ya muchas gracias. Tengo scripts hecho por scripters que me lo han hecho de regalo tiempo atrás, pero tienen algun que otro error y cosas como esas. Por si se preguntaban que tipos de recursos estoy hablando... PD: El servidor ahora mismo está abierto los que estén interesados/as esta es la IP: 51.79.34.41:22113
 - 
	¿Este server ya murio?...
 - 
	Muchas gracias... Sabes que la tent al removerla queda muy alta a la posicion del jugador, deberia cambiar el 1 por un 0?
 - 
	Lo descompile, pense que no se podia mira que intente varias veces jajaja, igual pense que lo puse en la sección de scripting tutorial, ten en cuenta que soy nuevo aqui paciencia.
 - 
	Gracias
- 2 replies
 - 
	
		
- scripters
 - desarrollo mta
 - (and 11 more)
 
 
 - 
	---IN THE SERVER I HAVE THIS ERROR HERE: getPlayerEXP = function(l_13_0) if not tonumber(getElementData(l_13_0, "exp")) then -- return not l_13_0 or type(l_13_0) ~= "userdata" or getElementType(l_13_0) ~= "player" or 0 -- do return end -- HERE end outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_13_0) .. "]", 2) return false end -- IN THE CUSTOMER I HAVE THIS ERROR HERE IN THE SAME LINES: getPlayerEXP = function(l_7_0) if not tonumber(getElementData(l_7_0, "exp")) then return not l_7_0 or type(l_7_0) ~= "userdata" or getElementType(l_7_0) ~= "player" or 0 do return end -- HERE end outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_7_0) .. "]", 2) return false end -- THE ERRORS ARE OF: `end`expected (to close `if` at line 197) near do -- any solution? ? :C
 - 
	Hello?
 - 
	Tengo errores en esta funciones dentro de mi sistema de nivel me ayudarían a solucionarlo por favor?. ---EN EL SERVER TENGO ESTE ERROR AQUI: getPlayerEXP = function(l_13_0) if not tonumber(getElementData(l_13_0, "exp")) then -- return not l_13_0 or type(l_13_0) ~= "userdata" or getElementType(l_13_0) ~= "player" or 0 -- do return end -- AQUI end outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_13_0) .. "]", 2) return false end -- EN EL CLIENTE TENGO ESTE ERROR AQUI EN LAS MIMAS LINEAS: getPlayerEXP = function(l_7_0) if not tonumber(getElementData(l_7_0, "exp")) then return not l_7_0 or type(l_7_0) ~= "userdata" or getElementType(l_7_0) ~= "player" or 0 do return end -- AQUI end outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_7_0) .. "]", 2) return false end -- LOS ERRORES SON DE: `end`expected (to close `if` at line 197) near do
 - 
	Es una función de desmontar la tent del dayz, queria saber como hacer para que al demontar la tienda el "objeto" quede en la posición del usuario y no en donde se desmonto... ¿me explico?... function removeTent(object) local x, y, z = getElementPosition(getElementData(object, "parent")) local item, itemString = getItemTablePosition("Tienda de Campaña") local itemPickup = createItemPickup(item, x, y, z + 1, itemString) destroyElement(getElementData(object, "parent")) destroyElement(object) end addEvent("removeTent", true) addEventHandler("removeTent", getRootElement(), removeTent)
 - 
	It is a function of removing dayz tent ... I want that when dismantling this it is under the user.
 - 
	How do I get the store to go to the user's position? function removeTent(object) local x, y, z = getElementPosition(getElementData(object, "parent")) local item, itemString = getItemTablePosition("Tienda de Campaña") local itemPickup = createItemPickup(item, x, y, z + 1, itemString) destroyElement(getElementData(object, "parent")) destroyElement(object) end addEvent("removeTent", true) addEventHandler("removeTent", getRootElement(), removeTent)
 - 
	http://www.mediafire.com/file/u3q1zqj6barcxt0/[SISTEMA-NIVEL].rar/file Mira ese es todo mi "sistema" que tengo, mi unica queja es que cuando pasas de nivel te aparece el recuadro en ingles si pudiera cambiarlo a castellano la verdad estaria mas que feliz... Es posible reemplazar ese client que esta compilado por otro?... nose si me explico?.. Tenes una gm dayz?, solo activa esos recursos ya anda para cualquier dayz.... ya que funciona con slothbot al parecer con el event que tiene... Bueno, si no podes no importa ?
 - 
	Quisiera hacer uno igual al de castillo pero en castellano ya que me gusta mucho el de él lastima que este compilado y no se pueda editar ni nada.... Es el tipico server DayZ con el slothbot .... por que?.
 - 
	Pues si, osea todos esos sistema de niveles son todo para tipo freeroam o cuando te dicen solo cambia los eventos no sirven nada...Solo el de castillo nomas... Y muchos son sistema de niveles basados en kill de otro jugador no en PEDS zombies tipo slothbot y ni siquiera son sistema de experiencia tampoco :c ... La verdad no se por donde empezar. :C
 - 
	Algo entiendo de system_exp ... Veras yo ahora estoy usando el de castillo ese viejo sistema =/ ... Ya que es el unico que encontre que esta adaptado para todos los servers zombies... Como me ayudarias?.... Yo buscaba hacer un sistema de nivel igual al de castillo que te aparezca una musica cuando pasas de nivel y que puedas editar la experiencia y el nivel maximo... Lo intente tomando ejemplos pero nada :c ... Ya que en el meta hay que exportar functiones y cero ideas, si harias un tutorial te lo super agradeceria... =/ Yo ahora uso el sistema de exp_system de castillo y otro que no tiene autor pero esta en la comunidad y se llama: exp_zombies que tiene esta función: addEvent ( "onZombieGetsKilled", true ) addEventHandler ( "onZombieGetsKilled", root, function ( theKiller ) exports [ "exp_system" ]:addPlayerEXP ( theKiller, math.random(100, 100)) end ) addCommandHandler ( "lev", function ( thePlayer, commandName, theLevel ) local account = getPlayerAccount ( thePlayer ) local theLevel = tonumber ( theLevel ) or 14 exports.exp_system:setAccountLevel ( account, theLevel ) end ) Es un server side. Parece que esos dos se convina con eventos o algo asi pero ni idea de como hacerlo.
 - 
	Entonces por qué nadie explica como adaptar un system_exp a un servidor day z?... Yo no se hacerlo ya que soy nuevo por aqui. Tu que eres el dueño podrías resubirlo adaptado para una gamemode DayZ por favor?.
 - 
	Precisamente yo soy nuevo en esto, y la verdad no tengo ni la mas minima... Por eso a lo mucho que podre es en editar ya uno existente... Pero como es eso de adaptar uno facilmente?... Si me das una mano te super agradeceria o sino gracias igual ? Por lo menos podrias acomodarme el sistema de nivel y experiencia del tutorial de anzo? yo ni eso pude hacer ya que el chavo no explica cuando es un cliente o un server y como iria en el meta xml. :v Aeste me refiero por si...
 - 
	¿Hay algún sistema de exp_system similar al de castillo pero que no sea en ingles y que se pueda editar?... Es que vi el tutorial de ANZO pero esta tan desparramado todo que no entiendi ni mergas :v . Busco un sistema que sirva para lo que es slothbot de la gm DAY Z... La mayoria de los sistemenas de niveles son de freeroam o no para zombies.... ¿Algunaa ayuda u sugerencia por favor?.... ¿Si alguien tiene el sistema de ANZO optimizado para un servidor DAYZ me lo comparte por favor?. ?
 - 
	Osea, no comprendí muy bien su tutorial: Pero trate de adjuntarlo y me quedo esto, ¿ya que ANZO no explica cuando es server o cliente y como iri en el meta?.... ¿Si alguien me puede ayudar con este sistema de zombies?... De paso queda optimizado para la comunidad ? LO QUE YO HICE FUE ESTO CREE UN LUA.CLIENT Y PEGUE LO QUE ÉL DIJO: YO EN MI CASO LE AGREGUE HASTA EL NIVEL "51" local niveles = { {1000},-- 1 NIVEL INICIAL {100000}, --51 NIVEL FINAL (lo acorto para que no se alargue demasiado la linea). } setElementData(localPlayer, "nivel",0)--Nivel 0, si quieres empezar desde el nivel 1 cambia el 0 a 1 setElementData(localPlayer, "zKills",0)--zombie kills 0, si quieres empezar desde 1 cambia el 0 a 1 local screenW, screenH = guiGetScreenSize() --Creación de los DX function render() dxDrawText("Nivel: "..getElementData(localPlayer, "nivel"), screenW * 0.7000, screenH * 0.1150, screenW * 0.7288, screenH * 0.1400, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, true, false) dxDrawText("ZKills: "..getElementData(localPlayer, "zKills"), screenW * 0.8388, screenH * 0.7683, screenW * 0.8812, screenH * 0.7933, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, true, false) end function onStart() addEventHandler("onClientRender",root, render) end addEventHandler("onClientResourceStart",resourceRoot, onStart) function levelup(attacker) local datZomb = getElementData(localPlayer, "zKills") if getElementData(localPlayer, "zombies") == true and attacker == localPlayer then setElementData(localPlayer, "zKills", datZomb+1) dxDrawText("ZKills: "..getElementData(localPlayer, "zKills"), screenW * 0.8388, screenH * 0.7683, screenW * 0.8812, screenH * 0.7933, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, true, false) end end addEventHandler("onClientPedWasted",root, levelup) function levelup(attacker) local datZomb = getElementData(localPlayer, "zKills") if getElementData(localPlayer, "zombies") == true and attacker == localPlayer then setElementData(localPlayer, "zKills", datZomb+1) dxDrawText("ZKills: "..getElementData(localPlayer, "zKills"), screenW * 0.8388, screenH * 0.7683, screenW * 0.8812, screenH * 0.7933, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, true, false) end --SI los zombie kills son iguales a 20 ... if datZomb == niveles[1] then setElementData(localPlayer, "nivel",1) --SI los zombie kills son iguales a 40 ... elseif datZomb == niveles[2] then setElementData(localPlayer, "nivel",2) --SI los zombie kills son iguales a 60 ... elseif datZomb == niveles[3] then setElementData(localPlayer, "nivel",3) --SI los zombie kills son iguales a 90 ... elseif datZomb == niveles[4] then setElementData(localPlayer, "nivel",4) --SI los zombie kills son iguales a 110 ... elseif datZomb == niveles[5] then setElementData(localPlayer, "nivel",5) --SI los zombie kills son iguales a 130 ... elseif datZomb == niveles[6] then setElementData(localPlayer, "nivel",6) --SI los zombie kills son iguales a 150... elseif datZomb == niveles[7] then setElementData(localPlayer, "nivel",7) end end addEventHandler("onClientPedWasted", root, levelup) function saveLvlAndKills() dxDrawText("Nivel: "..getElementData(localPlayer, "nivel"), screenW * 0.7000, screenH * 0.1150, screenW * 0.7288, screenH * 0.1400, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, true, false) dxDrawText("ZKills: "..getElementData(localPlayer, "zKills"), screenW * 0.8388, screenH * 0.7683, screenW * 0.8812, screenH * 0.7933, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, true, false) end addEvent("saveKills", true) addEventHandler("saveKills", root, saveLvlAndKills) --LUEGO DE PONER ESTO CREAMOS UN ARCHIVO QUE SE LLAME server.lua Y LO PONEMOS COMO SERVER-SIDE EN EL META. --Cuando ya tengamoos el otro archivo hecho, le agregamos esto: --SERVER-- function saves() local account = getPlayerAccount(source)--Obtenemos la cuenta del jugador if account then setAccountData(account, "addZkills", getElementData(source, "zKills"))-- 'seteamos' a la cuenta del jugador el valor de 'zKills' que tenía antes de salirse del servidor (guardarlos)--Si el jugador se sale y tiene 100 zombies matados, se guardaran esas kills. setAccountData(account, "addNivel", getElementData(source, "nivel"))-- 'seteamos' a la cuenta del jugador el valor de 'nivel' que tenía antes de salirse del servidor (guardarlos)--Si el jugador se sale y tiene nivel 1, se guardara ese nivel. end end addEventHandler("onPlayerLogout", root, saves)--Para que se guarde el valor de 'zKills' y 'nivel' al des-loguearse, addEventHandler("onPlayerQuit",root, saves)--Para que se guarde el valor de 'zKills' y 'nivel' al salir del servidor, function loadLvl() local account = getPlayerAccount(source) if account then local sZkills = getAccountData(account, "addZkills") local sNivel = getAccountData(account, "addNivel") if (sZkills and sNivel) then setElementData(source, "zKills",sZkills) setElementData(source, "nivel", sNivel) triggerClientEvent(source, "saveKills",root) end end end addEventHandler("onPlayerLogin", root, loadLvl) Y LUEGO HICE UN SERVER.LUA CON TODO ESTO: function setNivel(player, cmd,otherPlayer,value) local accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then local ppl = getPlayerFromName(otherPlayer) local getLevel = getElementData(ppl,"nivel") local setPlayerLevel = setElementData(ppl,"nivel",value) end end addCommandHandler("lvl", setNivel) function setZombiesKills(player,cmd,target,amount) local accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then local ppz = getPlayerFromName(target) local getKills = getElementData(ppz,"zKills") local setKills = setElementData(ppz,"zKills",getKills+amount) end end addCommandHandler("zomb",setZombiesKills) ------------------------------------------------------------------ Y EN EL META.XML hice esto: <meta> <info author="Anzo" name="Sistema de niveles" type="script" version="1.0"/> <script src="client.lua" type="client" cache="false"/> <script src="server.lua" type="server"/> </meta> ---------------------------------------------------------------------- ¿QUÉ ES LO QUE ESTA MAL?, LA VERDAD NOSE, PERO SI ALGUN SCRIPTER QUIERE OPTIMIZAR ESTO SE LO AGRADECERIA MUCHO. Me voy a tener que quedar con el sistema de castillo, lastima que esta en ingles cuando te dice que pasaste de nivel :c ...
 - 
	Funciona para un servidor DayZ?... Lo acabo de activar pero no me genera EXP y tampoco NIVEL :c
 - 
	local vehicles = { [1] = { -- {id, x, y, z, MAX_Slots, colSphereSize}, -- Barracks {433, 2611.8000488281, 237.5, 59.5, 65, 2}, {433, 277.7998046875, 2024.19921875, 18.200000762939, 65, 2}, -- Bobcats {422, -2051.8000488281, 144.19999694824, 28.89999961853, 20, 2}, {422, -237.19999694824,2812.5,61.799999237061, 20, 2}, -- Sanchez {468, -2039.5, 1108.69921875, 53, 8, 2}, {468, -1813.8994140625, -1598.7998046875, 22.799999237061, 8, 2}, -- Mesa {500, 1552.4000244141, -2088, 25.700000762939, 25, 2}, {500, 2786.69921875, 2244.2998046875, 11.199999809265, 25, 2}, -- Dodo {593, -1238.5999755859, -652.09997558594, 14.699999809265, 25, 2}, {593, 290.60000610352, 2538.6999511719, 17.39999961853, 25, 2}, -- QuadBike {471, 1931.6999511719, -587.79998779297, 27.200000762939, 10, 2}, {471, -386.2998046875, 1976.69921875, 92, 10, 2},, -- Freeway {541, -701, 945, 12, 8, 2}, {541, 2903.69921875, 1586, 10.39999961853, 8, 2}, }, -- [2] = { -- {id, x, y, z, MAX_Slots, colSphereSize}, -- Camper {483, 1527.5, -661.5, 94.5, 12, 2}, {483, 1318.19921875, -641.69921875, 108.90000152588, 12, 2}, }, -- [3] = { -- {id, x, y, z, MAX_Slots, colSphereSize}, -- Buffalo {402, -106.8994140625, -1573.2998046875, 2.5, 12, 2}, {402, -2137.8000488281, 1219.4000244141, 47.099998474121, 12, 2}, -- Bandito {456, -2304.69921875, -1643.099609375, 483.70001220703, 15, 5}, {456, -482.20001220703, -2026.4000244141, 50.400001525879, 15, 5}, }, -- [4] = { -- {id, x, y, z, MAX_Slots, colSphereSize}, -- COACH {437, -271.29998779297, -2162.1000976563, 30, 190, 5}, }, } addCommandHandler("spawncars", function(p, cmd, n) if ( isObjectInACLGroup("user."..getAccountName(getPlayerAccount(p)), aclGetGroup("Admin")) ) then if ( n ) and ( vehicles[n] ) then for i, k in ipairs(vehicles[n]) do local v = createVehicle(k[1], k[2], k[3], k[4]) local c = createColSphere(k[2], k[3], k[4], k[6]) -- attachElements(c, v, 0, 0, 0) setElementData(c, "parent", v) setElementData(v, "parent", c) setElementData(c, "vehicle", true) setElementData(c, "MAX_Slots", k[5]) setElementData(c, "fuel", 5) -- local tires, engine, parts = getVehicleAddonInfos(k[1]) if ( not tonumber(tires) ) then tires = math.random(0, 4) end if ( not tonumber(engine) ) then engine = math.random(0, 1) end if ( not tonumber(parts) ) then parts = math.random(0, 4) end setElementData(c, "Rueda_inVehicle", math.random(0, tires)) setElementData(c, "Motor_inVehicle", math.random(0, engine)) setElementData(c, "Parts_inVehicle", math.random(0, parts)) setElementData(c, "spawn", {k[1], k[2], k[3], k[4]}) -- outputChatBox("¡Has respawneado todos los vehiculos!.", p, 0, 255, 120, true) end else outputChatBox("Error Syntax: /spawncars [1-4]", p, 255, 50, 0, true) outputChatBox("Ejemplo: /spawncars #ffffff1", p, 255, 50, 0, true) end end end ) Pues nada, ¿quería saber porque esta pequeña script no me funciona? Como ven es una simple script que sirve para spawnear vehículos dentro del servidor a través de un comando, pero cuando presiono "T" y tipeo /spanwcars 1, etc, me tira el siguiente mensaje: Error Syntax: /spawncars [1-4] Ejemplo: /spawncars 1 Pero no me dice que los autos hayan spawneado, la verdad no entiendo el problema y en el debugscript 3 no me tira ninguna clase de error con respecto a este LUA.
- 2 replies
 - 
	
		
- scripters
 - desarrollo mta
 - (and 11 more)
 
 
 
