JEJEJE ESTABA EN INGLES XD .. Aqui la traduci Jajajajaja Okno XD weno aqui la pongo
--[[
-- Change Account password
-- Quest Writer By : HaveBeen(tm)
]]--
quest account begin
state start beginfunction dialog()
say_title(mob_name(npc.get_race())..":")
say("")say("La Nueva contraseña De La Cuenta:")
say("")
local new = input()
if(new == "" or new == nil) then return end
say_title(mob_name(npc.get_race())..":")
say("")local query = mysql_query("SELECT password FROM account.account WHERE login = '"..pc.get_account.."' ")
mysql_query("UPDATE account.account SET password=PASSWORD('"..new.."') WHERE login = '"..pc.get_account().."' ")
game.set_event_flag(pc.get_name().."_x",get_global_time())
say("Cambiado Con Exito! ")
say("¡Hasta Luego! Que te valla bien XD")
endfunction check()
if(3600 > get_global_time() - game.get_event_flag(pc.get_name().."_x")) then
return false
else
return true
end
endwhen xxx.use begin
if(account.check() == false) then
say_title("Change Accounts Password: ")
say("Please Wait.. ")
say("")
elseif(account.check() == true) then
account.dialog()
end
end
end
end