Ir para conteúdo

luanluciano93

Héroi
  • Registro em

  • Última visita

Tudo que luanluciano93 postou

  1. @, verdade, vlw por avisar! SCRIPT ARRUMADO ACIMA.
  2. luanluciano93 postou uma resposta no tópico em Formação de Equipe
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Projetos / Formação de Equipes → Projetos de OTServ" Para: "OTServ → Projetos / Formação de Equipes → Formação de Equipes"
  3. Não testei .. local config = { positions = { {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, }, positions2 = { {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, }, storageTime1 = 10045, storageTime2 = 10046, money = 500,-- em k } function onUse(cid, item, fromPosition, item2, toPosition) -- Checando posições 1 for i = 1, #config.positions do local creature = getTopCreature(config.positions[i][1]).uid if not isPlayer(creature) then return doPlayerSendCancel(cid, "Nao existe players em todas as posicoes.") and doSendMagicEffect(getThingPos(cid), 2) end local guild1 = getPlayerGuildId(getTopCreature(config.positions[1][1]).uid) if getPlayerGuildId(creature) ~= guild1 then return doPlayerSendCancel(cid, "Algum player nao e da guild correta.") and doSendMagicEffect(getThingPos(cid), 2) end if getPlayerMoney(creature) < (config.money * 1000) then return doPlayerSendCancel(cid, "Algum player nao tem "..config.money.."k.") and doSendMagicEffect(getThingPos(cid), 2) end end -- Checando posições 2 for i = 1, #config.positions2 do local creature = getTopCreature(config.positions2[i][1]).uid if not isPlayer(creature) then return doPlayerSendCancel(cid, "Not enough players.") and doSendMagicEffect(getThingPos(cid), 2) end local guild2 = getPlayerGuildId(getTopCreature(config.positions2[1][1]).uid) if getPlayerGuildId(creature) ~= guild2 then return doPlayerSendCancel(cid, "Algum player nao e da guild correta.") and doSendMagicEffect(getThingPos(cid), 2) end if getPlayerMoney(creature) < (config.money * 1000) then return doPlayerSendCancel(cid, "Algum player nao tem "..config.money.."k.") and doSendMagicEffect(getThingPos(cid), 2) end end doBroadcastMessage("Começou uma batalha entre ".. getPlayerGuildName(getTopCreature(config.positions[1][1].uid) .." e ".. getPlayerGuildName(getTopCreature(config.positions2[1][1]).uid) ..".") -- Teleportando posições 1 for i = 1, #config.positions do local creature = getTopCreature(config.positions[i][1]).uid doTeleportThing(creature, config.positions[i][2]) doPlayerSendTextMessage(creature, 27, "You started the quest.") doSendMagicEffect(getThingPos(creature), 33) doPlayerRemoveMoney(creature, (config.money * 1000)) setPlayerStorageValue(creature, config.storageTime1, 1) end -- Teleportando posições 2 for i = 1, #config.positions2 do local creature = getTopCreature(config.positions2[i][1]).uid doTeleportThing(creature, config.positions2[i][2]) doPlayerSendTextMessage(creature, 27, "You started the quest.") doSendMagicEffect(getThingPos(creature), 33) doPlayerRemoveMoney(creature, (config.money * 1000)) setPlayerStorageValue(creature, config.storageTime2, 1) end return true end
  4. Pelo que parece você não instalou todas as libs necessárias para compilação do mesmo.
  5. Faz o boss com base no xml do daquele Esquilo, ele faz isso, ai tu edita, nome, life, e etc.
  6. @Vinicius Xxgamexx, setGlobalStorageValue(cid, guild, tab[getCreatureName(target)], 1) WHAT? <movevent type="StepOut" actionid="23424" event="script" value="exclusiveguild.lua"/> PARA QUE STEP OUT? local tab = { ["MONSTER"] = 34242, } E seu eu matar um monstro que não esta na sua tabela? O que acontece na hora dele armazenar na globalStorage? Abraços!
  7. @runeraserver, obg, http://www.tibiaking.com/forum/topic/28062-monstros-passivos/
  8. Não testei. local config = { positions = { {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, }, positions2 = { {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, }, } function onUse(cid, item, fromPosition, item2, toPosition) -- Checando posições 1 for i = 1, #config.positions do if not isPlayer(getTopCreature(config.positions[i][1]).uid) then return doPlayerSendCancel(cid, "Nao existe players em todas as posicoes.") and doSendMagicEffect(getThingPos(cid), 2) end local guild1 = getPlayerGuildId(cid) if getPlayerGuildId(getTopCreature(config.positions[i][1]).uid) ~= guild1 then return doPlayerSendCancel(cid, "Alguem player nao e da guild correta.") and doSendMagicEffect(getThingPos(cid), 2) end end -- Checando posições 2 for i = 1, #config.positions2 do if not isPlayer(getTopCreature(config.positions2[i][1]).uid) then return doPlayerSendCancel(cid, "Not enough players.") and doSendMagicEffect(getThingPos(cid), 2) end local guild2 = getPlayerGuildId(getTopCreature(config.positions2[1][1]).uid) if getPlayerGuildId(getTopCreature(config.positions2[i][1]).uid) ~= guild2 then return doPlayerSendCancel(cid, "Alguem player nao e da guild correta.") and doSendMagicEffect(getThingPos(cid), 2) end end -- Teleportando posições 1 for i = 1, #config.positions do local creature = getTopCreature(config.positions[i][1]).uid doTeleportThing(creature, config.positions[i][2]) doPlayerSendTextMessage(creature, 27, "You started the quest.") doSendMagicEffect(getThingPos(creature), 33) end -- Teleportando posições 1 for i = 1, #config.positions2 do local creature = getTopCreature(config.positions2[i][1]).uid doTeleportThing(creature, config.positions2[i][2]) doPlayerSendTextMessage(creature, 27, "You started the quest.") doSendMagicEffect(getThingPos(creature), 33) end return true end
  9. luanluciano93 postou uma resposta no tópico em Eventos de Mapping
    Os dois estão muito bons, porem o mapa 2 está bem mais trabalhado e bonito.
  10. Esse sistema faz com que existam monstros que não atacam você, se você não atacar ou usar magias antes. Então vamos ao passo-a-passo. Encontre em luascript.cpp: registerMethod("MonsterType", "isHostile", LuaScriptInterface::luaMonsterTypeIsHostile); Coloque abaixo: registerMethod("MonsterType", "isHostileOnAttack", LuaScriptInterface::luaMonsterTypeIsHostileOnAttack); Encontre em luascript.cpp: int LuaScriptInterface::luaMonsterTypeIsHostile(lua_State* L) { // monsterType:isHostile() MonsterType* monsterType = getUserdata<MonsterType>(L, 1); if (monsterType) { pushBoolean(L, monsterType->isHostile); } else { lua_pushnil(L); } return 1; } Coloque abaixo: int LuaScriptInterface::luaMonsterTypeIsHostileOnAttack(lua_State* L) { // monsterType:isHostileOnAttack() MonsterType* monsterType = getUserdata<MonsterType>(L, 1); if (monsterType) { pushBoolean(L, monsterType->isHostileOnAttack); } else { lua_pushnil(L); } return 1; } Encontre em luascript.h: static int luaMonsterTypeIsHostile(lua_State* L); Coloque abaixo: static int luaMonsterTypeIsHostileOnAttack(lua_State* L); Encontre em monster.cpp: if (isHostile() || isSummon()) { if (setAttackedCreature(creature) && !isSummon()) { g_dispatcher.addTask(createTask(std::bind(&Game::checkCreatureAttack, &g_game, getID()))); } } return setFollowCreature(creature); } Substitua por: if (isHostileOnAttack() && getHealth() >= getMaxHealth()) { return false; } else if (isHostile() || isSummon()) { if (setAttackedCreature(creature) && !isSummon()) { g_dispatcher.addTask(createTask(std::bind(&Game::checkCreatureAttack, &g_game, getID()))); } } return setFollowCreature(creature); } Encontre em monster.h: bool isHostile() const { return mType->isHostile; } Coloque abaixo: bool isHostileOnAttack() const { return mType->isHostileOnAttack; } Encontre em monsters.cpp: isHostile = true; Coloque abaixo: isHostileOnAttack = false; Encontre em monsters.cpp: } else if (strcasecmp(attrName, "hostile") == 0) { mType->isHostile = attr.as_bool(); Coloque abaixo: } else if (strcasecmp(attrName, "hostileonattack") == 0) { mType->isHostileOnAttack = attr.as_bool(); Encontre em monsters.h: bool isHostile; Coloque abaixo: bool isHostileOnAttack; Pronto, agora é só editar as flags no xml do monster que você que ataque apenas quando for atacado: <flag hostile="1"/> <flag hostileonattack="1"/> Todos os créditos são de fish04k.
  11. Primeiramente, o título do tópico esta complemente incoerente, por favor, entre em edição completa e coloque algo que descreva a sua dúvida. eira E também, quando for colocar códigos no tópico, para melhorar a visualização, aconselho a usar a opção code do bbcode.
  12. Primeiramente, o título do tópico esta complemente incoerente, por favor, entre em edição completa e coloque algo que descreva a sua dúvida. Pois bem, para retirar essas mensagens, basta ir no index e a opção que tem database_debug, coloque false.
  13. luanluciano93 postou uma resposta no tópico em Suporte Tibia OTServer
    explique como funcionar ...
  14. POR FAVOR, ENTRE EM EDIÇÃO COMPLETA E ARRUME O TÍTULO DO TÓPICO. TOPIC ~ • http://www.tibiaking.com/forum/topic/48888-getplayeritemscid-id/
  15. @Demoniacot, teste agora.
  16. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Clients"
  17. @Liane Maria, coloque a solução, alguém pode estar com o mesmo erro .
  18. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  19. luanluciano93 postou uma resposta no tópico em Playground (Off-topic)
    dahora, rsrsrs
  20. luanluciano93 postou uma resposta no tópico em Websites
    Muito fera esse layout, obrigado por comaprtilhar.
  21. não entendi essas linhas ...
  22. - Classificação Exibir classificação de jogadores = 10 (quantidade de players irá aparecer na classificação ingame). Atualizar classificação = 6 (tempo em minutos para atualizar)

Informação Importante

Confirmação de Termo