Ir para conteúdo

Danihcv

Conde
  • Total de itens

    926
  • Registro em

  • Última visita

  • Dias Ganhos

    18

Tudo que Danihcv postou

  1. @@pirilampoo, como assim "feita somente 1 vez por dia"? Vc qr que cada player consiga fazê-la apenas 1 vez por dia, ou quer que só dê pra 1 player fazer em cada dia e aí dps que esse player a fizer ela ser fechada a todos até o dia seguinte, etc etc... Pf, explique um pouco mais.
  2. Tenta aí: *acredito que vc saiba fazer a instalação, ne? ^^ script.lua: function onLogin(player, var) if player:getPremiumDays() < 1 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Você não possui premium account.') else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Você possui '..player:getPremiumDays()..' de premium account restantes.') end return true end Tenta aí: *acredito que vc saiba fazer a instalação, ne? ^^ script.lua: function onLogin(player, var) if player:getPremiumDays() < 1 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Você não possui premium account.') else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Você possui '..player:getPremiumDays()..' de premium account restantes.') end return true end
  3. Tópico movido para dúvidas / pedidos resolvidos.
  4. Tópico movido para dúvidas / pedidos resolvidos.
  5. Tópico movido para dúvidas / pedidos resolvidos.
  6. Tópico movido para dúvidas / pedidos resolvidos.
  7. Tópico movido para dúvidas / pedidos resolvidos.
  8. Tópico movido para dúvidas / pedidos resolvidos.
  9. Tópico Movido Este tópico foi movido de "OTServ → Downloads → Servidores OTServ → OTServ Derivados" para "OTServ → OTserv Geral → Suporte Geral".
  10. Tópico Movido Este tópico foi movido de "OTServ → Downloads → Servidores OTServ → OTServ Derivados" para "OTServ → OTserv Geral → Suporte Geral".
  11. Danihcv

    Tumb Servant

    Tenta assim: local config = { randomText = {"Waaaaaah", "You are too afraid to destroy this object"}, } function onUse(cid, item, fromPosition, itemEx, toPosition) local exaustedSeconds = 30 local player = Player(cid) local chances = math.random(1,1) if item.actionid == 56530 then if(item.itemid == 13736) then if getPlayerStorageValue(cid, 324329) <= os.time() then if chances == 1 then doTransformItem(item.uid, 13495) -- Sumonar Boss doCreatureSay(cid, "The horestis tomb was broken, the boss of the tomb will be reborn in 45 seconds. The barrier will be built from here 10 minutes.", TALKTYPE_ORANGE_1) addEvent(doSummonCreature, 45*1000, "Horestis", {x = 32943, y = 32795, z = 12}) else player:say(config["randomText"][math.random(#config["randomText"])], TALKTYPE_ORANGE_1) player:getPosition():sendMagicEffect(CONST_ME_POFF) setPlayerStorageValue(cid, 324329, os.time()+exaustedSeconds*60) end else doPlayerSendCancel(cid, "You need wait 30 minutes to use again.") end end elseif item.actionid == 56531 then if(item.itemid == 13500) then if(getGlobalStorageValue(56531) < 1) then if getPlayerStorageValue(cid, 324330) <= os.time() then if chances == 1 then doTransformItem(item.uid, 13495) -- Sumonar Boss doCreatureSay(cid, "The horestis tomb was broken, the boss of the tomb will be reborn in 45 seconds. The barrier will be built from here 10 minutes.", TALKTYPE_ORANGE_1) addEvent(doSummonCreature, 45*1000, "Horestis", {x = 32943, y = 32795, z = 12}) else player:say(config["randomText"][math.random(#config["randomText"])], TALKTYPE_ORANGE_1) player:getPosition():sendMagicEffect(CONST_ME_POFF) setPlayerStorageValue(cid, 324330, os.time()+exaustedSeconds*60) end else doPlayerSendCancel(cid, "You need wait 30 minutes to use again.") end else doPlayerSendCancel(cid, "You need to break the first jar.") end end elseif item.actionid == 56532 then if(item.itemid == 13500) then if(getGlobalStorageValue(56532) < 1) then if getPlayerStorageValue(cid, 324331) <= os.time() then if chances == 1 then doTransformItem(item.uid, 13495) -- Sumonar Boss doCreatureSay(cid, "The horestis tomb was broken, the boss of the tomb will be reborn in 45 seconds. The barrier will be built from here 10 minutes.", TALKTYPE_ORANGE_1) addEvent(doSummonCreature, 45*1000, "Horestis", {x = 32943, y = 32795, z = 12}) else player:say(config["randomText"][math.random(#config["randomText"])], TALKTYPE_ORANGE_1) player:getPosition():sendMagicEffect(CONST_ME_POFF) setPlayerStorageValue(cid, 324331, os.time()+exaustedSeconds*60) end else doPlayerSendCancel(cid, "You need wait 30 minutes to use again.") end else doPlayerSendCancel(cid, "You need to break the second jar.") end end elseif item.actionid == 56533 then if(item.itemid == 13500) then if(getGlobalStorageValue(56533) < 1) then if getPlayerStorageValue(cid, 324332) <= os.time() then if chances == 1 then doTransformItem(item.uid, 13495) -- Sumonar Boss doCreatureSay(cid, "The horestis tomb was broken, the boss of the tomb will be reborn in 45 seconds. The barrier will be built from here 10 minutes.", TALKTYPE_ORANGE_1) addEvent(doSummonCreature, 45*1000, "Horestis", {x = 32943, y = 32795, z = 12}) else player:say(config["randomText"][math.random(#config["randomText"])], TALKTYPE_ORANGE_1) player:getPosition():sendMagicEffect(CONST_ME_POFF) setPlayerStorageValue(cid, 324332, os.time()+exaustedSeconds*60) end else doPlayerSendCancel(cid, "You need wait 30 minutes to use again.") end else doPlayerSendCancel(cid, "You need to break the third jar.") end end elseif item.actionid == 56534 then if(item.itemid == 13736) then if(getGlobalStorageValue(56534) < 1) then if getPlayerStorageValue(cid, 324333) <= os.time() then if chances == 1 then doTransformItem(item.uid, 13495) -- Sumonar Boss doCreatureSay(cid, "The horestis tomb was broken, the boss of the tomb will be reborn in 45 seconds. The barrier will be built from here 10 minutes.", TALKTYPE_ORANGE_1) addEvent(doSummonCreature, 45*1000, "Horestis", {x = 32943, y = 32795, z = 12}) else player:say(config["randomText"][math.random(#config["randomText"])], TALKTYPE_ORANGE_1) player:getPosition():sendMagicEffect(CONST_ME_POFF) setPlayerStorageValue(cid, 324333, os.time()+exaustedSeconds*60) end else doPlayerSendCancel(cid, "You need wait 30 minutes to use again.") end else doPlayerSendCancel(cid, "You need to break the third jar.") end end end return true end ~Tópico movido pra área correta
  12. Tópico excluído, a pedido do autor.
  13. @@LocAnderson, tranquilo. Quando vc perceber que bugou e criou sozinho um topico duplo, basta usar o botão de Denunciar (que se encontra no rodapé de cada post) e informar o ocorrido.
  14. Double topic.
  15. @@LocAnderson, amigo, pf tome cuidado na hora de criar um tópico novo. Atente-se para o seguinte: é proibido criar um tópico duplicado, ou seja, se vc já tiver criado um tópico e gostaria que ele voltasse ao topo da lista de "posts recentes", basta dar um UP no topico existente (basta entrar no topico e postar: UP). @@kaleudd, aprecio sua vontade de qrer ver o fórum em ordem. Porém, quando vc ver alguma situação que não se enquadre nas regras, basta apenas reportar (como vc fez). O que qro dizer é que vc ñ precisa postar no topico dizendo que o membro está fora das regras, pois isto é considerado sub-moderação. Agradeço a compreensão de todos. Abraços.
  16. @@Eduzinhonho, disponha. ^^ Se eu souber o que fazer, eu respondo lá. sahuahusa
  17. @@Eduzinhonho, putz cara... Não manjo dessa distro... Mas pode ser que o script dessa forma aqui funcione pra vc: local pointObj = 2160 --id do item "points" function getAccountPoints(cid) local res = db.getResult('SELECT `premium_points` FROM `accounts` WHERE id='..getPlayerAccountId(cid)..'') if(res:getID() == -1) then return false end local ret = res:getDataInt("premium_points") res:free() return tonumber(ret) end function onSay(cid, words, param) if (words == '!sacar') then if param ~= "" then if tonumber(param) ~= nil then if 0 >= tonumber(param) then doPlayerSendCancel(cid, "O valor precisa ser acima de zero.") elseif 0 < tonumber(param) and tonumber(param) <= getAccountPoints(cid) then doPlayerAddItem(cid, pointObj, tonumber(param)) db.executeQuery('UPDATE `accounts` SET `premium_points`='..getAccountPoints(cid) - tonumber(param)..' WHERE id='.. getPlayerAccountId(cid)..'') newPoints = getAccountPoints(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você ainda possui '..newPoints..' premium points em sua conta.') else doPlayerSendCancel(cid, "Você não tem tantos premium points assim.") end else doPlayerSendCancel(cid, "O valor precisa ser um numero.") end else doPlayerSendCancel(cid, "Você precisa especificar um valor.") end elseif (words == '!saldo') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Seu saldo no shopping atual é de '..getAccountPoints(cid)..' Premium points.') elseif (words == '!depositar') then if param ~= "" then if tonumber(param) ~= nil then if 0 >= tonumber(param) then doPlayerSendCancel(cid, "O valor precisa ser acima de zero.") elseif 0 < tonumber(param) and tonumber(param) <= getPlayerItemCount(cid, pointObj) then doPlayerRemoveItem(cid, pointObj, tonumber(param)) db.executeQuery('UPDATE `accounts` SET `premium_points`='..getAccountPoints(cid) + tonumber(param)..' WHERE id='.. getPlayerAccountId(cid)..'') newPoints = getAccountPoints(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você acabou de depositar '..param..' premium points no shopping. Seu saldo agora é de '..newPoints..' premium points.') else doPlayerSendCancel(cid, "Você não tem tantos premium points assim.") end else doPlayerSendCancel(cid, "O valor precisa ser um numero.") end else doPlayerSendCancel(cid, "Você precisa especificar um valor.") end end return true end
  18. @@Eduzinhonho, qual distro vc usa?
  19. <p>Tópico movido para Tópicos Resolvidos (Clientes)</p>
  20. Tópico Movido Este tópico foi movido de "OTServ → Clients" para "OTServ → Clients → Suporte Clientes".
  21. Muito boa iniciativa. Já tava na hora de dar uma nova cara à escolinha.
  22. @, por favor, coloque o scan dos arquivos que vc disponibilizou para download. (vc colocou o scan do site 4shared...) #EDIT: Adicionei o scan correto.
  23. Tópico movido para lixeira, qualquer dúvida entre em contato com qualquer membro da equipe.
  24. Tópico movido para dúvidas / pedidos resolvidos.
  25. Danihcv

    Ajude Me Ncp

    Não deu nenhum erro? Qual a distro que vc usa? Vc entende de scripts? Pq eu ñ manjo de ots derivados, e ñ sei dizer se esse npc foi feito corretamente em certas partes (envolvendo uma variavel global chamada torneio)...
  • Quem Está Navegando   0 membros estão online

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