Ir para conteúdo

notle2012

Conde
  • Total de itens

    884
  • Registro em

  • Última visita

  • Dias Ganhos

    8

Tudo que notle2012 postou

  1. http://www.4shared.com/get/tf7Da3xc/pokemon_centurion_40_oficial.html e http://www.mediafire.com/download/imcb81wtwd61v5p/centurion+4.0.rar
  2. notle,Skanet,thecaos
  3. sou novato nessa área + vou participar ^.^
  4. item necessário vai em data\actions\scripts criei genio.lua coloca isso --config by notle genio = "Genio" -- aqui coloca nome do NPC temp = 25 -- tempo que genio vai durar (1 por segundos) fala = {"to saindo","bye bye"} -- as fala que vai fazer perto de sair effect = {18,19,21,22,23,24} -- efeitos storage = 415231 --config by notle function onUse(cid, item, frompos, item2, topos) if getGlobalStorageValue(cid,storage) == 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Desculpe Alguem Invoco "..genio.." tente + tarde") return true end if getGlobalStorageValue(cid,storage) == -1 then setGlobalStorageValue(storage, 1) doRemoveItem(item.uid,1) doCreatureSay(cid,"Eu Invoco "..genio.." apareça",TALKTYPE_MONSTER) doSendMagicEffect(getThingPos(cid),6) addEvent(genios,400,cid,1) for i = 1,temp do addEvent(genios,i*950,cid,2) end addEvent(genios,temp*750,cid,3) addEvent(genios,temp*850,cid,4) addEvent(genios,temp*1000,cid,5) end end function genios(cid,x) if x == 1 then doCreateNpc(""..genio.."", getCreaturePosition(cid)) elseif x == 3 then doCreatureSay(getCreatureByName(genio),""..fala[1].."",TALKTYPE_MONSTER) elseif x == 4 then doCreatureSay(getCreatureByName(genio),""..fala[2].."",TALKTYPE_MONSTER) elseif x == 5 then doSendMagicEffect(getThingPos(getCreatureByName(genio)), CONST_ME_TELEPORT) doRemoveCreature(getCreatureByName(genio)) setGlobalStorageValue(storage, -1) else doSendMagicEffect(getThingPos(getCreatureByName(genio)), effect[math.random(1,#effect)]) end end actions.xml <action itemid="2356" script="genio.lua"/> ressumindo esse item cria um npc que fica tempo x que pode ser editado no script não esquesão de edita nome do npc em genio = "Genio" -- aqui coloca nome do NPC espero que gostem rsrs fui...
  5. function onUse(cid, item, frompos, item2, topos) doCreatureAddMana(cid, getCreatureMaxMana(cid)) doSendAnimatedText(getPlayerPosition(cid),"+"..math.floor(getCreatureMaxMana(cid)).." Mana", math.random(64,65)) addEvent(lx,300,cid) return true end function lx (cid) doCreatureAddHealth(cid,getCreatureMaxHealth(cid)) doSendAnimatedText(getPlayerPosition(cid),"+"..math.floor(getCreatureMaxHealth(cid)).." Life", math.random(144,145)) return true end actions.xml <action actionid="ID-QUE-COLOCO-NO-MAP-EDITOR" script="nomedoarquivo.lua"/> vai fica assim lembrando que esse test tem 520 de mana e 520 de life rsrs
  6. ta certo mais vc esqueceu de fecha function fecho apenas if
  7. mudar 640 x 458 para essa 640 x 480
  8. você já aprendeu Loops o mais usando é for deixa aqui como sair os textos for i = 1,10 do -- vai rodar 10 vez local text = {"XTibia","Eks","EksTibia","otserver","notle2012","PsyMcKenzie"} random = text[math.random(1,#text)] print (i.."ª "..random) end em Order 1ª 2ª 3ª 4ª 5ª e por ai vai EDIT local letras = {"O","K","D","X","N","Z","I","C","L","B","\n","D","E","N","L","O","T","E","O","L","N"} for i = #letras,1 ,-2 do print (letras[i]) end
  9. local text = {"XTibia","Eks","EksTibia"} -- uma tabela de textos random = text[math.random(1,#text)] -- variável que vai pega um texto aleatoriamente por fim ficaria assim doSendAnimatedText(toPosition, ""..random.."", TEXTCOLOR_GREEN)
  10. exemplo local chance = 30 if (math.random(0,100) < chance) then if (math.random(0,100) < chance) then -- aqui vai ver se math.random(0,100) de 0 a 100 o que sair vai ser menor que chance no caso se é menor que 30 pq coloquei chance = 30 se for então vai acontecer algo explica de outra maneira if se math.random(0,100) aqui vai sair aleatoriamente 0 a 100 < menor chance aqui é uma variável then então
  11. ver tutor http://www.xtibia.co...ost__p__1498235 mais vamos tenta explica doPlayerAddItem(cid = player, itemid = iddoitem,count = quantos que vai ganha) certo seria assim local items = {1234, 5678} doPlayerAddItem(cid,items[math.random(1,#items)], math.random(1, 2)) na parte que ta items[math.random(1,#items)] que vai sortear os ids e outra parte que ta math.random(1, 2) que vai ser 1 ou 2 items na parte que vc apostou ta doPlayerAddItem(cid,itemGain, math.random(1, 2)) provavelmente deve ser uma variável que ta levando id do item exemplo itemGain = 2160 ai ia dar 1 ou 2 crystal para player
  12. eu achei tutorial bom vai ajudar quem não entende... mais pra quem já entende fico faltando umas coisas tipo devia dizer como usa math.random com string não só com number poderia mostras as pessoas que não entende como são sorteados os números. para eles ver rapido no print exemplo for i = 1,5 do print (math.random(1, 20)) end nota que nesse saiu 1 12 4 17 12 e se tenta de novo vai sair os mesmo numero pra deixa mais realista o ressutado da pra deixa assim math.randomseed(os.time()) for I = 1, 5 do random = math.random(1,20) print(random) end pronto agora sempre que for ver os numeros vai sair outros
  13. notle2012

    Quest

    deve ser isso http://www.xtibia.com/forum/topic/98690-colocando-quests-no-quest-log-quest-system/
  14. gostei da Entrevista e tbm que Demonbholder falou sobre Socket esses dia eu tava lendo um pouco sobre Socket é oque eu entendi sobre Socket faz tipo msn um servidor e um ciente ​bem interessante
  15. ele é assim mesmo dificinho de usa abre cliente procura por DisableServer: server=%s error=%d nessa linha que vai ta ip do cliente só ir pra lá <<<<<<<<< viu na mesma linha 11541 no meu caso ip 127.0.0.1 e tbm linha é 11541 no meu caso no seu pode ser outra linha espero ter ajudando
  16. tem sim com programa NOTEPAD++ entre outros
  17. ai vai tirar a realidade do ot server pois tem que demora mesmo pra heala os paladins... mais muito bom pra quem quer um server de war...
  18. @GuizitoG de bot tem sim mais a rune acaba eu deixei opção no script de deixa rune infinita se quiser tbm... se quiser da pra adiciona um tempo pra usa exemplo a cada 10 segundos
  19. da não pq tem que click na runa depois no player
  20. fala galera como vai vcs? bom saindo do forno agora criei mais um sistema bem legal nome troca troca como ele funciona vocês vai criar uma runa que assim que vc click no player vai troca a área do player x pela a área do player y no caso vc player x vai em data\lib entra no 050-function coloca isso la lembrando tem uns ot que nome é só function function savePosition(cid) RETORNAR = {x = getPlayerStorageValue(cid, 20004), y = getPlayerStorageValue(cid, 20005), z = getPlayerStorageValue(cid, 20006)} local PLAYER = getPlayerGUID(cid) addEvent(function() if isCreature(cid) then setPlayerStorageValue(PLAYER, 20007, 0) else db.executeQuery("DELETE FROM `player_storage` WHERE `key` = 20003 AND `player_id` = " .. getPlayerGUID(cid) .. ";") end end) end agora vai em data\actions\scripts\ cria nomedarune.lua cola la function onUse(cid, item, frompos, item2, topos) rune = true -- rune infinita muda para false if not isPlayer(item2.uid) then doPlayerSendTextMessage(cid,27,"click no player não em bicho") return true end if getPlayerStorageValue(cid, 20007) <= 0 then setPlayerStorageValue(cid, 20004, getCreaturePosition(cid).x) setPlayerStorageValue(cid, 20005, getCreaturePosition(cid).y) setPlayerStorageValue(cid, 20006, getCreaturePosition(cid).z) setPlayerStorageValue(cid, 20007, 1) savePosition(cid) doTeleportThing(cid,getThingPos(item2.uid)) doPlayerSendTextMessage(cid,27,"Você Trocou De Lugar Com ["..getCreatureName(item2.uid).."]") doSendMagicEffect(getThingPos(cid),28) doSendAnimatedText(getThingPos(cid),"Troca",math.random(1,255)) if getPlayerStorageValue(cid, 20007) > 0 then doTeleportThing(item2.uid, RETORNAR) doSendMagicEffect(RETORNAR,28) doSendAnimatedText(RETORNAR,"Troca",math.random(1,255)) doPlayerSendTextMessage(item2.uid,27,"["..getCreatureName(cid).."] Escolheu Você Para Troca De Lugar") setPlayerStorageValue(cid, 20004, 0) setPlayerStorageValue(cid, 20005, 0) setPlayerStorageValue(cid, 20006, 0) setPlayerStorageValue(cid, 20007, 0) if rune == true then doRemoveItem(item.uid) end return true end return true end end actions.xml <action itemid="ID_DA_Rune" script="nomedarune.lua" allowfaruse="1"/> mais detalhes créditos
  21. amigo usa o Auto Restarter http://www.xtibia.com/forum/topic/145087-%26-8594%3B-otserv-auto-restarter/ ou http://www.xtibia.com/forum/topic/133758-auto-restarter-com-imagens/
  22. sistema funciona assim se player fica muito tempo sem comer ele vai morrendo de fome ai ele perde porcentagem do seu life e vai morrendo se não comer nada ate que ele morre check.lua food.lua deathfood.lua Creditos
  23. vai em data\globalevents\scripts\death.lua troca por esse só editar life = 5 -- porcentagens function onThink(interval, lastExecution) morre = 600 -- com mas ou menos 600 ja começa a morrer life = 5 -- porcentagens time = 1100 -- (tempo 1000 por segundos) sto = 15725 -- death() -- não mexe return 1 end function death() for _, name in ipairs(getOnlinePlayers()) do if getPlayerStorageValue(getPlayerByName(name), sto) >= os.time() then return true end if isCreature(getPlayerByName(name)) then if getPlayerFood(getPlayerByName(name)) <= morre then pc = getCreatureMaxHealth(getPlayerByName(name))/100 doCreatureAddHealth(getPlayerByName(name), -math.floor((pc*life))) addEvent(death, 2000,getPlayerByName(name)) doSendAnimatedText(getPlayerPosition(getPlayerByName(name)),""..math.floor(pc*life).."", math.random(144,145)) setPlayerStorageValue(getPlayerByName(name), sto, os.time() + time / 1000) end end end end
  24. vai em data\creaturescripts\scripts cria arquivo com nome deathfood.lua coloca isso death = 200 -- quando morre vai nascer com 200 de fome só edita function onLogin(cid) death_food(cid) registerCreatureEvent(cid, "deathfood") return 1 end function death_food(cid) if isCreature(cid) and getPlayerFood(cid) <= 10 then doPlayerFeed(cid,death/2.8) end end creaturescripts.xml <event type="login" name="deathfood" event="script" value="deathfood.lua"/> espero ter ajudado
  • Quem Está Navegando   0 membros estão online

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