Sopinhas10™ 110 Posted August 6, 2013 Boas comunidade alguem arranja me a quest guild_manage em pt sffCumprimentos Sopinhas10 Share this post Link to post Share on other sites
SINVAL o.O 728 Posted August 6, 2013 quest guild_manage begin state start begin when guild_man1.chat."Sair da Guild" or guild_man2.chat."Sair da Guild" or guild_man3.chat."Sair da Guild" with pc.hasguild() and not pc.isguildmaster() and (pc.is_gm() or npc.empire == pc.empire) begin -- ?? say(locale.guild.withdraw_confirm) local s = select("Sim", "Não") if s==1 then say("Parabéns! Saiste da Guild com Sucesso!") pc.remove_from_guild() pc.setqf("new_withdraw_time",get_global_time()) end end when guild_man1.chat."Apagar guild" or guild_man2.chat."Apagar Guild" or guild_man3.chat."Apagar Guild" with pc.hasguild() and pc.isguildmaster() and (pc.is_gm() or npc.empire == pc.empire) begin -- ?? say(locale.guild.disband_confirm) local s = select("Sim", "Não") if s==1 then say("Guild Apagada Com Sucesso!") pc.destroy_guild() pc.setqf("new_disband_time",get_global_time()) pc.setqf("new_withdraw_time",get_global_time()) end end when guild_man1.chat."Criar Guild" or guild_man2.chat."Criar Guild" or guild_man3.chat."Criar Guild" with (pc.is_gm() or npc.empire == pc.empire) begin local level_limit; local guild_create_item if get_locale() == "germany" then level_limit = 40 guild_create_item = false else level_limit = 40 guild_create_item = false end if pc.hasguild() then return end if game.get_event_flag("guild_withdraw_delay")*86400 > get_global_time() - pc.getqf("new_withdraw_time") then say(string.format("Saiste de uma Guild recentemente! Ainda Não Podes[ENTER]Criar Uma Guild.", game.get_event_flag("guild_withdraw_delay"))) return end if game.get_event_flag("guild_disband_delay")*86400 > get_global_time() - pc.getqf("new_disband_time") then say(string.format("Saiste de uma Guild recentemente! Ainda Não Podes[ENTER]Criar Uma Guild", game.get_event_flag("guild_disband_delay"))) return end say(locale.guild.create_confirm) local s = select("Sim", "Não") if s == 2 then return end if pc.level >= level_limit then if pc.gold >= 200000 then if not guild_create_item or pc.countitem(guild_create_item)>0 then game.request_make_guild() else say("Precisas do Livro da Providência") end else say("Não tens gold suficiente, para criar uma guild.") end else say("Não tens nível suficiente, para criar uma guild.") end end endend tenho esse vê se te ajuda. 1 Sopinhas10™ reacted to this Share this post Link to post Share on other sites
Sopinhas10™ 110 Posted August 7, 2013 obrigado sinval ajudou http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
p0w3r0ff 3,804 Posted August 7, 2013 Pedido resolvido. Tópico fechado. Cumprimentos Share this post Link to post Share on other sites