Jump to content

Luffy_Op

Ascended
  • Posts

    39
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Luffy_Op

  1. Plants Vs Zombies Lua script


    Password is :- LUFFY

    HEY GUYS I AM BACK WITH A NEW SCRIPT FOR PLANTS VS ZOMBIES

    SORRY FOR LATE UPLOAD I WAS BUSY IN OTHER STUFF I'LL TRY TO UPLOAD ONE SCRIPT IN A WEEK 

    SO THIS SCRIPT CONTAINS ALL TYPES OF MENU FOR SUNS AND COINS AND SPPEDHACK I HOPE YOU GUYS ENJOY THE SCRIPT

    MAKE SURE TO SUBSCRIBE AND FOLLOW MY PAGE FOR MORE SCRIPTS ❤️

    LINK TO THE CHANNEL

     


     

  2. 5 hours ago, Xaviesz said:

    [ @Luffy_Op ]
    ---
    I have fixed your entire script with proper naming, indentation, syntax. I will list some of the changes:

    cs = 'Oof'
    while(true)do
    if gg.isVisible(true) then
    XGCK=2
    gg.setVisible(false)
    end
    gg.clearResults()
    if XGCK==2 then
    Main()
    end
    end

    You have 2 of these, doesn't make sense and will likely to interfere. The "cs" variable is useless since it is not being used anywhere
    ---

    print('Correct')
    print('WRONG PASSWORD')
    print(Error)

    Using print() on script doesn't  shows you the message, it will be showed after you exit the script. I have replace it with gg.alert() and gg.toast()
    ---

     gg.toast ('script is loading.')
    gg.sleep (1000)
    gg.toast ('script is loading..')
    gg.sleep (1000)
    gg.toast ('script is loading...')
    gg.sleep (1000)
    gg.toast ('script is loading....')
    gg.sleep (1000)
    gg.sleep (1200)
    gg.toast("80%")
    gg.sleep (1200)
    gg.toast("95%")
    gg.sleep (1200)
    gg.toast("100%")
    gg.sleep (1200)
    gg.toast("Done✔")
    gg.setVisible(true)

    Fake loading screen is removed, you can add this back if you think this is "aesthetic"
    ---

    menu =
    if not menu then
      return

    Safety check is added, it will bring users back to main menu if user cancels the operation
    ---

    function b1()
    gg.setSpeed(0.0001)
    gg.toast ("Speed Hack Activated")
    end

    These kind of function are now merged for clarity

    if menu == 1 then
      gg.setSpeed(0.0001)
    elseif menu == 2 then
      gg.setSpeed(1.0)

    ---
    Variables name are changed to make it readable:

    X -> sflags (social flags)
    XGCK -> flags
    a1() -> suns()
    a2() -> coins()
    a3() -> speeds()
    a4() -> socials()

    ---

    gg.processPause()
    gg.searchNumber(menu[1], gg.TYPE_DWORD)
    gg.getResults(gg.getResultsCount())
    
    gg.processResume()

    You added gg.processResume() and so I add gg.processPause(). The game will pause when values are being searched.
    ---

    if menu3 == 1 then b1() end 
    if menu3 == 2 then b2() end

    Double if's are now replaced with elseif

    if choices == 1 then
      suns() 
    elseif choices == 2 then
      coins()

    ---
    "Fixes" from @MonkeySAN is also been added. I hope you can improve your overall script in the future.

     

    Luffy_Op PVZ.lua 5.02 kB · 2 downloads

    So i check the menu it's getting some error in social it doesn't go back on menu so how to fix it.

  3. 41 minutes ago, Luffy_Op said:

    thank you @MonkeySan @Xaviesz

    Bro i have one more doubt can we make a number prompt for the user that who doesn't want 10000 sun limit so they can put there there number for sun changed 

     

    Screenshot_20230901-213359719.thumb.jpg.0abebea529529f7d28de4afa66d5687c.jpg

     

    Screenshot_20230901-213404740.thumb.jpg.43d0583d6dc167496d17618beb563f1f.jpg

  4. 2 hours ago, Xaviesz said:

    [ @Luffy_Op ]
    ---
    I have fixed your entire script with proper naming, indentation, syntax. I will list some of the changes:

    cs = 'Oof'
    while(true)do
    if gg.isVisible(true) then
    XGCK=2
    gg.setVisible(false)
    end
    gg.clearResults()
    if XGCK==2 then
    Main()
    end
    end

    You have 2 of these, doesn't make sense and will likely to interfere. The "cs" variable is useless since it is not being used anywhere
    ---

    print('Correct')
    print('WRONG PASSWORD')
    print(Error)

    Using print() on script doesn't  shows you the message, it will be showed after you exit the script. I have replace it with gg.alert() and gg.toast()
    ---

     gg.toast ('script is loading.')
    gg.sleep (1000)
    gg.toast ('script is loading..')
    gg.sleep (1000)
    gg.toast ('script is loading...')
    gg.sleep (1000)
    gg.toast ('script is loading....')
    gg.sleep (1000)
    gg.sleep (1200)
    gg.toast("80%")
    gg.sleep (1200)
    gg.toast("95%")
    gg.sleep (1200)
    gg.toast("100%")
    gg.sleep (1200)
    gg.toast("Done✔")
    gg.setVisible(true)

    Fake loading screen is removed, you can add this back if you think this is "aesthetic"
    ---

    menu =
    if not menu then
      return

    Safety check is added, it will bring users back to main menu if user cancels the operation
    ---

    function b1()
    gg.setSpeed(0.0001)
    gg.toast ("Speed Hack Activated")
    end

    These kind of function are now merged for clarity

    if menu == 1 then
      gg.setSpeed(0.0001)
    elseif menu == 2 then
      gg.setSpeed(1.0)

    ---
    Variables name are changed to make it readable:

    X -> sflags (social flags)
    XGCK -> flags
    a1() -> suns()
    a2() -> coins()
    a3() -> speeds()
    a4() -> socials()

    ---

    gg.processPause()
    gg.searchNumber(menu[1], gg.TYPE_DWORD)
    gg.getResults(gg.getResultsCount())
    
    gg.processResume()

    You added gg.processResume() and so I add gg.processPause(). The game will pause when values are being searched.
    ---

    if menu3 == 1 then b1() end 
    if menu3 == 2 then b2() end

    Double if's are now replaced with elseif

    if choices == 1 then
      suns() 
    elseif choices == 2 then
      coins()

    ---
    "Fixes" from @MonkeySAN is also been added. I hope you can improve your overall script in the future.

     

    Luffy_Op PVZ.lua 5.02 kB · 2 downloads

    thank you @MonkeySan @Xaviesz

    Bro i have one more doubt can we make a number prompt for the user that who doesn't want 10000 sun limit so they can put there there number for sun changed 

     

  5. 6 hours ago, MonkeySAN said:

    then show that prompt search menu part that you made that gave you error.

    so people can fix it.

    wait

    So this my script if you on the function a1() 

    I have done 1 number prompt for Searching value then i have just put a alert and then sleep for then the 2 number prompt will that will refine and edit the value but the script getting error

    so i want to make it like when we put some value on 1 prompt for Searching GG will then He will Give A alert that Click on GG button For continue like that

    Luffy_Op PVZ.lua

  6. 1 minute ago, Xaviesz said:

    [ @Luffy_Op ]
    ---
    Do you mean this? :

    function menus()
    	inputs = gg.multiChoice({"Show Fields", "Show Methods", "EXIT"}, nil, "Knx")
    	if inputs == nil then
    		knxs = 0
    	else
    		if inputs[1] then
    			show_fields()
    		elseif inputs[2] then
    			show_methods()
    		else
    			os.exit()
    		end
    	end
    end
    
    function show_fields()
    	print("menu_1")
    end
    
    function show_methods()
    	print("menu_2")
    end
    
    while true do
        if gg.isVisible(true) then
    		knxs = 1
    		gg.setVisible(false)
        end
        gg.clearResults()
        if knxs == 1 then
    		menus()
        end
    end

    ---

    No see the mediafire link in above this

  7. 1 hour ago, MonkeySAN said:

    maybe you can present the script that you had done before, so that a fix can be implemented

    so if anyone knows that how to make like this gg button click 

  8. so i am recently working on a lua script for plants vs zombies but I'm getting a issue on sun hack because we have to find the number in dword then refine the number then edit the number so i want to make a prompt menu for sun value then when we click on GG button the 2 prompt menu should open so  anyone can help me 🙏🏼

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.