Postado Setembro 21, 2013 11 anos Ola Galera Do TK!! Hoje Quando Fui Fazer Uma Quest Para Meu Poketibia Centurion V7 N consegui pois n sabia kkkkkkk..... E como eu coloko itens dentro do bau? pf me ajudem ae OBS:estou editando o serve pra passar para vcs!! "Aqueles quem vivem na ignorancia se mantem numa realidade sombria." Misaki Mei
Postado Setembro 21, 2013 11 anos Você pode tentar usndo actionid 2000 e um uniqueid que não se repita, porém não sei se vai funcionar em servidor de pokemon Ot Design: https://discord.gg/VgtVRNmCD7
Postado Setembro 21, 2013 11 anos Mas antes de tudo, essa quest vai ser de alguma box ? tipo box 1, box 2... ou vai ser só uma quest mrm ? tipo as que da ball, ou as que da potion, dinheiro... ?
Postado Setembro 21, 2013 11 anos Bom de todo jeito. Box: Vai em actions/scripts copia qualquer script.lua renomeie para box4.lua e cole isso dentro: function onUse(cid, item, frompos, item2, topos) local box = {[1] ={msg = "Voce Abriu New Box Ganhou Absol",np = 'Absol Pokeball'}, [2] ={msg = "Voce Abriu New Box Ganhou Tropius",np = 'Tropius Pokeball'},[3] ={msg = "Voce Abriu New Box Ganhou Shiftry",np = 'Shiftry Pokeball'},[4] ={msg = "Voce Abriu New Box Ganhou Miltank",np = 'Miltank Pokeball'}, [5] ={msg = "Voce Abriu New Box Ganhou Blaziken",np = 'Blaziken Pokeball'}, [6] ={msg = "Voce Abriu New Box Ganhou Anorith",np = 'Anorith Pokeball'}, [7] ={msg = "Voce Abriu New Box Ganhou Armaldo",np = 'Armaldo Pokeball'}, [8] ={msg = "Voce Abriu New Box Ganhou Combusken",np = 'Combusken Pokeball'}, [9] ={msg = "Voce Abriu New Box Ganhou Cradily",np = 'Cradily Pokeball'}, [10] ={msg = "Voce Abriu New Box Ganhou Flygon",np = 'Flygon Pokeball'}, [11] ={msg = "Voce Abriu New Box Ganhou Gallade",np = 'Gallade Pokeball'}, [12] ={msg = "Voce Abriu New Box Ganhou Gardevoir",np = 'Gardevoir Pokeball'}, [13] ={msg = "Voce Abriu New Box Ganhou Glalie",np = 'Glalie Pokeball'}, [14] ={msg = "Voce Abriu New Box Ganhou Grovyle",np = 'Grovyle Pokeball'}, [15] ={msg = "Voce Abriu New Box Ganhou Hariyama",np = 'Hariyama Pokeball'}, [16] ={msg = "Voce Abriu New Box Ganhou Kirlia",np = 'Kirlia Pokeball'}, [17] ={msg = "Voce Abriu New Box Ganhou Marshtomp",np = 'Marshtomp Pokeball'}, [18] ={msg = "Voce Abriu New Box Ganhou Metagross",np = 'Metagross Pokeball'}, [19] ={msg = "Voce Abriu New Box Ganhou Metang",np = 'Metang Pokeball'}, [20] ={msg = "Voce Abriu New Box Ganhou Mudkip",np = 'Mudkip Pokeball'}, [21] ={msg = "Voce Abriu New Box Ganhou Sceptile",np = 'Sceptile Pokeball'}, [22] ={msg = "Voce Abriu New Box Ganhou Snorunt",np = 'Snorunt Pokeball'}, [23] ={msg = "Voce Abriu New Box Ganhou Swampert",np = 'Swampert Pokeball'}, [24] ={msg = "Voce Abriu New Box Ganhou Torchic",np = 'Torchic Pokeball'},[25] ={msg = "Voce Abriu New Box Ganhou Treecko",np = 'Treecko Pokeball'},[26] ={msg = "Voce Abriu New Box Ganhou Vibrava",np = 'Vibrava Pokeball'}, }local level = 100 local e = box[math.random(1,28)]local boxid = 2531 if getPlayerLevel(cid) >= level then doPlayerSendTextMessage(cid,22,e.msg) b = doPlayerAddItem(cid, boxid, 1) doItemSetAttribute(b, "name", e.np) doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid, "You must be at least level "..level.." to use this box.") end return TRUE end Pokemons da Box. Level para abrir a Box. ID da Box. Agora vai em Actions.xml e cola essa tag: <action itemid="7891" event="script" value="box4.lua"/> Agora vai em Actions/scripts copia qualquer scripts e renomeie para questbox4.lua e cole isso dentro: function onUse(cid, item, frompos, item2, topos) if item.uid == 2018 then queststatus = getPlayerStorageValue(cid,2018) if getPlayerLevel(cid) >= 80 then if queststatus == -1 or queststatus == 0 then doPlayerSendTextMessage(cid,22,"You received an box [+4].") item_uid = doPlayerAddItem(cid,7888,1) setPlayerStorageValue(cid,2018,1) else doPlayerSendTextMessage(cid,22,"It is empty.") end else doPlayerSendCancel(cid,"You need level 80 or higher, to make this quest.") end else return 0 end return 1 end Agora vai em actions.xml e cola essa tag: <action uniqueid="9002" script="questbox4.lua" /> Qualquer duvida posta ae. Fiz meio com pressa pq não to em ksa '-'
Postado Setembro 21, 2013 11 anos Kuchiki Kenpachi, alertei você cara, cuidado com o double post, já foi avisado antes. Ot Design: https://discord.gg/VgtVRNmCD7
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.