Skip to content
  • 0 Unread 0
  • Recent
  • Popular
  • Users
  • 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 674 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.
  • rootprt Offline
    rootprt Offline
    rootprt
    wrote on last edited by rootprt
    #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.

    Hadi77KSA 1 Reply Last reply
    0
    • rootprt rootprt

      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.

      Hadi77KSA Offline
      Hadi77KSA 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.

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

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

        rootprt Offline
        rootprt Offline
        rootprt
        wrote on last edited by
        #3

        Hadi77KSA oh my god. thank you so much.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        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
        • Unread 0
        • Recent
        • Popular
        • Users
        • Donate