Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Nie mogę zrobić gildi na swoim serwerze


Rekomendowane odpowiedzi

Opublikowano

Siemanko tak jak w temacie nie mogę zrobic gildi na swoim serwerze pisze mi 

Nie mozna utworzyc gildi 

ta gildia juz tam jest 

a jej nie ma ! POMOCY!

Opublikowano


quest guild_manage begin

state start begin

when guild_man1.chat."GM: Ogranicz" or

guild_man2.chat."GM: Ogranicz" or

guild_man3.chat."GM: Ogranicz"

with pc.is_gm() begin

 

say("Wpisz nazwe osoby, ktora chcesz ograniczyc!")

local u_name = input()

local u_vid=find_pc_by_name(u_name)

 

if u_vid==0 then

say_title("Gracza takiego jak:")

say_reward(u_name)

say_title("nie ma!")

return

end

 

local old_vid = pc.select(u_vid)

u_withdrawTime=pc.getqf("new_withdraw_time")

u_disbandTime=pc.getqf("new_disband_time")

pc.select(old_vid)

 

withdrawDelay=game.get_event_flag("guild_withdraw_delay")

disbandDelay=game.get_event_flag("guild_disband_delay")

 

say_title("˝T»{ĄiĄH¦AĄ[¤JŞş¤é´Á")

 

if u_withdrawTime>0 then

say("˛ćÂ÷ ®É¶ˇ: "..time_to_str(u_withdrawTime))

say("(µĄ«Ý ®É¶ˇ: "..withdrawDelay.." ¤é)")

say("")

end

 

if u_disbandTime>0 then

say("¸Ń´˛ ®É¶ˇ: "..time_to_str(u_disbandTime))

say("(µĄ«Ý ®É¶ˇ: "..disbandDelay.." ¤é)")

say("")

end

 

local retryTime1 = u_withdrawTime + withdrawDelay*86400

local retryTime2 = u_disbandTime + disbandDelay*86400

 

local retryTime = 0

if retryTime1 > retryTime2 then

retryTime = retryTime1

else

retryTime = retryTime2

end

 

local curTime = get_time()

if curTime < retryTime then

say("­«·sł]©w ®É¶ˇ: "..time_to_str(retryTime))

say("(łŃ¤U : "..((retryTime-curTime)/3600).."®É¶ˇ)")

say("")

 

if is_test_server() then

local s=select("­«·sł]©w", "Ăöł¬")

if s==1 then

local old_vid = pc.select(u_vid)

local curTime=get_time()

pc.setqf("new_withdraw_time", curTime-withdrawDelay*86400)

pc.setqf("new_disband_time", curTime-disbandDelay*86400)

pc.select(old_vid)

end

end

else

say("˛{¦bĄiĄHĄ[¤J");

say("")

end

end

when guild_man1.chat."GM: Check" or

guild_man2.chat."GM: Check" or

guild_man3.chat."GM: Check"

with pc.is_gm() begin

 

setskin(NOWINDOW)

chat("Ma gildie: "..bool_to_str(pc.has_guild()))

chat("Jest mistrzem: "..bool_to_str(pc.isguildmaster()))

chat("Krolestwo: "..pc.empire)

chat("Krolestwo NPC: "..npc.empire)

end

when guild_man1.chat.locale.guild.withdraw or

guild_man2.chat.locale.guild.withdraw or

guild_man3.chat.locale.guild.withdraw

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(locale.guild.yes, locale.guild.no)

if s==1 then

say(locale.guild.withdraw_msg)

pc.remove_from_guild()

pc.setqf("new_withdraw_time",get_global_time())

end

end

 

when guild_man1.chat.locale.guild.disband or

guild_man2.chat.locale.guild.disband or

guild_man3.chat.locale.guild.disband

with pc.hasguild() and pc.isguildmaster() and (pc.is_gm() or npc.empire == pc.empire) begin

-- ??

say(locale.guild.disband_confirm)

local s = select(locale.guild.yes, locale.guild.no)

if s==1 then

say(locale.guild.disband_msg)

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."Stworz Gildie" or

guild_man2.chat."Stworz Gildie" or

guild_man3.chat."Stworz Gildie"

with (pc.is_gm() or npc.empire == pc.empire) begin

local level_limit;

local guild_create_item

 

if get_locale() == "eng" then

level_limit = 40

guild_create_item = false

else

level_limit = 30

guild_create_item = false

end

 

if pc.hasguild() then

say("Posiadasz juz gildie!")

return

end

if game.get_event_flag("guild_withdraw_delay")*86400 >

get_global_time() - pc.getqf("new_withdraw_time") then

 

say(string.format("Musisz odczekac %d dzien zanim zalozysz gildie!", 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("§A¤w¸g¸Ń´˛¤˝·¤F! %d ¤ŃĄH¤ş, µLŞk«ŘĄß¨äĄLŞş¤˝·.", game.get_event_flag("guild_disband_delay")))

return

end

 

say(locale.guild.create_confirm)

local s = select(locale.guild.yes, locale.guild.no)

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(locale.guild.no_guild_create_item)

end

else

say(locale.guild.create_not_enough_money)

end

else

say(locale.guild.not_enough_leadership)

end

end

end

end

Opublikowano

Sprawdź czy syserr nic nie pluje i czy tabelka guild działa bez problemu.

 

w grze wczytałeś czy tylko w maszynie ?

reload q

@Noresta

Sysser nic a jak sprawdzic czy tabelka gulid ? coś się z nią dzieje

@2StronaMT2PL

Nadal to samo ;/

nie mogę dalej zrobic gildi

Opublikowano

@Noresta

Sysser nic a jak sprawdzic czy tabelka gulid ? coś się z nią dzieje

@2StronaMT2PL

Nadal to samo ;/

nie mogę dalej zrobic gildi

Wejdz do player i sprawdź czy tabela guild bez problemu się otwiera i czy można ją edytować.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...