-
Total de itens
884 -
Registro em
-
Última visita
-
Dias Ganhos
8
Tudo que notle2012 postou
-
local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Butterfree", "Beedrill", "Metapod", "Kakuna", "Raticate", "Spearow", "Ekans", "Abra", "Mankey", "Psyduck", "Pikachu", "Sandshrew", "Nidoran Female", "Nidoran Male", "Zubat", "Diglett", "Venonat", "Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude"}}, [11639] = {balltype = "great", ballid = 11832, --alterado v1.3 pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}}, [12227] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Beedrill", "Shiny Horsea", "Shiny Abra", "Shiny Krabby", "Shiny Oddish", "Shiny Paras", "Shiny Rattata", "Shiny Voltorb", "Shiny Zubat"}} } function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end --alterado v1.3 local gender = getRandomGenderByName(pokemon) local happy = 220 local ball = 0 local sendToDepot = false --alterado v1.6 if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then sendToDepot = true ball = doCreateItemEx(b.ballid) --alterado v1.3 else ball = item.uid end doItemSetAttribute(ball, "poke", pokemon) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", happy) doItemSetAttribute(ball, "gender", gender) if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then doItemSetAttribute(ball, "hands", 0) end doItemSetAttribute(ball, "description", "Contains a "..pokemon..".") doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".") doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!") doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!") if sendToDepot then doPlayerSendMailByName(getCreatureName(cid), ball, 1) --alterado v1.3 doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.") doRemoveItem(item.uid) else doTransformItem(ball, pokeballs[btype].on) end doSendMagicEffect(getThingPos(cid), 29) return true end
-
como tutor fala do tag tbm vou deixa ele aqui max edita la tem um then a + http://www.xtibia.com/forum/topic/213312-como-funcionam-os-scripts/#entry1512864
-
da pra fazer com MAP EDITOR usando pvp zone tool
-
ajuda [Encerrado] Ajuda com Order Bugado
tópico respondeu ao wdot456 de notle2012 em Tópicos Sem Resposta
qual base vc ta usando? aposta erro do distro -
ajuda [Encerrado] Ajuda com Order Bugado
tópico respondeu ao wdot456 de notle2012 em Tópicos Sem Resposta
vai em data\lib\configuration.lua procura por specialabilities e adiciona pokemon la -
como retirar level dos pokemo [Encerrado] Como Retirar Level dos Pokemons?
tópico respondeu ao davidsanto195 de notle2012 em Tópicos Sem Resposta
quer mesmo tirar level tem que editar data\actions\scripts\catch.lua e data\actions\scripts\goback.lua e data\creaturescripts\scripts\goback.lua e um monte de scripts do data\lib entre outras coisas faz um tempo q não mexo com poketibia... deixa aqui link pokemon sem level centurion http://www.xtibia.com/forum/topic/194213-pokemon-centurion-sem-lvl-by-notle/ -
-
data\talkactions\scripts\nomedoarquivo.lua talkactions.xml configurar x e y depois de configurar x,y,z do portal e da area só usa comando que é exemplo 1 /coliseum 1,dragon exemplo 2 /coliseum 5,apocalypse meu video
-
-
notle,Skanet,thecaos
-
sou novato nessa área + vou participar ^.^
-
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...
-
pedido Fonte de agua recupera vida e mana
pergunta respondeu ao curruwilliam de notle2012 em Scripts
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 -
[Encerrado] [Pedido] Script para se teleport ao clicar na statua !
tópico respondeu ao AwakeGamer de notle2012 em Tópicos Sem Resposta
ta certo mais vc esqueceu de fecha function fecho apenas if -
mudar 640 x 458 para essa 640 x 480
-
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
-
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)
-
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
-
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
-
[Tutorial] Conhecendo o math.random
tópico respondeu ao Roksas de notle2012 em Tutoriais de Scripting
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 -
[Arquivado]Entrevista - Demonbholder
tópico respondeu ao PsyMcKenzie de notle2012 em Noticias - Arquivo
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 -
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
-
tem sim com programa NOTEPAD++ entre outros
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.