Ir para conteúdo

WooX

Héroi
  • Registro em

  • Última visita

Tudo que WooX postou

  1. function onUse(cid, item, fromPosition, target, toPosition, isHotkey) if (getPlayerVocation(cid) == 2) or (getPlayerVocation(cid) == 6) then if item.uid == 7528 then PlayerLearnInstantSpell(cid, "Gran Nature") doPlayerRemoveItem(cid, item.uid, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ganhou a nova magia") end else doPlayerSendCancel(cid, "Voce nao e druida") end return true end
  2. Não muda porque precisa da parte onKill pra alterar a skull, de qualquer maneira pra esse sistema rodar 100% você precisa de alteração nas sources. Se tivesse procurado mais 1 pouquinho teria achado, testa ai.
  3. WooX postou uma resposta no tópico em Suporte Tibia OTServer
    Em 1 outro fórum ai que estou proibido de citar nome por causa de uns regras bobas ai você pode encontrar um RME que abre os arquivos, na verdade no mesmo tópico que está os arquivos da CIP só que algumas paginas a frente.
  4. WooX postou uma resposta no tópico em Suporte Tibia OTServer
    No tópico já tem as distros compiladas.
  5. WooX postou uma resposta no tópico em Suporte Tibia OTServer
    É essa source que está usando? Por que se não for, acho que deveria, se não me engano ela tem esse problema corrigido.
  6. Eu esqueci 1 virgula. local config = { Monsters = {"Rat", "Bug", "Spider"}, -- Monstros que podem ser encontrados Exhausted = 120, -- Tempo em segundos TimeStorage = 4640, Level = 20 -- Level Minimo } function onUse(cid, item, frompos, item2, topos) local player = Player(cid) local position = player:getPosition() if player:getStorageValue(TimeStorage) >= os.time then player:sendCancel(cid, 'You can only look for monster again after '.. exhaustion.get(cid, 4640) .. ' seconds.') return true end if player:getLevel() >= config.Level then player:setStorageValue(TimeStorage, os.time + Exhausted) player:SendTextMessage(MESSAGE_EVENT_ADVANCE, "You found a ".. Monsters[math.random(1, #Monsters)] ..".") Game.createMonster(Monsters[math.random(1, #Monsters)], position) else player:sendCancel('You are too weak to look for monsters here, come back when you get level '.. level .. '.') end return true end
  7. Ta explicado o porque de tanto erro. Tenta agora. local config = { Monsters = {"Rat", "Bug", "Spider"}, -- Monstros que podem ser encontrados Exhausted = 120, -- Tempo em segundos TimeStorage = 4640 Level = 20 -- Level Minimo } function onUse(cid, item, frompos, item2, topos) local player = Player(cid) local position = player:getPosition() if player:getStorageValue(TimeStorage) >= os.time then player:sendCancel(cid, 'You can only look for monster again after '.. exhaustion.get(cid, 4640) .. ' seconds.') return true end if player:getLevel() >= config.Level then player:setStorageValue(TimeStorage, os.time + Exhausted) player:SendTextMessage(MESSAGE_EVENT_ADVANCE, "You found a ".. Monsters[math.random(1, #Monsters)] ..".") Game.createMonster(Monsters[math.random(1, #Monsters)], position) else player:sendCancel('You are too weak to look for monsters here, come back when you get level '.. level .. '.') end return true end
  8. Só uma duvida, que distro você ta usando? pelas funções eu diria que é TFS 1.x
  9. Não testado. local config = { Monsters = {"Rat", "Bug", "Spider"}, -- Monstros que podem ser encontrados Exhausted = 120, -- Tempo em segundos Monster = Monsters[math.random(1, #Monsters)], Level = 20 -- Level Minimo } function onUse(cid, item, frompos, item2, topos) if exhaustion.get(cid, 4640) then doPlayerSendCancel(cid, 'You can only look for monster again after '.. exhaustion.get(cid, 4640) .. ' seconds.') return true end if getPlayerLevel(cid) >= config.Level then exhaustion.set(cid, 4640, Exhausted) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a ".. config.Monster ..".") doCreateMonster(config.Monster, getThingPos(cid)) else doPlayerSendCancel(cid, 'You are too weak to look for monsters here, come back when you get level '.. level .. '.') end return true end
  10. Posta o script para que possamos te ajudar.
  11. A onde está: Mude para:
  12. Ou você pode simplesmente copiar e colar.
  13. CSS talvez, posta seu basic_d.css
  14. Haha, a pagina é minha, provavelmente a encontrou no site do meu servidor. Como não há nada de importante nela, não vejo porque não te ajudar com isso. Aqui está. addons.php
  15. Olha, ter tem sim, mas eu recomendo você utilizar alguma distro derivada do Debian (Ubuntu, etc).
  16. --<action itemid="xxxx" event="script" value="other/vipitem.lua"/>-- local amount = 3 local days = amount*60*24*60 function onUse(cid, item, fromPosition, itemEx, toPosition) vip.addVipByAccount(getPlayerAccount(cid), days) doCreatureSay(cid, "Parabéns! Você recebeu ".. amount .." dias VIP!", TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(cid), 30) doRemoveItem(item.uid, 1) return true end
  17. function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = { x =167, y = 51, z = 7}, kickMsg = "Você não é VIP, para saber mais como ter acesso a áreas e itens exclusivos, acesse o nosso site!", enterMsg = "Bem vindo a área VIP, agradecemos a sua doação!", enterEffect = CONST_ME_MAGIC_RED, } if isPlayer(cid) == true then if vip.hasVip(cid) == false then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) end return true end end
  18. Função Seu eu conhecesse as funções do TFS 1.x eu faria a Talkaction pra você.
  19. function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = { x =167, y = 51, z = 7}, kickMsg = "Você não é VIP, para saber mais como ter acesso a áreas e itens exclusivos, acesse o nosso site!", enterMsg = "Bem vindo a área VIP, agradecemos a sua doação!", enterEffect = CONST_ME_MAGIC_RED, } if isPlayer(cid) == true then if vip.accountHasVip(getPlayerAccount(cid)) == false then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) end return true end end
  20. Tava dando 1 olhada na lib do seu vip system, acho que assim deve funcionar. --<action itemid="xxxx" event="script" value="other/vipitem.lua"/>-- local amount = 3 function onUse(cid, item, fromPosition, itemEx, toPosition) vip.addVipByAccount(getPlayerAccount(cid), amount) doCreatureSay(cid, "Parabéns! Você recebeu ".. amount .." dias VIP!", TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(cid), 30) doRemoveItem(item.uid, 1) return true end
  21. Me manda 1 print de como ta a estrutura dessa tabela.
  22. Não testado. function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = { x =167, y = 51, z = 7}, kickMsg = "Você não é VIP, para saber mais como ter acesso a áreas e itens exclusivos, acesse o nosso site!", enterMsg = "Bem vindo a área VIP, agradecemos a sua doação!", enterEffect = CONST_ME_MAGIC_RED, storage = 15372 } if isPlayer(cid) == true then if vip.hasVip(cid) == FALSE or getPlayerStorageValue(cid, storage) < 1 then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) return end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) return true end end
  23. No passado eu tinha 1 script OnEquip que permitia certos items somente para players VIP, o script funcionava corretamente mas não dava os atributos. Esta duvida me persegue até hoje também, alguém pode nos ajudar?
  24. Muito bom Tony, não esperava nada menos vindo de você.
  25. Projeto com potencial, se conseguir manter o "gás" nas correções vai estar pronto mais rápido do que imagina.

Informação Importante

Confirmação de Termo