Ir para conteúdo

guioljf

Membro
  • Registro em

  • Última visita

Tudo que guioljf postou

  1. Vou tentar te ajudar... Quando o 16º entra, essa mensagem é exibida "O jogador FULANO entrou no evento 'Zumbi'! Atualmente X jogadores entraram!" ? Se sim, o problema tá na sua Storage... tenta a solução que loreal mandou. Se não, tenta isso aqui: local config = { playerCount = 2001, -- Global storage for counting the players in the event maxPlayers = 15, -- Max players who can participate } function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if getGlobalStorageValue(config.playerCount) < config.maxPlayers then setGlobalStorageValue(config.playerCount, getGlobalStorageValue(config.playerCount)+1) if getGlobalStorageValue(config.playerCount) == config.maxPlayers then doBroadcastMessage("O evento 'Zumbi' foi lotado! E começerá em alguns instantes.", MESSAGE_STATUS_CONSOLE_BLUE) else doBroadcastMessage("O jogador (" .. getPlayerName(cid) .. ") entrou no evento 'Zumbi'! Atualmente " .. getGlobalStorageValue(config.playerCount) .. " jogadores entraram!", MESSAGE_STATUS_CONSOLE_BLUE) doBroadcastMessage("Restando "..config.maxPlayers - getGlobalStorageValue(config.playerCount).." jogadores para entrar!", MESSAGE_STATUS_CONSOLE_BLUE) end else doTeleportThing(cid, fromPosition, true) doBroadcastMessage("[EVENTO ZUMBI MENSAGEM] está cheio. Já existe " .. config.maxPlayers .. " jogadores participando.", MESSAGE_STATUS_CONSOLE_ORANGE) return false end print(getStorage(config.playerCount) .. " Players in the zombie event.") return true end
  2. Olá... Gostaria da ajuda de vocês... Baixei um OTserv 0.6.4 versão 8.6 bem limpo... Estou tentando adicionar o sistema de change gold nele mas, por algum motivo, não funciona. As alterações foram: actions.xml <!-- Change gold --> <action itemid="2148" event="script" value="changegold.lua"/> <action itemid="2152" event="script" value="changegold.lua"/> <action itemid="2160" event="script" value="changegold.lua"/> changegold.lua function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == 2148 and item.type == 100 then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, 2152, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE) elseif item.itemid == 2152 and item.type == 100 then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, 2160, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL) elseif item.itemid == 2152 and item.type < 100 then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, 2148, 100) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_YELLOW) elseif item.itemid == 2160 then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, 2152, 100) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE) else return false end return true end Já conferi o items.xml e tá tudo ok lá... já até reiniciei o server imaginando que o reload pudesse estar com problema, mas não funcionou. Estou esquecendo algo? Valeu!!

Informação Importante

Confirmação de Termo