Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. i want script Origins EE Give player money after finish

i want script Origins EE Give player money after finish

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 2 Posters 212 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • iHarrowundefined Offline
    iHarrowundefined Offline
    iHarrow
    wrote on last edited by iHarrow
    #1

    Hello guys i want script that do after i finish the EE give all player in the server money in bank file

    i use a bank that save player's money on /file/bank-> then Here all Guid players like 54309.txt
    inside the txt files is player's money

    Edit: i dont have experience on gsc

    1 Reply Last reply
    0
    • asunaqqundefined Offline
      asunaqqundefined Offline
      asunaqq
      wrote on last edited by
      #2

      All players who participated in said easter egg or the entire file?

      iHarrowundefined 1 Reply Last reply
      0
      • asunaqqundefined asunaqq

        All players who participated in said easter egg or the entire file?

        iHarrowundefined Offline
        iHarrowundefined Offline
        iHarrow
        wrote on last edited by
        #3

        asunaqq just the player that finish the easter egg

        1 Reply Last reply
        0
        • asunaqqundefined Offline
          asunaqqundefined Offline
          asunaqq
          wrote on last edited by
          #4

          Do you have a function that determines when an easter egg is completed?

          iHarrowundefined 1 Reply Last reply
          0
          • asunaqqundefined asunaqq

            Do you have a function that determines when an easter egg is completed?

            iHarrowundefined Offline
            iHarrowundefined Offline
            iHarrow
            wrote on last edited by
            #5

            asunaqq i saw someone in want same as me but he did it see this post

            https://forum.plutonium.pw/topic/40110/how-to-detect-a-finished-easter-egg-on-bo2-origins?_=1739981406630

            1 Reply Last reply
            0
            • asunaqqundefined Offline
              asunaqqundefined Offline
              asunaqq
              wrote on last edited by
              #6

              That's the entire script though, no?

              easterEggComplete()
              {
                  level endon("end_game");
              
                  level waittill("tomb_sidequest_complete"); 
              
                  players = getPlayers(); 
              
                  foreach (player in players)
                  {
                      guid = player getGuid();
                      path = "bank/" + guid + ".txt";
              
                      if (fileExists(path))
                      {
                          player.pers["bank"] = int(player.pers["bank"]) + 250000;
                          player updateBankValue(player.pers["bank"]);
                          player tell("^2$^7" + valueToString(250000) + " deposited for finishing EE");
                      }
                  }
              }
              

              Credits to notpiratecantfly for basically the entire script just a small modification added

              iHarrowundefined 1 Reply Last reply
              0
              • asunaqqundefined asunaqq

                That's the entire script though, no?

                easterEggComplete()
                {
                    level endon("end_game");
                
                    level waittill("tomb_sidequest_complete"); 
                
                    players = getPlayers(); 
                
                    foreach (player in players)
                    {
                        guid = player getGuid();
                        path = "bank/" + guid + ".txt";
                
                        if (fileExists(path))
                        {
                            player.pers["bank"] = int(player.pers["bank"]) + 250000;
                            player updateBankValue(player.pers["bank"]);
                            player tell("^2$^7" + valueToString(250000) + " deposited for finishing EE");
                        }
                    }
                }
                

                Credits to notpiratecantfly for basically the entire script just a small modification added

                iHarrowundefined Offline
                iHarrowundefined Offline
                iHarrow
                wrote on last edited by
                #7

                asunaqq i got errors 58eef58f-278b-401b-ba70-c1dded2d909f-image.png

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Donate