Ir para conteúdo

Wuv4

Campones
  • Total de itens

    21
  • Registro em

  • Última visita

Tudo que Wuv4 postou

  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+
  14. Wuv4

    Utevo Res

    Editei o script e testei, agora funciona. Lembrando que o monstro precisa ter a flag convinceable = "1" no xml dele. Se ajudei, REP+
  15. Wuv4

    Utevo Res

    Para resolver mais facilmente seu problema, optei por trocar a magia por uma talkaction, que faz a mesma coisa. Primeiro, desative a magia no spells.xml. Depois adicione essa tag no talkactions.xml: <talkaction words="utevo res" event="script" value="summons.lua"/> Depois, crie um arquivo chamado summons.lua na pasta talkactions/scripts e coloque o seguinte dentro: local maxSummons = 2 local summons = { ["wizard"] = { monsters = {"Rat", "Cave Rat"}, mana = 200}, ["noble"] = { monsters = {"Dragon", "Dragon Lord"}, mana = 300}, } function onSay(cid, words, param, channel) param = string.lower(tostring(param)) if(param == "") then return true end if not summons[param] then doPlayerSendCancel(cid, "This doesn't exists!") return true end if #getCreatureSummons(cid) >= maxSummons then doPlayerSendCancel(cid, "You cant have more than "..maxSummons.." summons!") return true end for _, monster in pairs(summons[param].monsters) do local creature = doSummonCreature(monster, getThingPos(cid)) if not creature or not isCreature(creature) then doPlayerSendCancel(cid, "There is no space for summoning monsters!") return true end doConvinceCreature(cid, creature) end doCreatureAddMana(cid,-summons[param].mana) return true end
  16. Adicione essas duas tags no seu movements.xml <movevent type="StepIn" itemid="103" event="script" value="soundStep.lua"/> <movevent type="StepOut" itemid="103" event="script" value="soundStep.lua"/> Depois, na pasta movements/scripts, crie um arquivo chamado soundStep.lua e adicione o seguinte código dentro : local config = { soundName = "sounds/Centralplains.wav", tileId = 103, storage = 55000, } function onStepIn(cid, item, pos, fromPos) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, config.storage) < 1 then doPlayerSendTextMessage(cid, 26, config.soundName) setPlayerStorageValue(cid,config.storage,1) end end function onStepOut(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, config.storage) == 1 and getTileItemById(position, config.tileId).uid <= 0 then setPlayerStorageValue(cid, config.storage, -1) end end end Não testei, mas creio que vai funcionar, se não funcionar me avise.
  17. Wuv4

    Light Global

    Site não entra, redireciona para o site da Netshoes?
  18. Seria muito legal mesmo, tem até no anime eles reconstruindo a guilda deles e tal. É uma boa ideia para o FTO.
  19. Comecei a assistir o anime esses dias, realmente tá ficando fiel ao anime ... muito bom.
  • Quem Está Navegando   0 membros estão online

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