Tudo que helix758 postou
-
Ctf Ganhar itens no lugar de exp
na hora de entregar a bandeira fica bugado
-
Ctf Ganhar itens no lugar de exp
up
- [8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
-
Galera ajuda zombie evento
tranquilo, a minha tá 100% , mas quando todos morrem o ganhador só ganha o item quando o zombie mata ele kkk, deveria ser teleportado assim que todos morrerem. mas vamos aguardar essa zombie script sua aí kk
-
Galera ajuda zombie evento
Funcionou ! vlw, agora mas tipo, quando todo mundo morre o cara só ganha o evento quando ele morre pra o zombie, sabe fazer pra o cara ganhar o evento assim que todos morrerem ?
- [8.60] Baiak Absolute - Editado completo [O MELHOR]
-
[RESOLVIDO] IP Global Não Entra!!
tranquilo :D
-
[RESOLVIDO] IP Global Não Entra!!
bom cara, a questão do xamp eu nunca conseguir colocar-lo online aqui, mas o motivo do seu servidor ficar dando offline é simples vai no cmd e digita ipconfig e veja o Endereço ipv4 -> ele sempre muda ao reiniciar o ip, caso não seja isso, acredito que seja pq o seu computador mudou o ip , é simples ajeitar isso também vai no seu servidor e trocar o ip e deixa com o ip atual da sua internet
-
Galera ajuda zombie evento
Funcionou 100%, mas porem vc poderia mudar uma outra coisa pra mim ? local config = { playerCount = 2001, -- Global storage for counting the players left/entered in the event goblet = 5805, -- id of the gold goblet you'll get when finishing the event. rewards = {2493, 6132, 2160}, -- You will get this + a gold goblet with your name on. -- {moneyId, count, using? 1 for using moneyReward, 0 for not using.} moneyReward = {2160, 20, 1}, -- second collumn(count) 0 if you don't want money to be used. or a stackable item you want more than 1 of. -- Should be same as in the globalevent! -- The zombies will spawn randomly inside this area fromPosition = {x = 1075, y = 186, z = 7}, -- top left cornor of the playground toPosition = {x = 1112, y = 211, z = 7}, -- bottom right cornor of the playground } function onStatsChange(cid, attacker, type, combat, value) if isPlayer(cid) and isMonster(attacker) then if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then if getGlobalStorageValue(config.playerCount) >= 2 then doBroadcastMessage(getPlayerName(cid) .. " have been eated by Zombies!", MESSAGE_STATUS_CONSOLE_RED) local corpse = doCreateItem(3058, 1, getPlayerPosition(cid)) doItemSetAttribute(corpse, "description", "You recognize " .. getCreatureName(cid) .. ". Ele foi morto por "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item")..".") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) setGlobalStorageValue(config.playerCount, getGlobalStorageValue(config.playerCount)-1) elseif getGlobalStorageValue(config.playerCount) == 1 then if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then doBroadcastMessage(getPlayerName(cid) .. " venceu o evento Zombie! Parabéns!", MESSAGE_STATUS_WARNING) local goblet = doPlayerAddItem(cid, config.goblet, 1) doItemSetAttribute(goblet, "description", "O player " .. getPlayerName(cid) .. " ganhou o evento zombie event.") local corpse = doCreateItem(3058, 1, getPlayerPosition(cid)) doItemSetAttribute(corpse, "description", "você reconhece " .. getCreatureName(cid) .. ". Ele foi morto por "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item")..".") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) for _,items in ipairs(config.rewards) do doPlayerAddItem(cid, items, 1) end if config.moneyReward[3] == 1 then doPlayerAddItem(cid, config.moneyReward[1], config.moneyReward[2]) end end for x = config.fromPosition.x, config.toPosition.x do for y = config.fromPosition.y, config.toPosition.y do for z = config.fromPosition.z, config.toPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getMonsters = getThingfromPos(areapos) if isMonster(getMonsters.uid) then doRemoveCreature(getMonsters.uid) end end end end end return false end end return true end nesse script mudar o \/ na foto abaixo quero que só quem está dentro do evento veja quem morreu , agora o ganhador o servidor todo pode ver. Vou agradece muito cara.
-
Galera ajuda zombie evento
Opá boa tarde, mas não funcionou , simplesmente as msg sumiram e não aparece mais nada Opá boa tarde, mas não funcionou , simplesmente as msg sumiram e não aparece mais nada up up UP
-
Galera ajuda zombie evento
Galera é o seguinte, eu estou com essa script de zombie event 100% , mas porem quando começa a nascer os zombie todo mundo do servidor ficam vendo as msg dos zombies nascendo, eu gostaria de por só quem está dentro do evento ver as mensagem do zombies. Quem poder ajudar, vou agradece muito. aqui a foto \/ -> todo mundo ver essa msg, quero que só os perssonagem do evento vejam local config = { playerCount = 2001, -- Global storage for counting the players left/entered in the event zombieCount = 2002, -- Global storage for counting the zombies in the event teleportActionId = 2008, -- Action id of the teleport needed for the movement script teleportPosition = {x = 1004, y = 1003, z = 7, stackpos = 1}, -- Where the teleport will be created teleportToPosition = {x = 1096, y = 207, z = 7}, -- Where the teleport will take you teleportId = 1387, -- Id of the teleport timeToStartEvent = 1, -- Minutes, after these minutes the teleport will be removed and the event will be declared started timeBetweenSpawns = 1, -- Seconds between each spawn of zombie zombieName = "event zombie", -- Name of the zombie that should be summoned playersNeededToStartEvent = 2, -- Players needed before the zombies can spawn. -- Should be the same as in the creaturescript! -- The zombies will spawn randomly inside this area fromPosition = {x = 1081, y = 188, z = 7}, -- top left cornor of the playground toPosition = {x = 1111, y = 207, z = 7}, -- bottom right cornor of the playground } function onTime() local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition) doItemSetAttribute(tp, "aid", config.teleportActionId) doBroadcastMessage("Zombie event sera iniciado em " .. config.timeToStartEvent .. " minutos! O teleport foi removido para o evento comecar!", MESSAGE_STATUS_WARNING) setGlobalStorageValue(config.playerCount, 0) setGlobalStorageValue(config.zombieCount, 0) addEvent(startEvent, config.timeToStartEvent * 1000 * 60) print(getGlobalStorageValue(2001)) end function startEvent() local get = getThingfromPos(config.teleportPosition) if get.itemid == config.teleportId then doRemoveItem(get.uid, 1) end local fromp, top = config.fromPosition, config.toPosition if getGlobalStorageValue(config.playerCount) >= config.playersNeededToStartEvent then addEvent(spawnZombie, config.timeBetweenSpawns * 1000) doBroadcastMessage("Boa sorte no evento todos os players que entraram no evento de zumbis! O teleport fechou!", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doPlayerSendTextMessage(getPlayers.uid, MESSAGE_EVENT_ADVANCE, "Primeiro zumbi irá nascer em " .. config.timeBetweenSpawns .. " segundos! Boa sorte!") end end end end else doBroadcastMessage("O evento Zombie não pode iniciar devido a pouca quantidade de jogadores participantes.\n Pelo menos " .. config.playersNeededToStartEvent .. " players é necessário!", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), false) doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT) end end end end end end function spawnZombie() if getGlobalStorageValue(config.playerCount) >= 2 then pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)} doSummonCreature(config.zombieName, pos) doSendMagicEffect(pos, CONST_ME_MORTAREA) setGlobalStorageValue(config.zombieCount, getGlobalStorageValue(config.zombieCount)+1) doBroadcastMessage("A zombie has spawned! There is currently " .. getGlobalStorageValue(config.zombieCount) .. " zombies in the zombie event!", MESSAGE_STATUS_CONSOLE_RED) addEvent(spawnZombie, config.timeBetweenSpawns * 1000) end end
-
Ctf Ganhar itens no lugar de exp
galera eu adicionei o evento de Rouba bandeira (Ctf) no meu servidor, mas só ganha 5% de Experiencia, eu gostaria que o perssonagem ganhasse item no lugar da Experiencia quem aí pode ajudar, Please --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: [email protected] ]] CTF_LIB = { waitpos = {x = 1095, y = 54, z =7}, -- Posição da sala de espera tppos = {x = 1004, y = 1003, z =7}, -- Onde o TP vai aparecer days = {1, 2, 3, 4, 5, 6, 7}, -- Dias que o evento vai abrir xp_percent = 0.5, -- Porcentagem de exp que o player vai ganhar timeclose = 1, -- Tempo, em minutos, para iniciar o CTF winp = 5, -- Quantos pontos uma equipe precisa marcar para vencer teams = { ["Vermelho"] = { temple = 2, -- TownID da equipe vermelha outfit = {lookHead = 0, lookBody = 132, lookLegs = 113, lookFeet = 94}, flag = { id = 1435, flag_pos = {x = 1297, y = 195, z =6}, -- Posição onde a bandeira vermelha vai ser criada gnd_pos = {x = 1301, y = 196, z =6}, -- Onde os players da equipe vermelha entregarão a bandeira. }, }, ["Verde"] = { temple = 3, -- TownID da equipe verde outfit = {lookHead = 0, lookBody = 121, lookLegs = 101, lookFeet = 101}, flag = { id = 1437, flag_pos = {x = 1221, y = 227, z =6}, -- Posição onde a bandeira verde vai ser criada gnd_pos = {x = 1217, y = 228, z =6}, -- Onde os players da equipe verde entregarão a bandeira. }, }, }, } local CTF = CTF_LIB function CTF.getMembers() local members = {} for _, cid in pairs(getPlayersOnline()) do if getPlayerStorageValue(cid, 16700) ~= -1 then table.insert(members, cid) end end return members end function CTF.getTeamMembers(team) local members = {} for _, cid in pairs(CTF.getMembers()) do if getPlayerStorageValue(cid, 16700) == team then table.insert(members, cid) end end return members end function CTF.removePlayer(uid) doPlayerSetTown(uid, getPlayerStorageValue(uid, 16701)) doTeleportThing(uid, getTownTemplePosition(getPlayerStorageValue(uid, 16701))) doRemoveCondition(uid, CONDITION_OUTFIT) doCreatureAddHealth(uid, getCreatureMaxHealth(uid)) doCreatureAddMana(uid, getCreatureMaxMana(uid)) setPlayerStorageValue(uid, 16701, -1) setPlayerStorageValue(uid, 16700, -1) return true end function CTF.addPlayer(uid) local team = CTF.getTeamLivre() local n_team = CTF.teams[team] setPlayerStorageValue(uid, 16700, team) setPlayerStorageValue(uid, 16701, getPlayerTown(uid)) doPlayerSetTown(uid, n_team.temple) doTeleportThing(uid, CTF.waitpos) doPlayerSendTextMessage(uid, 22, "Você agora faz parte do time ".. team .. ".") local outfit = getCreatureOutfit(uid) for i, v in pairs(n_team.outfit) do outfit = v end registerCreatureEvent(uid, "CTFLogout") registerCreatureEvent(uid, "CTFAttack") registerCreatureEvent(uid, "CTFCombat") registerCreatureEvent(uid, "CTFDeath") doSetCreatureOutfit(uid, outfit, -1) return true end function CTF.getTeamLivre() local teams = {} for i, _ in pairs(CTF.teams) do table.insert(teams, {i, #CTF.getTeamMembers(i)}) end if (teams[1][2] < teams[2][2]) then return teams[1][1] elseif (teams[1][2] > teams[2][2]) then return teams[2][1] end return teams[math.random(2)][1] end function CTF.broadCast(msg, class) for _, uid in pairs(CTF.getMembers()) do doPlayerSendTextMessage(uid, class or 20, msg) end return true end function CTF.getFlagTeam(flag) for i, v in pairs(CTF.teams) do if v.flag.id == flag then return i end end return "" end local score_sto = {} local a = 0 for i, _ in pairs(CTF.teams) do score_sto = 42314 + a a = a + 1 end function CTF.createFlags() for i, v in pairs(CTF.teams) do local flag = doCreateItem(v.flag.id, 1, v.flag.flag_pos) doItemSetAttribute(flag, "aid", 63218) v.flag.gnd_pos.stackpos = 0 local gnd = getThingFromPos(v.flag.gnd_pos).uid doItemSetAttribute(gnd, "aid", 63200) doItemSetAttribute(gnd, "team", i) setGlobalStorageValue(score_sto, 0) end return true end function CTF.removeFlags() for i, v in pairs(CTF.teams) do local flag = doFindItemInPos({v.flag.id}, v.flag.flag_pos)[1] if flag then doRemoveItem(flag.uid, 1) end v.flag.gnd_pos.stackpos = 0 local gnd = getThingFromPos(v.flag.gnd_pos).uid doItemSetAttribute(gnd, "aid", 0) end return true end function CTF.start() doRemoveItem(doFindItemInPos({1387}, CTF.tppos)[1].uid, 1) setGlobalStorageValue(16705, -1) if #CTF.getMembers() < 4 then doBroadcastMessage("O CTF não pôde ser iniciado por falta de players.") for _, cid in pairs(CTF.getMembers()) do CTF.removePlayer(cid) end return false end CTF.broadCast("O CTF foi iniciado. Bom jogo!") for _, uid in pairs(CTF.getMembers()) do doTeleportThing(uid, getTownTemplePosition(getPlayerTown(uid))) end CTF.createFlags() return true end function CTF.returnFlag(uid, status) local team = getPlayerStorageValue(uid, 16702) if status then local msg = "O player ".. getCreatureName(uid) .. ", estava com a bandeira do time ".. team .. " " if status == 1 then msg = msg .. "e foi eliminado. " elseif status == 2 then msg = "e foi removido do evento. " end msg = msg .. "Portanto a bandeira do time ".. team .. " foi devolvida." CTF.broadCast(msg) end if CTF.teams[team] then local flag = doCreateItem(CTF.teams[team].flag.id, 1, CTF.teams[team].flag.flag_pos) doItemSetAttribute(flag, "aid", 63218) setPlayerStorageValue(uid, 16702, -1) end return true end function CTF.addPoint(uid) local finish local msg = "Capture The Flag:" setGlobalStorageValue(score_sto[getPlayerStorageValue(uid, 16700)], getGlobalStorageValue(score_sto[getPlayerStorageValue(uid, 16700)]) + 1) for i, _ in pairs(CTF.teams) do msg = msg .. "\nTime ".. i .. ": ".. getGlobalStorageValue(score_sto) if getGlobalStorageValue(score_sto) >= CTF.winp then finish = i end end CTF.broadCast(getCreatureName(uid) .. " marcou um ponto para o time ".. getPlayerStorageValue(uid, 16700) .. ".", 22) CTF.broadCast(msg) CTF.returnFlag(uid) if finish then CTF.close(finish) return "close" end return true end function CTF.close(win) if not win then doBroadcastMessage("O CTF acabou sem vencedores.") else CTF.broadCast("O time ".. win .. " marcou ".. CTF.winp .. " ponto(s) e venceu o evento.") end for _, cid in pairs(CTF.getMembers()) do if getPlayerStorageValue(cid, 16700) == win then local xp = math.ceil(getPlayerExperience(cid) * (CTF.xp_percent / 100), 215) doPlayerSendTextMessage(cid, 22, "Parabéns! Você ganhou o evento e obteve ".. CTF.xp_percent .."% de sua experiência total(".. xp ..").") doSendAnimatedText(getThingPos(cid), xp, 215) doPlayerAddExperience(cid, xp) end --[[ if getPlayerStorageValue(cid, 16702) ~= -1 then CTF.returnFlag(cid) end]] CTF.removePlayer(cid) end CTF.removeFlags() for i, _ in pairs(CTF.teams) do setGlobalStorageValue(score_sto, 0) end return true end local function Alert(uid) if (isCreature(uid)) then if getPlayerStorageValue(uid, 16702) == -1 or getPlayerStorageValue(uid, 16700) == -1 then return false end doSendAnimatedText(getThingPos(uid), "Flag!", math.random(50, 200)) local bla = {18, 19, 21, 22, 23, 24} doSendMagicEffect(getThingPos(uid), bla[math.random(#bla)]) if (os.time() - getPlayerStorageValue(uid, 16703) >= 60) then CTF.returnFlag(uid) return setPlayerStorageValue(uid, 16703, -1) end addEvent(Alert, 500, uid) return true end return false end function CTF.stealFlag(uid, team) setPlayerStorageValue(uid, 16702, team) setPlayerStorageValue(uid, 16703, os.time()) CTF.broadCast(getCreatureName(uid) .. " roubou a bandeira do time ".. team .. "!") Alert(uid) return true end function doFindItemInPos(ids, pos) -- By Undead Slayer local results = {} for _ = 0, 255 do local findPos = {x = pos.x, y = pos.y, z = pos.z, stackpos = _} if isInArray(ids, getThingFromPos(findPos).itemid) then table.insert(results, getThingFromPos(findPos)) end end return results end
-
Vip System TFS 1.2 - Sistema com Comandos, pisos, items, portas
que loucura cara, nem sabia que dava pra por aí , algumas pessoas me falaram que o global era globalevents
-
[CTF] Capture The Flag 2.0(Automático)
aí galera como eu faço pra no lugar de ganhar EXP, ele ganhe item ? e também como faço pra ver o maximo de players e minimo de players ? um item aleatório
-
Zombie event
aí galera alguém poderia me ajudar e me arrumar uma script de zombie evento tô precisando urgente
- [TFS 1.x] Zombie Event
-
Itens Donate não dando Skill
pq tipo cara, vc tem que adicionar os itens no movements, entendeu, colocar o id dela lá para poder fazer efeito <movevent type="DeEquip" itemid="8903" slot="shield" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="8903" slot="shield" event="function" value="onEquipItem"> </movevent> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> vc vai lá e copia esse movements e troca o id e coloca o id da sua vip, se for shield vc deixa shield - se for armor vc troca o nome shield por armor , etc....
-
Vip System TFS 1.2 - Sistema com Comandos, pisos, items, portas
entendi nada nesse toutorial -> Global.lua em menhum ot server existe e no 3º 3° na pasta data\ crie um arquivo chamado vipsystem.lua e adicione o seguinte data / o que ? essa explicação tá foda cara
-
Vip na conta toda.
e como faço para quando clikar em um item ele ganha vip ? nesse sistema nem tem esse negocio
-
Vip na conta toda.
minha distro parece que é 4.0 funciona ? nesse do 1.2?
-
Vip na conta toda.
Aí galera eu tenho sistema de vip no meu ot server, mas porem quando ativa a vip só fica no character não fica na conta toda, eu gostaria de fazer para ficar na conta toda. alguém aí sabe como eu posso fazer isso ?
-
delay nesse item
esquece o que eu disse, Funcionou 100% , apenas eu testei na conta god por isso não foi :D dps coloco um negocio mole na sua mão :D
-
delay nesse item
e também não funciona
-
delay nesse item
aí galera beleza , alguém poderia me ajudar a colocar delay nessa action function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= 13 and getPlayerLevel(cid) < 17 then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,8) doPlayerSay(cid," 200 experiance Up",19) doPlayerAddExp(cid, 200) elseif getPlayerLevel(cid) > 16 and getPlayerLevel(cid) < 20 then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,8) doPlayerSay(cid," 100 experiance Up",19) doPlayerAddExp(cid, 100) elseif getPlayerLevel(cid) > 19 and getPlayerLevel(cid) < 23 then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,8) doPlayerSay(cid," 50 experiance Up",19) doPlayerAddExp(cid, 50) elseif getPlayerLevel(cid) > 22 then doRemoveItem(item.uid, 0) doSendMagicEffect(topos,2) doPlayerSay(cid," Desculpe, Mas você atingiu o level Máximo",19) doPlayerAddExp(cid, 0) end end Mas queria colocar delay em uma parte só da script vou por uma foto pra explicar melhor
-
Magia vip
kkkkkkkkk