Ir para conteúdo

Beeki

Herói
  • Total de itens

    1900
  • Registro em

  • Última visita

  • Dias Ganhos

    13

Tudo que Beeki postou

  1. @Mario21 da próxima vez utilize o XTibia busque antes de criar um tópico como esse pedindo algo, sem ao menos explicar direito o que você quer, tente escrever suas frases com sentido, por favor ! @Topico Aqui está um Website próprio para Pokemon ! http://www.xtibia.com/forum/topic/177012-modern-aac-web-site-poketibia-20/
  2. Aqui está um otimo Vip System criado pelo Mock, da proxima antes de pedir algo use o XTibia busca ali no canto, vlw http://www.xtibia.com/forum/topic/151189-vip-system-by-mock-100/
  3. Beeki

    Meeeeedalhas!

    Tipo seria massa se houvesse concursos tipo o Sing of The Week, sendo o tema Script, nunca vi um Evento de script, e como premio o ganhador poderia receber uma Medalha!
  4. deu utamo vita e ficou inbanivel,
  5. eu também fico em duvida, mais as vezes tempo de vida no Fórum e posts conta sim,
  6. AnyurCT você regrediu e progrediu do Nada por que ?, Tava de Coordenador esses dias, dai saiu, depois voltou como MOD, é um chove e não molha da porra !!!
  7. Para virar Moderador no fórum você tem que ter uma Boa conduta dentro do fórum, conhecer as Regras, ajudar os outros, ter um ótimo conhecimento de Porquês para não escrever errado "Pal" igual o Mano ali em cima, e outras coisas Básicas.
  8. Nossa Vodkart, não perde uma neh ?? Safadenhooo, rs globalevents/scripts/ctf.lua adicione: local t = { redPos = {x = 982, y = 1022, z = 7}, bluePos = {x = 993, y = 1033, z = 7}, redStorage = 15000, blueStorage = 15001, fromPos = {x = 1004, y = 1023, z = 7}, toPos = {x = 1015, y = 1032, z = 7} } local conditionBlue = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionBlue, CONDITION_PARAM_TICKS, 1800 * 1000) addOutfitCondition(conditionBlue, {lookType = 130, lookHead = 87, lookBody = 87, lookLegs = 87, lookFeet = 87}) local conditionRed = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionRed, CONDITION_PARAM_TICKS, 1800 * 1000) addOutfitCondition(conditionRed, {lookType = 130, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94}) local function teleportThing(minutes) local event = 0 if minutes <= 0 then for _, cid in ipairs(getPlayersOnline()) do if isInRange(getThingPos(cid), t.fromPos, t.toPos) then if math.random(1, 3) < 3 then setPlayerStorageValue(cid, t.redStorage, 1) doAddCondition(cid, conditionRed) doTeleportThing(cid, t.redPos, true) else setPlayerStorageValue(cid, t.blueStorage, 1) doAddCondition(cid, conditionBlue) doTeleportThing(cid, t.bluePos, true) end end end return true end if minutes == 1 then doBroadcastMessage("Capture The Flag will begin in " .. minutes .. " minute!") elseif minutes <= 3 then doBroadcastMessage("Capture The Flag will begin in " .. minutes .. " minutes!") else doBroadcastMessage("Capture The Flag will begin in " .. minutes .. " minutes!") end event = addEvent(teleportThing, 60, minutes - 1) return true end function onThink(interval, lastExecution) return teleportThing(math.abs(math.ceil(1))) end globalevents.xml adicione: [/font][/color] [color=#008000]<globalevent name="ctf_event" interval="60" event="script" value="ctf.lua"/>[/color] [color=#000000][font=Tahoma, Calibri, Arial, Verdana, Tahoma,] data/creaturescripts/scripts/ctf_target.lua adicione: local t = { redStorage = 15000, blueStorage = 15001 } function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerStorageValue(cid, t.redStorage) == 1 and getPlayerStorageValue(target, t.redStorage) == 1 then return doPlayerSendCancel(cid, "You may not attack your team mates.") and false elseif getPlayerStorageValue(cid, t.blueStorage) == 1 and getPlayerStorageValue(target, t.blueStorage) == 1 then return doPlayerSendCancel(cid, "You may not attack your team mates.") and false end end return true end data/creaturescripts/scripts/stats_ctf.lua adicione: local t = { redPos = {x = 983, y = 1028, z = 7}, bluePos = {x = 992, y = 1028, z = 7}, redStorage = 15000, blueStorage = 15001, redFlag = 18000, blueFlag = 18001 } function onStatsChange(cid, attacker, type, combat, value) if type == 1 then if getCreatureHealth(cid) <= value then if isPlayer(cid) and isCreature(attacker) then if getPlayerStorageValue(cid, t.redStorage) == 1 then if getPlayerStorageValue(cid, t.blueFlag) == 1 and getGlobalStorageValue(t.blueFlag) == 1 then setPlayerStorageValue(cid, t.blueFlag, -1) setGlobalStorageValue(t.blueFlag, -1) doBroadcastMessage(getCreatureName(cid) .. " has lost the Blue Flag!") doTeleportThing(cid, t.redPos, true) else doTeleportThing(cid, t.redPos, true) end doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true) doCreatureAddMana(cid, getCreatureMaxMana(cid), true) elseif getPlayerStorageValue(cid, t.blueStorage) == 1 then if getPlayerStorageValue(cid, t.redFlag) == 1 and getGlobalStorageValue(t.redFlag) == 1 then setPlayerStorageValue(cid, t.redFlag, -1) setGlobalStorageValue(t.redFlag, -1) doTeleportThing(cid, t.bluePos, true) doBroadcastMessage(getCreatureName(cid) .. " has lost the Red Flag!") else doTeleportThing(cid, t.bluePos, true) end doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true) doCreatureAddMana(cid, getCreatureMaxMana(cid), true) end end return false end end return true end creaturescripts.xml adicione: <event type="statschange" name="stats_ctf" event="script" value="stats_ctf.lua"/> [/font][/color] [color=#000000][font=Tahoma, Calibri, Arial, Verdana, Tahoma,]<event type="combat" name="ctf_target" event="script" value="ctf_target.lua"/> login.lua adicione: registerCreatureEvent(cid, "stats_ctf") registerCreatureEvent(cid, "ctf_target") data/movements/scripts/test.lua adicione: local t = { redStorage = 15000, blueStorage = 15001, redFlag = 18000, blueFlag = 18001, redGoal = 19000, blueGoal = 19001, fromPos = {x = 982, y = 1022, z = 7}, toPos = {x = 993, y = 1033, z = 7} } local function getPlayers() local thisTable = {} for x = t.fromPos.x, t.toPos.x do for y = t.fromPos.y, t.toPos.y do for z = t.fromPos.z, t.toPos.z do local myPos = {x = x, y = y, z = z} local player = getTopCreature(myPos).uid if player > 0 then table.insert(thisTable, player) else table.remove(thisTable, player) end end end end return {thisTable = thisTable} end local function repeatFlagOnPlayer(cid) local k = getThingPos(cid) local r = { {pos = {x = k.x + 2, y = k.y - 2, z = k.z}, delay = 300}, {pos = {x = k.x + 2, y = k.y + 2, z = k.z}, delay = 300}, {pos = {x = k.x - 2, y = k.y + 2, z = k.z}, delay = 300}, {pos = {x = k.x - 2, y = k.y, z = k.z}, delay = 300}, {pos = {x = k.x - 2, y = k.y - 2, z = k.z}, delay = 300}, {pos = {x = k.x, y = k.y - 2, z = k.z}, delay = 300} } local effects = {27, 28, 29, 30} if isPlayer(cid) then if getPlayerStorageValue(cid, t.blueStorage) == 1 and getPlayerStorageValue(cid, t.redFlag) == 1 and getGlobalStorageValue(t.redFlag) == 1 then for i = 1, 6 do addEvent(doSendDistanceShoot, r[i].delay, r[i].pos, k, CONST_ME_FIREWORK_YELLOW) end for i = 1, 4 do addEvent(doSendMagicEffect, 1000, getThingPos(cid), effects[i]) end return addEvent(repeatFlagOnPlayer, 1000, cid) elseif getPlayerStorageValue(cid, t.redStorage) == 1 and getPlayerStorageValue(cid, t.blueFlag) == 1 and getGlobalStorageValue(t.blueFlag) == 1 then for i = 1, 6 do addEvent(doSendDistanceShoot, r[i].delay, r[i].pos, k, CONST_ME_FIREWORK_YELLOW) end for i = 1, 4 do addEvent(doSendMagicEffect, 1000, getThingPos(cid), effects[i]) end return addEvent(repeatFlagOnPlayer, 1000, cid) else return false end else return false end end function onStepIn(cid, item, position, fromPosition, toPosition, lastPosition, actor) if isPlayer(cid) then if item.actionid == 6000 then if getPlayerStorageValue(cid, t.redStorage) == 1 then if getPlayerStorageValue(cid, t.blueFlag) == -1 and getGlobalStorageValue(t.blueFlag) == -1 then setPlayerStorageValue(cid, t.blueFlag, 1) setGlobalStorageValue(t.blueFlag, 1) repeatFlagOnPlayer(cid) doBroadcastMessage(getCreatureName(cid) .. " has stolen the Blue Flag!") else doCreatureSay(cid, "The flag is not at home.", 19) doTeleportThing(cid, fromPosition, false) end else doCreatureSay(cid, "You may only pick up the opposite team flag.", 19) doTeleportThing(cid, fromPosition, false) end elseif item.actionid == 6001 then if getPlayerStorageValue(cid, t.blueStorage) == 1 then if getPlayerStorageValue(cid, t.redFlag) == -1 and getGlobalStorageValue(t.redFlag) == -1 then setPlayerStorageValue(cid, t.redFlag, 1) setGlobalStorageValue(t.redFlag, 1) repeatFlagOnPlayer(cid) doBroadcastMessage(getCreatureName(cid) .. " has stolen the Red flag!") else doCreatureSay(cid, "The flag is not at home.", 19) doTeleportThing(cid, fromPosition, false) end else doCreatureSay(cid, "The flag is not at home.", 19) doTeleportThing(cid, fromPosition, false) end end if item.actionid == 6002 then if getPlayerStorageValue(cid, t.redStorage) == 1 then if getPlayerStorageValue(cid, t.blueFlag) == 1 and getGlobalStorageValue(t.blueFlag) == 1 then setGlobalStorageValue(t.blueFlag, -1) setPlayerStorageValue(cid, t.blueFlag, -1) setGlobalStorageValue(t.redGoal, getGlobalStorageValue(t.redGoal)+1) doBroadcastMessage("Current CTF Game Score:\nRed Team: " .. getGlobalStorageValue(t.redGoal) .. "\nBlue Team: " .. getGlobalStorageValue(t.blueGoal) .. "\nTen Scores to win!", 20) doBroadcastMessage(getCreatureName(cid) .. " has scored 1 point for the Red Team!") else doCreatureSay(cid, "You dont have the flag.", 19) doTeleportThing(cid, fromPosition, false) end elseif getPlayerStorageValue(cid, t.blueStorage) == 1 then if getPlayerStorageValue(cid, t.redFlag) == 1 and getGlobalStorageValue(t.redFlag) == 1 then setGlobalStorageValue(t.redFlag, -1) setPlayerStorageValue(cid, t.redFlag, -1) setGlobalStorageValue(t.blueGoal, getGlobalStorageValue(t.blueGoal)+1) doBroadcastMessage("Current CTF Game Score:\nRed Team: " .. getGlobalStorageValue(t.redGoal) .. "\nBlue Team: " .. getGlobalStorageValue(t.blueGoal) .. "\nTen Scores to win!", 20) doBroadcastMessage(getCreatureName(cid) .. " has scored 1 point for the Blue Team!") else doCreatureSay(cid, "You dont have the flag.", 19) doTeleportThing(cid, fromPosition, false) end end if getGlobalStorageValue(t.blueGoal) == 10 and getGlobalStorageValue(t.redGoal) < 10 then for _, cid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(cid, t.blueStorage) == 1 then setPlayerStorageValue(cid, t.blueStorage, -1) doPlayerAddItem(cid, 9020, math.random(1, 6)) elseif getPlayerStorageValue(cid, t.redStorage) == 1 then setPlayerStorageValue(cid, t.redStorage, -1) end doRemoveCondition(cid, CONDITION_OUTFIT) setGlobalStorageValue(t.redGoal, 0) setGlobalStorageValue(t.blueGoal, 0) end local FF = getPlayers().thisTable if #FF > 1 then for _, hh in ipairs(FF) do doTeleportThing(hh, getTownTemplePosition(getPlayerTown(hh)), true) end end elseif getGlobalStorageValue(t.redGoal) == 10 and getGlobalStorageValue(t.blueGoal) < 10 then for _, cid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(cid, t.redStorage) == 1 then setPlayerStorageValue(cid, t.redStorage, -1) doPlayerAddItem(cid, 9020, math.random(1, 6)) elseif getPlayerStorageValue(cid, t.blueStorage) == 1 then setPlayerStorageValue(cid, t.blueStorage, -1) end doRemoveCondition(cid, CONDITION_OUTFIT) setGlobalStorageValue(t.redGoal, 0) setGlobalStorageValue(t.blueGoal, 0) end local F = getPlayers().thisTable if #F > 1 then for _, h in ipairs(F) do doTeleportThing(h, getTownTemplePosition(getPlayerTown(h)), true) end end end end else doRemoveCreature(cid) end return true end movements.xml adicione: <movevent type="StepIn" actionid="6000-6002" event="script" value="test.lua"/> data/globalevents/scripts/start.lua adicione: setGlobalStorageValue(19000, 0) setGlobalStorageValue(19001, 0) Posições: Podem ser alteradas! mple position = {x = 1025, y = 1028, z = 7} waiting room pos = {x = 1009, y = 1027, z = 7}, red team = {x = 982, y = 1022, z = 7}, blue team = {x = 993, y = 1033, z = 7}, score position = {x = 987, y = 1027, z = 7}, red team flag position = {x = 987, y = 1032, z = 7}, blue team flag position = {x = 987, y = 1023, z = 7} Depois execute essa query: UPDATE `players` SET posx = 1025, posy = 1028, posz = 7
  9. Qual distro vocÊ está utilizando ?
  10. se você for pelo preço a LGV está mais em Conta, agora ai fica pelo critério !
  11. kkk Maior aperto que eu já passei, foi um Dia que taquei um Demon Shield, em cima do DP e tinha um Noob com aquele programinha que começa tacar Labels em cima do Depoit, puts comecei soar com medo de Perder o shield, quase que eu morro do Coração, mais eu consegui Pegar o shield de volta, kk
  12. Funções: getPlayerSex(cid) == PLAYERSEX_FEMALE getPlayerSex(cid) == PLAYERSEX_MALE
  13. Concordo com o mano ali em cima, o XTibia está precisando de um clean nesses Post que não tem utilidade e só traz peso no Banco de dados e Lag pra agente ¬¬
  14. Hum, vou testar aqui e Passa um feedback, @FezZiN entrei em contato com você por PM, se poder me responder eu agradeço.
  15. Pode ser tambem o tamanho do seu Mapa, o maximo de tamanho pra arquivos OTBM no windows é 100 MB veja isso.
  16. Indico a você que use o Linux, é mais seguro etc.. para Hospedagens.
  17. vlw nada rapá, 1 rep ouxii, tou zuando Man, qualquer coisa ai pode mandar MP
  18. Aqui está o link da SVN do Modern AAC http://vapus.net/svn/listing.php?repname=ModernAAC baixa o Trunk
  19. Bem ouvi falar que tem um Codigo, que o talaturen instalou em seu Distro ( TheForgottenServer ) que impede que outras otservlist, puxem o Status desse OT! deve ser isso!
  20. Beeki

    Bug De Magic Level

    Faz o seguinte, muda o seu Distro pra um 0.4 rev 3777 é o melhor que você, eu testei esse Bug aki no 0.4_DEV e não tem, fikdik
  21. Bem como o mano ali em cima disse, tente mostrar os sistemas do seu Projeto, e fica a dica de Inovar em sistemas, RPG, jogabilidade etc.. fazendo com que seu OTServer seja diferente dos outros não um comun qualquer, fikdik
  22. Cara, sem duvidas o Linux é a melhor plataforma pra Host de Servers é um pouco complicado sim, porem vale a Pena, e outra eu aconselho a você a usar Modern AAC que é mais seguro e menos vulnerável do que o Gesior como o Amigo disse ali em cima !
  23. Galera o Henrique Moura veio aqui Apresentar o Linux, com o intuito voltado somente pra Servidores ( OT ) não para o uso de Doméstico entendem ?, aliás eu uso Linux em meu servidor e recomendo!
  24. Se explique melhor Amigo !
  25. Teria que fazer muita coisa ( literalmente ) uma grande modificação no cliente e nas sources do seu Emulador!
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...