Jump to content
Sign in to follow this  
YeetMeister

Filter out files and putting the automatically into a gg.choice()

Recommended Posts

Is it possible to filter out files with an Extension?
Like if I have a .sss

The script filters out any other extension and buts the .sss into a gg.choice()

Share this post


Link to post
Share on other sites

Check name of choose file. If not match, return back yo choose.

Use loop for this,

Share this post


Link to post
Share on other sites
9 minutes ago, Enyby said:

Check name of choose file. If not match, return back yo choose.

Use loop for this,

Thank you, I will add that later. Can you help me? Idk why this isn't working

function select(A)
menu = gg.prompt({
	"select world file [["..ext.."]]",
	"select world name"
}, {dPath, " "}, {"file", "text"})
if menu[1]
  then
    file = io.open(menu[1], "r")
    source_content =
    file:read("*a")
    file =
    io.open(tPath..menu[2], "w")
    file:write(file)
  end
end

 

[added 2 minutes later]
4 minutes ago, YeetMeister said:

Thank you, I will add that later. Can you help me? Idk why this isn't working


local ext = ".wld"
function select(A)
menu = gg.prompt({
	"select world file [["..ext.."]]",
	"select world name"
}, {dPath, " "}, {"file", "text"})
if menu[1]
  then
    file = io.open(menu[1], "r")
    source_content =
    file:read("*a")
    file =
    io.open(tPath..menu[2], "w")
    file:write(source_content)
  end
end

 

 

Edited by YeetMeister

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By McStankey
      I can't find the value I need for the fly hack(for Subway surfers) if you have the value if you would give it to me that would be great I'll give credit were it is needed 
    • By adadadad1235352
      HI, Can anybody give or create script on this game - https://play.google.com/store/apps/details?id=com.kartuzov.mafiaonline ?
      I search cheats on this game and found it - https://www.youtube.com/watch?v=WFPx468K5xI&t=174s
      If anybody can create cheat like on video I can pay you
      I want cheat with function of show roles of players 

      Хай, может кто-то создать скрипт на эту игру - https://play.google.com/store/apps/details?id=com.kartuzov.mafiaonline ?
      Из читов которые я находил только это - https://www.youtube.com/watch?v=WFPx468K5xI&t=174s
      Если кто-то захочет создать скрипт могу заплатить 
      Желательно чит который будет расскрывать роли игроков, а ночью показывает кто к кому ходил(К кому ходил док, пута, шер, ман)
      Заплатить могу около 25 тысяч после создания, пруфы что деньги есть могу предоставить 
    • By Lukasfer
      There is already a MOD (Damage) but It's not updated so if someone can cheat it and update it weekly please
      or learn how to do or update the MOD PLEASE 
       
    • By lwlo
      yesterday i was trying to test an script from a friend of the game duel links but everytimwe when try to link my account into the parallel cloned duel links it opens in the net the konami id login and when i put the page redirect to the original duel links instead to the cloned and for that i cant link my account into the cloned. rooting may be the way to go bcause i woul doesnt need to clone, pls someone help me
    • By Gui-BR-_-Pro
      Well, I'm having problems with Game Guardian since when I bought my phone, it is a Galaxy Note 3 with Root, my problem is that when I try to use SpeedHack it simply restarts my device. Sometimes with you and most of the time the attempt is a failure. I was wondering what should I do to solve this problem Help me please
×
×
  • Create New...