
Tudo que vankk postou
- Baiak VIPs | Mapa simples editado, Teleports, Sistema VIP
-
[HELP] Permissão de Quest
Tira as storage dos scripts ue
-
[DUVIDA] VPS LINUX VS WINDOWS
http://www.tibiaking.com/forum/topic/36853-aprendendo-vpsdedicadoshospedagens/
-
[DUVIDA] VPS LINUX VS WINDOWS
Tudo que for em Linux sempre será superior para jogos, devido a ele trabalhar melhor com tais programas. O TFS, em linux ele é muito mais estável e também muito melhor em termos de proteção, etc.
-
Como Colocar Lvl No Piso
A partir do momento que você da sua opinião dizendo: "cade dia mais o tk tá ficando um lixo com esses novos Suporter" você está falando o que quer. Você falou o que queria. Se você estiver falando de mim ou não, profundamente eu não ligo, porque a minha parte eu fiz, você pediu um script e eu te mandei, se você não sabe registrar uma tag, o problema não é meu - na minha época quando eu não sabia programar, se alguém me mandasse o script do jeito que eu te mandei, completo, eu ia morrer de felicidade, porque ninguém nunca me passou code completos, é apenas uma linha de um code, e falavam, se vira - mas enfim, não vem ao acaso, estou falando em nome de todos ( @Larissa Azhaurn @p e o p l e e eu), ninguém é obrigado a ajudar ninguém, estamos fazendo isso aqui por motivos diferentes. E você acha que o TibiaKing é para ajudar só? É por isso que a comunidade de Open Tibia infelizmente não vai para frente, por pessoas com pensamento pequeno igual o seu, infelizmente isso me deixa muito triste. Espero que um dia você perceba realmente o que você está falando.
-
Como Colocar Lvl No Piso
Só porque eu sou "suporter", não quer dizer que eu sou obrigado a te ajudar ou te explicar tudo o que você deve fazer porque você quer um script. Se você não sabe configurar uma tag, por favor, saia do mundo do Open Tibia, porque não faz falta. Esse tipo de pessoa que vem ao TibiaKing apenas para pedir suporte para scripts, não ajuda a comunidade em nada, me da nojo. Se você não está satisfeito com os suporter, aprende LUA/PHP/SQL/etc e não posta pedidos de ajuda no TK Fala o que quer, ouve o que não quer.
- Como Colocar Lvl No Piso
-
[TFS 1.x] Freeze system
Como não possuía um freeze system para o TFS 1.x o Slavi Dodo decidiu fazer um, ele funciona da seguinte maneira, você freeza um jogador Não se move e não casta spell. Não faça modificações se você não tem a completa consciência do que você está fazendo!! Em creature.cpp mexa na substitua void Creature::onWalk() { if (getWalkDelay() <= 0) { Direction dir; uint32_t flags = FLAG_IGNOREFIELDDAMAGE; if (getNextStep(dir, flags)) { ReturnValue ret = g_game.internalMoveCreature(this, dir, flags); if (ret != RETURNVALUE_NOERROR) { if (Player* player = getPlayer()) { player->sendCancelMessage(ret); player->sendCancelWalk(); } forceUpdateFollowPath = true; } } else { if (listWalkDir.empty()) { onWalkComplete(); } stopEventWalk(); } } if (cancelNextWalk) { listWalkDir.clear(); onWalkAborted(); cancelNextWalk = false; } if (eventWalk != 0) { eventWalk = 0; addEventWalk(); } } por void Creature::onWalk() { if (getWalkDelay() <= 0) { Direction dir; uint32_t flags = FLAG_IGNOREFIELDDAMAGE; if (Player* player = getPlayer()) { bool freezed = player->isFreezed(); if (!freezed) { if (getNextStep(dir, flags)) { ReturnValue ret = g_game.internalMoveCreature(this, dir, flags); if (ret != RETURNVALUE_NOERROR) { player->sendCancelMessage(ret); player->sendCancelWalk(); forceUpdateFollowPath = true; } } else { if (listWalkDir.empty()) { onWalkComplete(); } stopEventWalk(); } } else { stopEventWalk(); } } else { if (getNextStep(dir, flags)) { ReturnValue ret = g_game.internalMoveCreature(this, dir, flags); if (ret != RETURNVALUE_NOERROR) { forceUpdateFollowPath = true; } } else { if (listWalkDir.empty()) { onWalkComplete(); } stopEventWalk(); } } } if (cancelNextWalk) { listWalkDir.clear(); onWalkAborted(); cancelNextWalk = false; } if (eventWalk != 0) { eventWalk = 0; addEventWalk(); } } em player.h procure por: bool isInGhostMode() const { e coloque na linha abaixo: bool isFreezed() const { return freezed; } void switchFreezed() { freezed = !freezed; } procure por: bool ghostMode; e coloque na linha abaixo: bool freezed; em luaScript.h adicione as linhas abaixo aonde você ver algo parecido static int luaPlayerSetFreezed(lua_State* L); static int luaPlayerIsFreezed(lua_State* L); em luaScript.cpp procure por: registerMethod("Player", "setGhostMode", LuaScriptInterface::luaPlayerSetGhostMode); e adicione na linha abaixo: registerMethod("Player", "isFreezed", LuaScriptInterface::luaPlayerIsFreezed); registerMethod("Player", "setFreezed", LuaScriptInterface::luaPlayerSetFreezed); procure por: int LuaScriptInterface::luaPlayerSetGhostMode(lua_State* L) e adicione isso abaixo: int LuaScriptInterface::luaPlayerSetFreezed(lua_State* L) { // player:luaPlayerSetFreezed(enabled) Player* player = getUserdata<Player>(L, 1); if (!player) { lua_pushnil(L); return 1; } bool enabled = getBoolean(L, 2); if (player->isFreezed() == enabled) { pushBoolean(L, true); return 1; } player->switchFreezed(); pushBoolean(L, true); return 1; } int LuaScriptInterface::luaPlayerIsFreezed(lua_State* L) { // player:isFreezed() const Player* player = getUserdata<const Player>(L, 1); if (player) { pushBoolean(L, player->isFreezed()); } else { lua_pushnil(L); } return 1; } actions.xml <action itemid="2282" script="freeze.lua"/> freeze.lua function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if exhaustion.get(cid,storage) then player:sendCancelMessage("You are echausted.") return true end if getTilePzInfo(toPosition) == true then player:sendCancelMessage("You are on pz.") return true end if not isPlayer(itemEx.uid) or cid == itemEx.uid then player:sendCancelMessage("You can only use this on players.") return true end local target = Player(itemEx.uid) if target:isFreezed() then player:sendCancelMessage("Target is already freezed") return true end target:setFreezed(true) target:say("Freezed!", TALKTYPE_MONSTER_SAY) exhaustion.set(cid,storage,cooldown) addEvent(removeFreeze, 3000, target.uid) return true end function removeFreeze(uid) Player(uid):say("Melted", TALKTYPE_MONSTER_SAY) Player(uid):setFreezed(false) end Se quiser mudar o item, mude no actions.xml "2282" Créditos: Slavi Doido
- [Resolvido] Hunger Games
-
Como Colocar Lvl No Piso
? function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end if player:getLevel() < 100 then player:teleportTo(fromPosition) position:sendMagicEffect(CONST_ME_TELEPORT) fromPosition:sendMagicEffect(CONST_ME_TELEPORT) player:say('You are too low level to enter in this place.', TALKTYPE_MONSTER_SAY) return true end local destination = Position(1, 2, 7) player:teleportTo(destination) position:sendMagicEffect(CONST_ME_TELEPORT) destination:sendMagicEffect(CONST_ME_TELEPORT) return true end
-
Erro 100 - O E-MAIL não está no formato correto.
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: WebSites OTServ > OTServ > Tutoriais de Websites Para: Suporte OTServ > OTServ > Suporte de WebSites
-
COMO TIRAR ISSO ?
Em algum scripts no creaturescripts, procure no login.lua
-
Npc que resete as Storage.
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Monsters e NPCs Para: Suporte OTServ > OTServ > Suporte de Scripts Tente isso.. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if(not npcHandler:isFocused(cid)) then return false elseif msgcontains(msg, "reset") then local str = getPlayerStorageValue(cid, quest) if(srt(cid,3917) == 1 and srt(cid,3918) == 1 and srt(cid,3919) == 1 and srt(cid,3920) == 1 and srt(cid,3921) >= 1 and srt(cid,3922) == 1 and srt(cid,3923) >= 1 and srt(cid,3924) == 1 then) then npcHandler:say("Agora voce pode repetir os gduelos nos gyms.", cid) setPlayerStorageValue(cid,3917,0) setPlayerStorageValue(cid,3918,0) setPlayerStorageValue(cid,3919,0) setPlayerStorageValue(cid,3920,0) setPlayerStorageValue(cid,3921,0) setPlayerStorageValue(cid,3922,0) setPlayerStorageValue(cid,3923,0) setPlayerStorageValue(cid,3924,0) talkState[talkUser] = 0 else npcHandler:say("Agora voce pode repetir os gduelos nos gyms.", cid) Voce ja resetou os gyms. talkState[talkUser] = 0 end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule)
- Nao Consigo Colocar Foto Nos Itens Do Shop
-
promotion reconfigurar
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Monsters e NPCs Para: Suporte OTServ > OTServ > Suporte de Scripts
-
Exame chunin
Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
-
Character.php dando erro mesmo carregada
>> No such file or directory Não existe o arquivo >> foreach().. Não possui alguma estrutura na tabela.
- como fazer uma area vip
-
[DOWNLOAD] Pixel editor
Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
-
[TFS 1.x] Server save clean map
Esse script é para quem não quer ter um server save que reinicie o servidor etc, que precisa de auto-restarter, ele simplesmente, fecha do servidor, da clean, e abre novamente, dependendo da máquina, é questão de milésimo de segundos para estar de volta. local function webringtheworld() Game.setGameState(GAME_STATE_CLOSED) cleanMap() Game.setGameState(GAME_STATE_NORMAL) end function onTime(interval) Game.broadcastMessage('The server will shutdown in 10 minutes.', MESSAGE_STATUS_WARNING) addEvent(Game.broadcastMessage, 5 * 60 * 1000, 'The server will shutdown in 5 minutes.', MESSAGE_STATUS_WARNING) addEvent(Game.broadcastMessage, 7 * 60 * 1000, 'The server will shutdown in 3 minutes.', MESSAGE_STATUS_WARNING) addEvent(Game.broadcastMessage, 9 * 60 * 1000, 'The server will shutdown in 1 minute.', MESSAGE_STATUS_WARNING) addEvent(webringtheworld, 10 * 60 * 1000) return true end Seta no globalevents o timer com 10 minutos a menos do tempo que você queria o server save. E.g: Server save as 6 a.m então coloca o timer no globalevents.xml para as 5:50 a.m
-
[Gesior ACC] NTO Template
Brinks!! Toma esse rep ai pelo conteúdo.
-
[TFS 1.x] Adicionar points por X money
Então, não tinha nada para fazer, e nenhum script em mente, então eu decidi fazer algum script meio zuado. Ele funciona da seguinte maneira: Você digita um comando, e ele remove o dinheiro do player, e adiciona X points para esse player. Basicamente, é isso. Testado em TFS 1.2 local function addPoints(cid, count) db.query('UPDATE accounts SET premium_points = premium_points+'.. count ..' WHERE id = ' .. getAccountNumberByPlayerName(getCreatureName(cid))) end function onSay(cid, words, param) local cost, player, points = 100000, Player(cid), 10 if(player:removeMoney(cost)) then addPoints(cid, points) player:say("You have received ".. points .." premium points!", TALKTYPE_MONSTER_SAY) player:getPosition():sendMagicEffect(39) else player:getPosition():sendMagicEffect(CONST_ME_POFF) player:sendCancelMessage("You don't have enough money.") end end Se você quiser diminuir a quantidade de dinheiro/points, você modifica na linha 6 do script. local cost, player, points = 100000, Player(cid), 10 Em vermelho = quantidade de dinheiro Em azul = quantidade de points
- Erro ao compilar
- Compilando
- parser error ao iniciar servidor na vps