Ir para conteúdo

Maenilse

Conde
  • Total de itens

    711
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que Maenilse postou

  1. nada Omega, e muito obrigado por comentar, ja adcionei oque voce pediu pra eu botar no script, substitui o broadcast, e coloquei pra abrir em um arquivo txt, gostei tambem da sua sugestao, que bom q ajudei a intender mas sobre os.date.
  2. daria pra fazer com um broadcast normal em vermelho, mas dai ficaria na tela direto. e eu nem sei fazer funçoes em C/C++, estou aprendendo ainda. a mexer em funçoes.
  3. acho q isso dai teria que editar as source do servidor tambem, nao sei.
  4. Removido.
  5. vlw manolo, eu resolvi postar esse script pois, a area nao tem muito movimento, e nao estao trazendo muito conteudo para ela, ou nao estao podendo, entao eu vou tentar trazer o maximo de conteudos possivel, pra movimentar a area, e tbm pra ajudar os ekz que precisam.
  6. mt obrigado por comentar, e sim é um script simples sim, eu criei ele pra testar como eu estou com, os.time e os.data. entao resolvi posta-lo aqui no xtibia.
  7. Removido.
  8. sim, dps faz um loop, de duas funçoes pro script, uma pra retornar pro id dos items, e outra pra retornar para a chance da porcentagem, e na funçao na qual da chance de porcentagem seria o, math.random[1,100], mas ele tem q retornar verdadeiro, pois se nao so vai cair os items, e nao vai ter a chance.
  9. adcionando uma variavel, e usando um loop aonde ta a variavel de drop items, e utilizando como o SmiX disse, um math.random[1,100] se consegue fazer esse script.
  10. Maenilse

    TFS 9.6

    , e desde quando postaram as sources 9.6, que eu nunca vi um topico? e ó que eu ja virei e re-virei o xtibia todo viu fera.
  11. Maenilse

    TP SCROLL

    o comando q ver os efeitos de god, é o /z. e ao seu pedido, toma ae testa. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. local efeito = 12 local condition1 = createConditionObject(CONDITION_INFIGHT) setConditionParam(condition1, CONDITION_PARAM_TICKS, -1) function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, "" ..a.."", TALKTYPE_ORANGE_1) addEvent(doSendMagicEffect, i*1000, getThingPos(cid), efeito) doAddCondition(cid, condition1) end teleport_thing(cid, pos, 10, 141029, 30) return true end
  12. Maenilse

    TP SCROLL

    estranho, erro na distro? poste aqui se tiver erro.
  13. dexe os lek comentarem fera. pra q excluir.
  14. Maenilse

    TP SCROLL

    /\ botei uma variavel, pra ficar mas facil de ser configurado. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. local efeito = 12 function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, "" ...a..."", TALKTYPE_ORANGE_1) addEvent(doSendMagicEffect, i*1000, getThingPos(cid), efeito) end teleport_thing(cid, pos, 10, 141029, 30) return true end só editar nessa parte. local efeito = 12
  15. Maenilse

    TP SCROLL

    estranho era pra ter funcionado, tenta ae man. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, "" ...a..."", TALKTYPE_ORANGE_1 ) end teleport_thing(cid, pos, 10, 141029, 30) return true end
  16. tente este entao. Compilando e rodando um OTServ em Linux (debian) os cara deram umas corrigida, caso vc encontre erro no post do Luquinh4, pode seguir o do Beeki.
  17. Maenilse

    TP SCROLL

    tenta assim. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, " ..a.." ", TALKTYPE_ORANGE_1 ) end teleport_thing(cid, pos, 10, 141029, 30) return true end
  18. Maenilse

    TP SCROLL

    nao é preciso, reiniciar o ot, basta falar /reload actions, e pronto.
  19. Maenilse

    TP SCROLL

    toma, pelo q intendi. deve ta exato. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, " "..a.." ", TALKTYPE_ORANGE_1 ) end teleport_thing(cid, pos, 10, 141029, 30) return true end
  20. eu poderia criar um script por storage, porem eu teria que usar o script dele de qualquer forma, pra poder adcionar a storage no player, assim q ganhar as insignias, de qualquer forma, eu precisaria do script -'
  21. Maenilse

    TP SCROLL

    @EDIT eskeçe, vacilo meu, toma ae. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, "Você será teleportado em "..a.." segundo(s).", TALKTYPE_ORANGE_1 ) end teleport_thing(cid, pos, 10, 141029, 30) return true end
  22. se voce tiver, o script das insignias ai, poste pra mim, pra eu analisar, e ver se consigo criar um script, do jeito q se pediu.
  23. critico mesmo, cara com 10 post, ta com topico fora das regras, ainda quer falar assim? respeite, talvez alguem venha te ajudar, pq eu nao vo.
  24. eu nao tenho essa distro ae fera. mas se seguir, todo esse tutorial, creio que conseguira compilar. Compilar Otserver Em Linux Ubuntu O Melhor!
  25. Maenilse

    TP SCROLL

    prontinho. function onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz} --Coordenadas para onde o player será teleportado. function teleport_thing(cid, toPos, time, storage, cd) if isCreature(cid) then addEvent(doTeleportThing, time*1000, cid, toPos) addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd) end return true end if getCreatureSkull(cid) >= 3 then return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.") end if not isPremium(cid) then return doPlayerSendCancel(cid, "Você não é premium.") end if getPlayerStorageValue(cid, 141029) > os.time () then return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.") end local a = 10 for i = 1, 10 do a = a - 1 addEvent(doCreatureSay, i*1000, cid, 27, "Você será teleportado em "..a.." segundo(s).", TALKTYPE_ORANGE_1 ) end teleport_thing(cid, pos, 10, 141029, 30) return true end
  • Quem Está Navegando   0 membros estão online

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