Modificar, el yang para crear gremio =P
-
Bueno lo que queria saver es que al modificar la quest, del gremio para que pida el precio que yo le asige.. me aparece esto en el guil_man
local level_limit ;
local guild_create_item
if get_locale ( ) == "euckr" then
level_limit = 70
guild_create_item = false
else
level_limit = 70
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 ( "Después de borrar un gremio, debe esperar un tiempo para crear otro." , 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 ( "Usted tiene que eliminar el gremio!, No se puede crear otro gremio" , 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 >= 1.5e+09 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[guialol]if pc . gold >= 1.5e+09 then[/guialol]
[guialol]Y bueno, cuando creo el gremio deberia pedirme 1.5kkk pero solo me pide 200000, osea solo me quita 200000 y me deja 1499800000 , alguien me diria como arreglar eso porfavor[/guialol]
aca esta la quest que se debe modificar.....
quest guild_manage begin
state start begin
when guild_man1.chat."GM: Comprobar la Fecha" or
guild_man2.chat."GM: Comprobar la Fecha" or
guild_man3.chat."GM: Comprobar la Fecha"
with pc.is_gm() beginsay("Introduzca por favor, usted quiere asegurarse de que el nombre del usuario.")
local u_name = input()
local u_vid=find_pc_by_name(u_name)if u_vid==0 then
say_title("este usuario no existe. ")
say(u_name)
return
endlocal 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("Compruebe que puede agregar la fecha")
if u_withdrawTime>0 then
say("De temps: "..time_to_str(u_withdrawTime))
say("(Latence: "..withdrawDelay.." Jour)")
say("")
endif u_disbandTime>0 then
say("Tiempo de disolución: "..time_to_str(u_disbandTime))
say("(Latencia: "..disbandDelay.." Jour)")
say("")
endlocal retryTime1 = u_withdrawTime + withdrawDelay*86400
local retryTime2 = u_disbandTime + disbandDelay*86400local retryTime = 0
if retryTime1 > retryTime2 then
retryTime = retryTime1
else
retryTime = retryTime2
endlocal curTime = get_time()
if curTime < retryTime then
say("Pour remettre a zero le temps: "..time_to_str(retryTime))
say("(Gauche : "..((retryTime-curTime)/3600).."Heure)")
say("")if is_test_server() then
local s=select("Reset", "Fermer")
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("Inscrivez-vous maintenant");
say("")
end
end
when guild_man1.chat."GM: Asociacion de las variables relevantes" or
guild_man2.chat."GM: Asociacion de las variables relevantes" or
guild_man3.chat."GM: Asociacion de las variables relevantes"
with pc.is_gm() begintest_chat("pc.has_guild: "..bool_to_str(pc.has_guild()))
test_chat("pc.is_guildmaster: "..bool_to_str(pc.isguildmaster()))
test_chat("pc.empire: "..pc.empire)
test_chat("npc.empire: "..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
endwhen 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
endwhen guild_man1.chat." Crear Gremio" or
guild_man2.chat." Crear Gremio" or
guild_man3.chat." Crear Gremio"
with (pc.is_gm() or npc.empire == pc.empire) begin
local level_limit;
local guild_create_itemif get_locale() == "euckr" then
level_limit = 70
guild_create_item = false
else
level_limit = 70
guild_create_item = false
endif pc.hasguild() then
return
end
if game.get_event_flag("guild_withdraw_delay")*86400 >
get_global_time() - pc.getqf("new_withdraw_time") thensay(string.format("Después de borrar un gremio, debe esperar un tiempo para crear otro.", game.get_event_flag("guild_withdraw_delay")))
return
endif game.get_event_flag("guild_disband_delay")*86400 >
get_global_time() - pc.getqf("new_disband_time") thensay(string.format("Usted tiene que eliminar el gremio!, No se puede crear otro gremio", game.get_event_flag("guild_disband_delay")))
return
endsay(locale.guild.create_confirm)
local s = select(locale.guild.yes, locale.guild.no)
if s == 2 then
return
endif pc.level >= level_limit then
if pc.gold >= 1500000000 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 -
esta quest no es la de crear gremio... sobre lo k as dicho antes es para que decida si tienes dinero o no....