Ir para conteúdo

mateusmoretti

Membro
  • Registro em

  • Última visita

Tudo que mateusmoretti postou

  1. eai xaga estava no trabalho!! bom o scripts ta na movements, --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: [email protected] ]] local CTF = CTF_LIB function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local team = getItemAttribute(item.uid, "team") if team ~= getPlayerStorageValue(cid, 16700) then return doTeleportThing(cid, fromPosition) end if getPlayerStorageValue(cid, 16702) == -1 then doPlayerSendCancel(cid, "Você não está com a bandeira.") return doTeleportThing(cid, fromPosition) end if CTF.addPoint(cid) ~= "close" then doTeleportThing(cid, fromPosition) end return true end
  2. ok, os char nao se movem nem pra um lado nem pro outro. ambos ficam preso! poderia ser erro nas cordenadas da bandeira? acho que nao pois estão corretas agora!, acho que deve ser algum problema na LIB!
  3. Conseguir Arruma a Area do teletrasnposte!! Graça a Deus! Segue a imagem abaixo pra tu ver, porem o player nao anda e nao consigo pegar as bandeira de nenhum de time! parece que o proprio evento bloquei uns sqms
  4. Voltei kkkkk, Bom fiz certinho como me disse criei os 2 com os teleport! e voltei a lib do evento como era antes! porem os char sao teletrasnportado normal. mais o time vermelho nasce na parte do time verde, e o time verde nasce na parte do time vermelho! e nao consigo me mover no piso o char fica preso!!
  5. Certo ja fiz aquele procidimento, olha ai
  6. Certo, Voltei função anterio! e o Mapa Chama "Baiak MMA, SO TEM ESSE MAP"
  7. xagah mesma coisa,. todos sao teleportado para area do time Verde!
  8. Eai xaga blz! bom fiz oque me pediu porem os player sao teletrasnportado somente para 1 lado todos sao teletrasnportado para essa cordenada " doTeleportThing(uid, {x=110, y=615, z=7}) e ta dando esse error no distro! [28/1/2016 19:27:1] [Error - MoveEvent::executeStep] Call stack overflow. [28/1/2016 19:31:28] [Error - MoveEvent::executeStep] Call stack overflow. [28/1/2016 19:31:28] [Error - MoveEvent::executeStep] Call stack overflow. [28/1/2016 19:31:28] [Error - MoveEvent::executeStep] Call stack overflow. [28/1/2016 19:31:28] [Error - MoveEvent::executeStep] Call stack overflow. [28/1/2016 19:31:29] [Error - MoveEvent::executeStep] Call stack overflow. [28/1/2016 19:31:29] [Error - MoveEvent::executeStep] Call stack overflow.
  9. Ok, vou fica no seu aguardo. boa tarde !!
  10. Espero que da pra entender A sala de espera; Cordenadas x:44 y:610 z:7 O lugar onde o templo irá aparecer; Cordenadas x:54 y:253 z:7 Onde ficará a bandeira: Azul; Cordenadas x:68 y:629 z:6 Vermelha; Cordenadas x:122 y:629 z:6 Onde os players deverão entregara bandeira: Azul; Cordenadas x:122 y:628 z:6 Vermelha; Cordenadas x:68 y:628 z:6 Onde os players vermelhos e azuis deverão nascer; Cordenadas Time Verde x:81 y:615 z:7 Cordenadas Time Vermelho x:110 y:615 z:7 xaga???
  11. então essa parte também quero saber porque nao esta na lib que passei! Unica coisa que estava configurada sao as bandeira onde nascem, e aonde sao entregues agora o teletrasnportas todos os player da sala de espera para o evento, isso nao esta indo!!!
  12. Chaga removi essa linha porém os player nao vao para o templo. mais fica na sala de espera!! e nao da pra se mover também!!
  13. Eai xaga blz, pow desculpa fiquei tao entertido esqueci de postar! ta configurado certinho no meu ot server! --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: [email protected] ]] CTF_LIB = { waitpos = {x = 44, y = 610, z =7}, -- Posição da sala de espera tppos = {x = 54, y = 253, 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 = 4, -- 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 = 68, y = 629, z =6}, -- Posição onde a bandeira vermelha vai ser criada gnd_pos = {x = 122, y = 628, 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 = 122, y = 629, z =6}, -- Posição onde a bandeira verde vai ser criada gnd_pos = {x = 68, y = 628, z =7}, -- 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[i] = 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[i] = 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[i], 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() < 2 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[i]) if getGlobalStorageValue(score_sto[i]) >= 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[i], 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
  14. BLZ VOU REFAZER AQUI! Ai crei o bixo rapidao, so fazer uns teste funcionando normal! agora eu to achando que erro no /n porque nao consigo criar nenhum outro npc!!! dando esse erro na distro [27/1/2016 19:18:40] [Error - TalkAction Interface] [27/1/2016 19:18:40] data/talkactions/scripts/creature.lua:onSay [27/1/2016 19:18:40] Description: [27/1/2016 19:18:40] (LuaInterface::luaDoCreateNpc) Npc with name '' not found [27/1/2016 19:18:51] [Warning - Npc::createNpc] Cannot find npc with name: .
  15. Certo vou te mandar, 1 mandas algumas 'SS' Nao queria ser chato mais gostaria que voce me mostrasse como editar, gostaria de aprender! jaja te mando uma ss dos monsters --Waves AREA_WAVE4 = { {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 1, 1, 1, 0}, {0, 0, 3, 0, 0} } AREA_SQUAREWAVE5 = { {1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {0, 1, 0}, {0, 3, 0} } AREA_WAVE5 = { {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}, {0, 0, 3, 0, 0} } --Diagonal waves AREADIAGONAL_WAVE4 = { {0, 0, 0, 0, 1, 0}, {0, 0, 0, 1, 1, 0}, {0, 0, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 0}, {0, 0, 0, 0, 0, 3} } AREADIAGONAL_SQUAREWAVE5 = { {1, 1, 1, 0, 0}, {1, 1, 1, 0, 0}, {1, 1, 1, 0, 0}, {0, 0, 0, 1, 0}, {0, 0, 0, 0, 3} } AREADIAGONAL_WAVE5 = { {0, 0, 0, 0, 1, 0}, {0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 0, 0}, {1, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 3} } --Beams AREA_BEAM1 = { {3} } AREA_BEAM5 = { {1}, {1}, {1}, {1}, {1}, {3} } AREA_BEAM7 = { {1}, {1}, {1}, {1}, {1}, {1}, {1}, {3} } --Diagonal Beams AREADIAGONAL_BEAM5 = { {1, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 3} } AREADIAGONAL_BEAM7 = { {1, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 0, 0, 3} } --Circles AREA_CIRCLE2X2 = { {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0} } AREA_CIRCLE3X3 = { {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 3, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0} } -- Crosses AREA_CROSS1X1 = { {0, 1, 0}, {1, 3, 1}, {0, 1, 0} } AREA_CROSS5X5 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0} } AREA_CROSS6X6 = { {0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0} } --Squares AREA_SQUARE1X1 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } -- Walls AREA_WALLFIELD = { {1, 1, 3, 1, 1} } AREADIAGONAL_WALLFIELD = { {0, 0, 0, 0, 1}, {0, 0, 0, 1, 1}, {0, 1, 3, 1, 0}, {1, 1, 0, 0, 0}, {1, 0, 0, 0, 0}, }
  16. Unica coisa que faltava era colocar a Gran Tower, os Barrier e o npc ! quando liguei o servidor eu conseguia /m barrier /m gran tower, normal funcionando porém nao dava pra usar talkactions, nao criava o npc e deu erro nas spells/lib "muito complicado pra adiconar la"
  17. Nao editei nada no evento.. da mesma forma que tava no seu topico copiei tudo nao mechi em nada! so iria mecher depois que colocasse no map mais nem no map eu conseguir colocar! mais deu erro tudo aqui bugo o map as spells, monsters bugou todo ot, to tentando arruma
  18. deixa 27/1/2016 17:44:13] [Error - TalkAction Interface] [27/1/2016 17:44:13] data/talkactions/scripts/creature.lua:onSay [27/1/2016 17:44:13] Description: [27/1/2016 17:44:13] (LuaInterface::luaDoCreateNpc) Npc with name '' not found [27/1/2016 17:41:16] [Error - CreatureScript Interface] [27/1/2016 17:41:16] In a timer event called from: [27/1/2016 17:41:16] data/creaturescripts/scripts/Gran Tower.lua:onDeath [27/1/2016 17:41:16] Description: [27/1/2016 17:41:16] (LuaInterface::luaDoCreateMonster) Cannot create monster: Gran Tower [27/1/2016 17:41:40] [Warning - Npc::createNpc] Cannot find npc with name: . deixa assim, vou quebrar ainda mais minha cabeça! ta dando esses 2 erro aqui, nao consigo sumoner o npc, nem executar o comando /grantower e nao consigo adicionar pelo map editor, o bixo nao aparece
  19. Qual erro, posta aqui pra poder identificar! faz um test trocando a config!

Informação Importante

Confirmação de Termo