-
Total de itens
859 -
Registro em
-
Última visita
-
Dias Ganhos
22
Tudo que Skulls postou
-
Perfects Potions 8.1 By Skulls V.1.1 (atualizado)
tópico respondeu ao Skulls de Skulls em Actions e Talkactions
Genoma se nao fosse por voce eu nao teria criado o script simplesmente pq eu nao tera pensado em faze-lo e eu nao ligo para os creditos so quero ajudar ^^ -
hamm.. conde sapo é simplesmente d+ asuheasuhease tutoriais sempre perfeitos conde um dia eu ainda chego la ;P a.. Sem esquecer.. MEU PARABENS ahuseaushe abraço
-
Perfects Potions 8.1 By Skulls V.1.1 (atualizado)
um tópico no fórum postou Skulls Actions e Talkactions
Pocoes 8.1. Bem a pedido de um amigo criei poções 8.1 (health, strong health, great health, mana, strong mana, great mana.) Então aí vai: Primeiro Va na pasta actions/script, copie 6 vezes qualquer arquivo de lá e Renomeie-os para: 1ª Copia- Health Potion 2ª Copia- Strong Health Potion 3ª Copia- Great Health Potion 4ª Copia- Mana Potion 5ª Copia- Strong Mana Potion 6ª Copia-Great mana potion Pronto, os arquivos estao criados agora vamos editá-los. Abra o arquivo health Potion.lua e dentro dele cole: -- Health potion By skulls function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) voc = getPlayerVocation(cid) ex = getPlayerStorageValue(cid,4862) r1 = math.random(100,300) params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml } if item2.itemid == 1 then if item.itemid == 7636 then doPlayerSendCancel(cid,"It is empty.") else if item2.uid == cid then if ex == -1 then doPlayerAddHealth(cid,r1) doSendMagicEffect(playerpos,12) addEvent(ums,1000,params) setPlayerStorageValue(cid,4862, 1) doTransformItem(item.uid,7636) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) else doPlayerSendCancel(cid,'You are exhausted!') doSendMagicEffect(playerpos,2) end else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7636) doDecayItem(splash) end end else if item.itemid == 7636 then doPlayerSendCancel(cid,"It is empty.") else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7636) doDecayItem(splash) end end return 1 end function ums(params) cid = params[1] setPlayerStorageValue(cid,4862, -1) end Pronto, Sua Health Potion esta criada. __ Agora Abra strong health potion.lua e cole isso dentro: -- Strong Health potion By skulls function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) voc = getPlayerVocation(cid) ex = getPlayerStorageValue(cid,4862) r1 = math.random(200,600) params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml } if item2.itemid == 1 then if item.itemid == 7634 then doPlayerSendCancel(cid,"It is empty.") else if item2.uid == cid then if lvl >= 50 then if voc == 4 or voc == 3 or voc == 7 or voc == 8 then if ex == -1 then doPlayerAddHealth(cid,r1) doSendMagicEffect(playerpos,12) addEvent(ums,1000,params) setPlayerStorageValue(cid,4862, 1) doTransformItem(item.uid,7634) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) else doPlayerSendCancel(cid,'You are exhausted!') doSendMagicEffect(playerpos,2) end else doPlayerSendCancel(cid, 'This potion can only be consumed by paladins and knights of level 50 or higher.') end else doPlayerSendCancel(cid,'This potion can only be consumed by paladins and knights of level 50 or higher.') end else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7634) doDecayItem(splash) end end else if item.itemid == 7634 then doPlayerSendCancel(cid,"It is empty.") else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7634) doDecayItem(splash) end end return 1 end function ums(params) cid = params[1] setPlayerStorageValue(cid,4862, -1) end Pronto, Sua Strong Health Potion esta criada. __ Agora abra o Great Health Potion.lua e cole isso dentro: -- Great Health potion By skulls function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) voc = getPlayerVocation(cid) ex = getPlayerStorageValue(cid,4862) r1 = math.random(400,800) params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml } if item2.itemid == 1 then if item.itemid == 7635 then doPlayerSendCancel(cid,"It is empty.") else if item2.uid == cid then if lvl >= 80 then if voc == 4 or voc == 8 then if ex == -1 then doPlayerAddHealth(cid,r1) doSendMagicEffect(playerpos,12) addEvent(ums,1000,params) setPlayerStorageValue(cid,4862, 1) doTransformItem(item.uid,7635) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) else doPlayerSendCancel(cid,'You are exhausted!') doSendMagicEffect(playerpos,2) end else doPlayerSendCancel(cid, 'This potion can only be consumed by knights of level 80 or higher.') end else doPlayerSendCancel(cid,'This potion can only be consumed by knights of level 80 or higher.') end else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7635) doDecayItem(splash) end end else if item.itemid == 7635 then doPlayerSendCancel(cid,"It is empty.") else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7635) doDecayItem(splash) end end return 1 end function ums(params) cid = params[1] setPlayerStorageValue(cid,4862, -1) end Pronto sua Great Health Potion está criada. __ Agora abra o Mana Potion.lua e cole isso: -- Mana potion By skulls function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) voc = getPlayerVocation(cid) ex = getPlayerStorageValue(cid,4862) r1 = math.random(50,150) params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml } if item2.itemid == 1 then if item.itemid == 7636 then doPlayerSendCancel(cid,"It is empty.") else if item2.uid == cid then if ex == -1 then doPlayerAddMana(cid,r1) doSendMagicEffect(playerpos,12) addEvent(ums,1000,params) setPlayerStorageValue(cid,4862, 1) doTransformItem(item.uid,7636) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) else doPlayerSendCancel(cid,'You are exhausted!') doSendMagicEffect(playerpos,2) end else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7636) doDecayItem(splash) end end else if item.itemid == 7636 then doPlayerSendCancel(cid,"It is empty.") else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7636) doDecayItem(splash) end end return 1 end function ums(params) cid = params[1] setPlayerStorageValue(cid,4862, -1) end Mana potion criada. __ Agora Abra Strong Mana potion.lua e cole isso dentro: function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) voc = getPlayerVocation(cid) ex = getPlayerStorageValue(cid,4862) r1 = math.random(100,300) params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml } if item2.itemid == 1 then if item.itemid == 7634 then doPlayerSendCancel(cid,"It is empty.") else if item2.uid == cid then if lvl >= 50 then if voc == 1 or voc == 2 or voc == 3 or voc == 5 or voc == 6 or voc == 7 then if ex == -1 then doPlayerAddMana(cid,r1) doSendMagicEffect(playerpos,12) addEvent(ums,1000,params) setPlayerStorageValue(cid,4862, 1) doTransformItem(item.uid,7634) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) else doPlayerSendCancel(cid,'You are exhausted!') doSendMagicEffect(playerpos,2) end else doPlayerSendCancel(cid, 'This potion can only be consumed by paladins, druids and sorcerers of level 50 or higher.') end else doPlayerSendCancel(cid,'This potion can only be consumed by paladins, druids and sorcerers of level 50 or higher.') end else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7634) doDecayItem(splash) end end else if item.itemid == 7634 then doPlayerSendCancel(cid,"It is empty.") else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7634) doDecayItem(splash) end end return 1 end function ums(params) cid = params[1] setPlayerStorageValue(cid,4862, -1) end Sua Strong Mana Potion Esta Criada. __ Agora abra o Great Mana Potion.lua e cole isso: -- Great Mana potion By skulls function onUse(cid, item, frompos, item2, topos) playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253} player = getThingfromPos(playerpos) ml = getPlayerMagLevel(cid) lvl = getPlayerLevel(cid) voc = getPlayerVocation(cid) ex = getPlayerStorageValue(cid,4862) r1 = math.random(150,450) params = { [1]=cid, [2]=lvl, [3]=voc, [4]=ml } if item2.itemid == 1 then if item.itemid == 7635 then doPlayerSendCancel(cid,"It is empty.") else if item2.uid == cid then if lvl >= 80 then if voc == 1 or voc == 2 or voc == 5 or voc == 6 then if ex == -1 then doPlayerAddMana(cid,r1) doSendMagicEffect(playerpos,12) addEvent(ums,1000,params) setPlayerStorageValue(cid,4862, 1) doTransformItem(item.uid,7635) doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE) else doPlayerSendCancel(cid,'You are exhausted!') doSendMagicEffect(playerpos,2) end else doPlayerSendCancel(cid, 'This potion can only be consumed by druids and sorcerers of level 80 or higher.') end else doPlayerSendCancel(cid,'This potion can only be consumed by druids and sorcerers of level 80 or higher.') end else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7635) doDecayItem(splash) end end else if item.itemid == 7635 then doPlayerSendCancel(cid,"It is empty.") else splash = doCreateItem(1903,item.type,topos) doTransformItem(item.uid,7635) doDecayItem(splash) end end return 1 end function ums(params) cid = params[1] setPlayerStorageValue(cid,4862, -1) end Pronto Sua Great Mana Potion está criada. Com todas as potions criadas só precisamos criar as tags. Abra seu actions.xml e cole essa tag la: --- Potions -- -- Life potions <action itemid="7618" script="health potion.lua" /> <action itemid="7588" script="strong health potion.lua" /> <action itemid="7591" script="great health potion.lua" /> --- Mana potions <action itemid="7620" script="mana potion.lua" /> <action itemid="7589" script="strong mana potion.lua" /> <action itemid="7590" script="great mana potion.lua" /> Pronto Suas Potions estao Prontas e Perfeitas. Bom eu só tenho um detalhe a acrescentar: Eu fiz essas Potions em ot 8.0 (so mudei o id dos "vials") então eu não tenho os id's dos "vials" vazios. Eu tive entao que usar o id do liquido (1=wather, 2=blood... 7=mana fluid). Nas manas Potion usei id do mana fluid, Mas na health potion eu usei o id do sangue (blood), entao pode ser que voce tenha que alterar o id do liquido de todas as health potions em: (if item.type == 2 then) e [doChangeTypeItem(item.uid,2] (é só substituir o numero 2 pelo id do life fluid, mas se eu nao me engano o id é sangue mesmo, e meu colega usou no ot 8.1 e funcionou direitinho. Bom é isso. Espero que Gostem. Sem mais. Ps: Nao Reclamem de pouca explicação afinal não é um tutorial, são só as actions. -
Bom primeiramente isso vai ocorrer por causa de: doRemoveItem(item.uid,1) e porque a funcao que ele fez o player somente usa o vial (na verdade teria de usar o vial em si mesmo) eu nao testei, pois nao tenho ot 8.1, mas voce tambem nao colocou exhausted. Bom eu estou fazendo as pocoes para um amigo que me pediu.. quando eu acabar eu posto.. quem quiser vai tar na minha fan bar. __ Sobre o tutorial. A great health potion nao pode ser usadas por paladinos e no seu script pd. Voce repetiu (sem querer creio eu) o script da great mana potion. E a quantia de recuperacao das pocoes estao equivocadas (nas de health nem tanto, mas nas de mana estao muito elevadas). fora isso esta bom. e quero so exclarecer uma coisa eu nao estou denegrindo nem diminuindo a importancia de seu trabalho apontando esses erros/informacoes... sao criticas positivas, para que voce va aprimorando e que em trabalhos proximos corriga esses erros ja citados espero que compreenda. fui, skulls
-
Nem comento. Simplesmente Perfeito. Nostradamus e seus scripts haha Não é para menos também né. Não é atoa que ele é: Programador PHP/C/C++/JAVA/LUA Scripter oficial da OpenTibia Team, criadora do OpenTibia. uhasuhsahusa Parabens ai nostra. Fui ps: Pena que é só para sql's version =/
-
@KingCPI A ideia do 0 Wand of Inferno?LoL.. ja vem com yourots.. nao foi ele q criou =O fui
-
Obsidian Knife Funcionando!(v1.1 Behemoth Adicionado)
tópico respondeu ao Skulls de Skulls em Actions e Talkactions
hannibal@ acho q giant spider silk nao se pega assim.. afinal nao eh couro da aranha e sim teia mas em todo caso qm quiser adicionar eh soh me manda pm fui -
tutorial ta bom.. mas falta cores na parte de monstro... e maiores explicacoes flw ps: se eh um mega tutorial acho q esta na area errada =x... aki eh para postar codes/scripts... EDITED fico melhor agora parabens ^^
-
me manda pm que resolvo sem mais.
-
Adorei as 3 novas secoes... Uma perguntinha: A de vende/troca e a de team vao ser subdividida por mundo neh? pq ai fica mais facil (creio eu)? fora isso gostei das ideias fui.
-
valeu ai, nem tinha visto que postei errado fui
-
Roxx =D mto bom xD eu ate tentei faze um clien, mas nao sei faze imagens boas =x a sua fico otima ^^ fui
-
para falar a verdade isso foi uma ideia que surgiu por acaso. qndo eu estava tentando criar uma action q aumenta skills eu vi q qnto mais funcoes de addskill eu colocasse mais skills aumentava, ai tentei fazer isso com os montrospara ajudar conde sapo =x] fui
-
muitooo bom vou testar parabens mesmo fui
-
Vlw pekeboi ^^ fui
-
Bah vo ganha o/ ~Ótima iniciativa. __ humilde husahuasuhsa brincadeira =X fui
-
Muito obrigado pelos elogios espero ser aprovado sem mais.
-
Acho que sua ideia realmente foi otima, mas como disse o adict esta meio vaga. Mesmo assim acho que seria otimo fui
-
´ha varios tipos de teleport, caso queira algum especifico poste no meu topico de duvidas. esta na minha assinatura sem mais.
-
=/, pena que parou de mecher tava tao boa =x fui
-
Obsidian Knife Funcionando!(v1.1 Behemoth Adicionado)
um tópico no fórum postou Skulls Actions e Talkactions
Action Exclusiva para o X-tibia, se ver em outro forum favor denunciar! Primeiro gostaria de dizer que ela não está 100%, ela está 95%, pois quando o player esta em cima do monstro ela não retira o couro, mas também não adiciona a leather. Bom agora vamos ao que interessa: primeiro abra sua pasta actions/scripts, duplique um arquivo de lá, mude o nome para obsidian.lua, apague seu conteúdo e cole isso dentro: function onUse(cid, item, frompos, item2, topos) --Minotaur chancem = math.random(1,10) chanced = math.random(1,10) chancedl = math.random(1,10) chancel = math.random(1,10) chancel2 = math.random(1,10) chancel3 = math.random(1,10) chanceb = math.random(1,10) if item2.itemid == 2876 or item2.itemid == 2830 or item2.itemid == 2871 or item2.itemid == 2866 then if chancem == 1 then doPlayerSendTextMessage(cid,22,"Você conseguiu uma leather arrancando o couro do Minotauro.") doPlayerAddItem(cid,5878,1) doTransformItem(item2.uid,2833) elseif chancem > 1 and chancem <= 10 then doPlayerSendTextMessage(cid,22,"Você não conseguiu nada arrancando o couro do Minotauro.") doTransformItem(item2.uid,2833) end --Behemoth elseif item2.itemid == 2931 then if chanceb == 1 then doPlayerSendTextMessage(cid,22,"You started a Perfect Behemoth Fang.") doPlayerAddItem(cid,5893,1) doTransformItem(item2.uid,2932) elseif chanceb > 1 and chanceb <= 10 then doPlayerSendTextMessage(cid,22,"No started.") doTransformItem(item2.uid,2932) end --Dragon elseif item2.itemid == 2844 then if chanced == 1 then doPlayerSendTextMessage(cid,22,"Você conseguiu uma leather arrancando o couro do Dragon.") doPlayerAddItem(cid,5877,1) doTransformItem(item2.uid,2847) elseif chanced > 1 and chanced <= 10 then doPlayerSendTextMessage(cid,22,"Você não conseguiu nada arrancando o couro do Dragon.") doTransformItem(item2.uid,2847) end --Dragon Lord elseif item2.itemid == 2881 then if chancedl == 1 then doPlayerSendTextMessage(cid,22,"Você conseguiu uma leather arrancando o couro do Dragon Lord.") doPlayerAddItem(cid,5948,1) doTransformItem(item2.uid,2883) elseif chancedl > 1 and chancedl <= 10 then doPlayerSendTextMessage(cid,22,"Você não conseguiu nada arrancando o couro do Dragon Lord.") doTransformItem(item2.uid,2883) end --Lizard elseif item2.itemid == 4251 then if chancel == 1 then doPlayerSendTextMessage(cid,22,"Você conseguiu uma leather arrancando o couro do Lizard") doPlayerAddItem(cid,5876,1) doTransformItem(item2.uid,4258) elseif chancel > 1 and chancel <= 10 then doPlayerSendTextMessage(cid,22,"Você não conseguiu nada arrancando o couro do Lizard.") doTransformItem(item2.uid,4258) end elseif item2.itemid == 4259 then if chancel2 == 1 then doPlayerSendTextMessage(cid,22,"Você conseguiu uma leather arrancando o couro do Lizard") doPlayerAddItem(cid,5876,1) doTransformItem(item2.uid,4261) elseif chancel2 > 1 and chancel2 <= 10 then doPlayerSendTextMessage(cid,22,"Você não conseguiu nada arrancando o couro do Lizard.") doTransformItem(item2.uid,4261) end elseif item2.itemid == 4262 then if chancel3 == 1 then doPlayerSendTextMessage(cid,22,"Você conseguiu uma leather arrancando o couro do Lizard") doPlayerAddItem(cid,5876,1) doTransformItem(item2.uid,4264) elseif chancel3 > 1 and chancel3 <= 10 then doPlayerSendTextMessage(cid,22,"Você não conseguiu nada arrancando o couro do Lizard.") doTransformItem(item2.uid,4264) end else return 0 end return 1 end agora vá na actions.xml e cole essa tag lá: <action itemid="5908" script="obsidian.lua" /> Pronto sua obsidian knife está funcionando. Créditos-> Skulls e GoD Plus (por falar em que bichos obsidian pode ser usada). Ajuda-> GM Bekman por trazer a parte do behemoth. Postem e dêem opiniões e sugestões. Até a próxima. -
Uma Action Que Até Um Bebezinho Edita
tópico respondeu ao _ferrari_ de Skulls em Actions e Talkactions
legal, simples, facil =D parabens fui -
se voce colocasse para ela ser usada em alguem, e quando remover dinheiro do player adicionasse a voce eu acharia mais legal uhashuas mas ficou bom sim fui
-
vlw keno, agora é esperar o jv ^^ fui
-
Ice Rapier, Runas, Bolts E Arrows Infinitas
tópico respondeu ao salvatore de Skulls em Tutoriais de Scripting
para deixar infinito nao seria mais facil tirar o atributo de cargas? oO fui
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.