*Problemă/Întrebare: attempt to index field `guild' (a nil value)
Tipologie server:PVP LV 99
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
CH1
Cod: Selectaţi tot
SYSERR: Jun 22 00:39:54 :: RunState: LUA_ERROR: [string "guild_manage"]:23: attempt to index field `guild' (a nil value)
SYSERR: Jun 22 00:39:54 :: WriteRunningStateToSyserr: LUA_ERROR: quest guild_manage.start click
ABBC3_SPOILER_SHOW
Cod: Selectaţi tot
quest guild_manage begin
state start begin
when guild_man1.chat."Lasciare la gilda" or
guild_man2.chat."Lasciare la gilda" or
guild_man3.chat."Lasciare la gilda"
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("Si", "No")
if s==1 then
say("Sei tornato senza gilda!")
pc.remove_from_guild()
pc.setqf("new_withdraw_time",get_global_time())
end
end
when guild_man1.chat."Sciogli Gilda" or
guild_man2.chat."Sciogli Gilda" or
guild_man3.chat."Sciogli Gilda"
with pc.hasguild() and pc.isguildmaster() and (pc.is_gm() or npc.empire == pc.empire) begin
-- ??
say(locale.guild.disband_confirm)
local s = select("Si", "No")
if s==1 then
say("La gilda e' stata sciolta!")
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."Crea Gilda" or
guild_man2.chat."Crea Gilda" or
guild_man3.chat."Crea Gilda"
with (pc.is_gm() or npc.empire == pc.empire) and not pc.has_guild() begin
local level_limit;
local guild_create_item
if get_locale() == "euckr" then
level_limit = 30
guild_create_item = false
else
level_limit = 30
guild_create_item = false
end
if pc.hasguild() then
return
end
if game.get_event_flag("guild_withdraw_delay")*1 >
get_global_time() - pc.getqf("new_withdraw_time") then
say(string.format("Ora non puoi creare una gilda!Aspetta un po'!", game.get_event_flag("guild_withdraw_delay")))
return
end
if game.get_event_flag("guild_disband_delay")*1 >
get_global_time() - pc.getqf("new_disband_time") then
say(string.format("Ora non puoi creare una gilda!Aspetta un po'!", game.get_event_flag("guild_disband_delay")))
return
end
say(locale.guild.create_confirm)
local s = select("Si", "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("Ti manca il libro della prevvidenza!")
end
else
say("Non hai abbastanza Yang per creare una gilda!")
end
else
say("Non sei al livello 30 per poter creare una gilda!")
end
end
end
end
Nu mă face să creez breasla
Care este problema ?
Multumesc