Ir para conteúdo

Wuv4

Campones
  • Total de itens

    21
  • Registro em

  • Última visita

Sobre Wuv4

Informações

  • Forma que conheci o xTibia
    Sites de Busca
  • Sou
    Programador

Últimos Visitantes

569 visualizações

Wuv4's Achievements

  1. Wuv4

    Shop OTClient

    Discordo.Não é isso que aconteceu aqui, o cara não tem nada feito, ele quer uma coisa pronta, o que ele aprende com isso ? Se ao menos estivesse tentando aprender era uma coisa, mas edir pronta tem que "pastar" mesmo. Tutorial na internet das linguagens não falta. Quem quer faz. Pedir ajuda é uma coisa, aí até concordo em ajudar a pessoa, mas quando só quer tudo "na mãozinha" tem que ficar sem mesmo. Reportei o tópico também, porque isso aqui não é chat nem "Casos de Família" KK
  2. Wuv4

    Pokemon Brutos

    Reformulando: Informações : Outro PDA. Pessoal não aprende que PDA tem um bug crítico no server ... Antes que diga, eu baixei, olhei, é igual todos os outros.
  3. function getLifePercent(cid) return (getCreatureHealth(cid)/getCreatureMaxHealth(cid)) * 100 end
  4. Wuv4

    Kamui

    Testa esse local toPosition = {x = 1248, y = 728, z = 7} --Posicao para qual o player vai ser mandado local spellStorage = 49999 --Storage usado para saber se o player esta indo ou voltando com a magia local storage_x = 50000 --Storage que guarda a posicao x local storage_y = 50001 --Storage que guarda a posicao y local storage_z = 50002 --storage que guarda a posicao z function onCastSpell(cid, var) local toPos = toPosition local pos = getPlayerPosition(cid) local storageSpell = getPlayerStorageValue(cid,spellStorage) if storageSpell > 0 then toPos.x = getPlayerStorageValue(cid, storage_x) toPos.y = getPlayerStorageValue(cid, storage_y) toPos.z = getPlayerStorageValue(cid, storage_z) setPlayerStorageValue(cid, spellStorage, 0) else setPlayerStorageValue(cid, storage_x, pos.x) setPlayerStorageValue(cid, storage_y, pos.y) setPlayerStorageValue(cid, storage_z, pos.z) setPlayerStorageValue(cid, spellStorage, 1) end doTeleportThing(cid, toPos, false) doSendMagicEffect(pos, 21) return true end
  5. local config = { soundName = "sounds/Centralplains.wav", tileId = 103, storage = 55000, musicTime = 118, --em segundos musicTimeStorage = 91821 } function onStepIn(cid, item, frompos, item2, topos) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, config.storage) < 1 then if getPlayerStorageValue(cid, config.musicTimeStorage) > os.time() then return setPlayerStorageValue(cid,config.storage,1) else doPlayerSendTextMessage(cid, 26, config.soundName) setPlayerStorageValue(cid, config.storage, 1) setPlayerStorageValue(cid, config.musicTimeStorage, os.time() + config.musicTime) end end end function onStepOut(cid, item, frompos, item2, topos) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, config.storage) == 1 and item2.itemId ~= config.tileId then setPlayerStorageValue(cid, config.storage, -1) end end
  6. Wuv4

    Kamui

    Fiz um edit ali, testa agora...
  7. na funcao doMoveInArea2, está assim: if pid ~= cid then Deixe assim: if pid ~= cid then if getTilePzInfo(getCreaturePosition(pid)) then return true end
  8. Substitua a talkaction online.lua por essa: local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) } function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local vocationCount = { [1] = 0, [2] = 0, [3] = 0, [4] = 0, } local i, position = 1, 1 local added = false for _, pid in ipairs(players) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end local voc = getPlayerVocation(pid) if voc > 4 then voc = voc-4 end vocationCount[voc] = vocationCount[voc] + 1 if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else added = false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " jogadores online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end str = str .. " \n"..vocationCount[1].." sorcerers, "..vocationCount[2].." druids, "..vocationCount[3].." paladins, "..vocationCount[4].." knights jogando agora." doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end
  9. Por favor poste a funcao : doMoveDano2
  10. Wuv4

    Kamui

    Tentei fazer pra ele voltar só quando usa novamente a magia, acho que funciona... local toPosition = {x = 1248, y = 728, z = 7} --Posicao para qual o player vai ser mandado local spellStorage = 49999 --Storage usado para saber se o player esta indo ou voltando com a magia local storage_x = 50000 --Storage que guarda a posicao x local storage_y = 50001 --Storage que guarda a posicao y local storage_z = 50002 --storage que guarda a posicao z function onCastSpell(cid, var) local toPos = toPosition local pos = getPlayerPosition(cid) local storageSpell = getPlayerStorageValue(cid,spellStorage) if storageSpell > 0 then toPos.x = getPlayerStorageValue(cid, storage_x) toPos.y = getPlayerStorageValue(cid, storage_y) toPos.z = getPlayerStorageValue(cid, storage_z) setPlayerStorageValue(cid, spellStorage, 0) else setPlayerStorageValue(cid, storage_x, pos.x) setPlayerStorageValue(cid, storage_y, pos.y) setPlayerStorageValue(cid, storage_z, pos.z) setPlayerStorageValue(cid, spellStorage, 1) end doTeleportThing(cid, toPos, false) doSendMagicEffect(pos, 21) return true end
  11. Posta essa função ai: doMoveInArea2. É nela que tem que mecher.
  12. local config = { soundName = "sounds/Centralplains.wav", tileId = 103, storage = 55000, musicTime = 118, --em segundos musicTimeStorage = 91821 } function onStepIn(cid, item, frompos, item2, topos) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, config.storage) < 1 then if getPlayerStorageValue(cid, config.musicTimeStorage) > os.time() then return setPlayerStorageValue(cid,config.storage,1) else doPlayerSendTextMessage(cid, 26, config.soundName) setPlayerStorageValue(cid, config.storage, 1) setPlayerStorageValue(cid, config.musicTimeStorage, os.time() + config.musicTime) end end end function onStepOut(cid, item, frompos, item2, topos) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, config.storage) == 1 and item2.itemId ~= config.tileId then setPlayerStorageValue(cid, config.storage, -1) end end
  13. Wuv4

    sourcer

    Da uma olhada em gameservers.h. Tem uma linha assim GameServer(): name("TheForgottenServer"), address(LOCALHOST), Tenta trocar ali o nome =) Se ajudei, REP+
  • Quem Está Navegando   0 membros estão online

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