Tudo que luanluciano93 postou
-
(Resolvido){alavanca que teleporta 4x4 players}
@, verdade, vlw por avisar! SCRIPT ARRUMADO ACIMA.
-
[OTSERV
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"
-
(Resolvido){alavanca que teleporta 4x4 players}
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
- (Resolvido)duvida compilar com codeblocks
-
Criar monstro para evento
Faz o boss com base no xml do daquele Esquilo, ele faz isso, ai tu edita, nome, life, e etc.
-
GANHAR STORAGE AO MATAR MONSTRO
@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!
- Monstros Passivos TFS 1.1
-
(Resolvido){alavanca que teleporta 4x4 players}
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
- Mapper King
-
Monstros Passivos TFS 1.1
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.
-
MINHA ULTIMA DUVIDA
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.
-
Alguem poderia me ajudar com isso?
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.
- Order igual PXG
- (Resolvido)Addon doll/ Mount doll TFS 1.0 ot 10.76 (HELP)
-
Ver equip - script
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/
-
Stamina Refuel
@Demoniacot, teste agora.
- Erro Item Editor
-
Erro ao abrir BuyPoints
@Liane Maria, coloque a solução, alguém pode estar com o mesmo erro .
-
Proucura de Servidor Pokémon Hard/Estilo SVKE
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"
-
Um dia comum no Tibia
dahora, rsrsrs
-
(Resolvido)Dúvida Highcore
Nunca vi
-
DarkSandOTS Layout
Muito fera esse layout, obrigado por comaprtilhar.
-
[Gesior 2012] Createaccount.php WORLDS
Teste:
-
(Resolvido)[Action] Organizar Script
não entendi essas linhas ...
-
(Resolvido)Dúvida Highcore
- 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)