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

Plutonium

  1. Home
  2. BO2 Server Hosting Support
  3. How to detect a finished Easter Egg on BO2 Origins?

How to detect a finished Easter Egg on BO2 Origins?

Scheduled Pinned Locked Moved BO2 Server Hosting Support
3 Posts 2 Posters 247 Views 2 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.
  • notpiratecantflyundefined Offline
    notpiratecantflyundefined Offline
    notpiratecantfly
    wrote on last edited by notpiratecantfly
    #1

    I'm trying to make a plugin that pays players once the easter egg is completed. I've got it mostly finished but i am unsure of how to detect when the EE is done.

    I thought maybe:

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

    Would work. I think im using waittill on the wrong dvar, or maybe that dvar doesn't even exist?

    Any help would be great.

    Hadi77KSAundefined 1 Reply Last reply
    0
    • notpiratecantflyundefined notpiratecantfly

      I'm trying to make a plugin that pays players once the easter egg is completed. I've got it mostly finished but i am unsure of how to detect when the EE is done.

      I thought maybe:

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

      Would work. I think im using waittill on the wrong dvar, or maybe that dvar doesn't even exist?

      Any help would be great.

      Hadi77KSAundefined Offline
      Hadi77KSAundefined Offline
      Hadi77KSA
      Contributor
      wrote on last edited by
      #2
      level waittill( "tomb_sidequest_complete" );
      

      That should suffice for if you want the reward to be given once the souls step is done.

      notpiratecantflyundefined 1 Reply Last reply
      1
      • iHarrowundefined iHarrow referenced this topic on
      • Hadi77KSAundefined Hadi77KSA
        level waittill( "tomb_sidequest_complete" );
        

        That should suffice for if you want the reward to be given once the souls step is done.

        notpiratecantflyundefined Offline
        notpiratecantflyundefined Offline
        notpiratecantfly
        wrote on last edited by
        #3

        Hadi77KSA oh my god. thank you so much.

        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