Postado Abril 27, 2014 11 anos Olá amigos do TIBIA KING , estou aqui pedindo quatro script´s de box´s para POKETIBIA . Meu servidor está precisando e vai entrar está atualização . Então vamos ao que interessa . Eu Preciso de 4 scripts para as box que criei no meu servidor . Id Das Box : Box 1 : 11638 Box 2 : 11639 Box 3 : 11640 Box 4 : 11641 Tenho a plena certeza que algum de vocês vai poder me auxiliar nisso , desde já muito obrigado . Editado Abril 27, 2014 11 anos por Victor2101 (veja o histórico de edições) A Vida É Muito Mais Do Que Palavras E Sonhos ! Meu Canal No Youtube => www.youtube.com/v3gamertube
Postado Abril 27, 2014 11 anos Bom, fiz essa rapidinho ... não testei ainda! -- <action uniqueid="30001-30004" event="script" value="box_quest.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) local quest = { [30001] = {item_id= 11638 , storage_quest = 50001, msg = "You have found a box."} [30002] = {item_id= 11639 , storage_quest = 50002, msg = "You have found a box."} [30003] = {item_id= 11640 , storage_quest = 50003, msg = "You have found a box."} [30004] = {item_id= 11641 , storage_quest = 50004, msg = "You have found a box."} } if item.uid == 30001 then if getPlayerStorageValue(cid, quest[item.uid].storage_quest) == 0 then doPlayerSendTextMessage(cid, 22, quest[item.uid].msg) doPlayerAddItem(cid, quest[item.uid].item_id, 1) setPlayerStorageValue(cid, quest[item.uid].storage_quest, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 30002 then if getPlayerStorageValue(cid, quest[item.uid].storage_quest) == 0 then doPlayerSendTextMessage(cid, 22, quest[item.uid].msg) doPlayerAddItem(cid, quest[item.uid].item_id, 1) setPlayerStorageValue(cid, quest[item.uid].storage_quest, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 30003 then if getPlayerStorageValue(cid, quest[item.uid].storage_quest) == 0 then doPlayerSendTextMessage(cid, 22, quest[item.uid].msg) doPlayerAddItem(cid, quest[item.uid].item_id, 1) setPlayerStorageValue(cid, quest[item.uid].storage_quest, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 30004 then if getPlayerStorageValue(cid, quest[item.uid].storage_quest) == 0 then doPlayerSendTextMessage(cid, 22, quest[item.uid].msg) doPlayerAddItem(cid, quest[item.uid].item_id, 1) setPlayerStorageValue(cid, quest[item.uid].storage_quest, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end else return false end return true end Para configurar é simples: local quest = { [30001] = {item_id= 11638 , storage_quest = 50001, msg = "You have found a box."} [30002] = {item_id= 11639 , storage_quest = 50002, msg = "You have found a box."} [30003] = {item_id= 11640 , storage_quest = 50003, msg = "You have found a box."} [30004] = {item_id= 11641 , storage_quest = 50004, msg = "You have found a box."} } Use Unique IDs 30001, 30002, 30003 e 30004 nos baus! Espero ter ajudado! STYLLER OT 2022
Postado Abril 28, 2014 11 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Programação" Para: "OTServ → Suporte OTServ → Suporte de Servidores Diferentes" Ot Design: https://discord.gg/VgtVRNmCD7
Postado Abril 28, 2014 11 anos Estou iniciando em scriptting, creio que assim também funfe ... -- <action uniqueid="30001-30004" event="script" value="box_quest.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) local quest = { [30001] = {item_id= 11638 , storage_quest = 50001, msg = "You have found a box."} [30002] = {item_id= 11639 , storage_quest = 50002, msg = "You have found a box."} [30003] = {item_id= 11640 , storage_quest = 50003, msg = "You have found a box."} [30004] = {item_id= 11641 , storage_quest = 50004, msg = "You have found a box."} } if getPlayerStorageValue(cid, quest[item.uid].storage_quest) == 0 then doPlayerSendTextMessage(cid, 22, quest[item.uid].msg) doPlayerAddItem(cid, quest[item.uid].item_id, 1) setPlayerStorageValue(cid, quest[item.uid].storage_quest, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end return true end edite --- Resolvido? Se sim, clique em melhor resposta! STYLLER OT 2022
Postado Outubro 31, 2016 8 anos Epra por boxs colo tipo criei 1 questi pra a boxs colo 1 a 5 , como fasso pra add pokes nas boxs Ajuda ai ..
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.