Thread: [PI] Question

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 [PI] Question 
    Registered Member
    Join Date
    Aug 2013
    Posts
    134
    Thanks given
    25
    Thanks received
    2
    Rep Power
    19
    Here is my ActionHandler case 4126:

    Code:
    case 4126:
    		if (c.getPA().inGamesWait())
    				return;
    		if (!c.chestOpen) {
    		Chest.Open(objectType, c);
    		c.getPA().removeObject(c.objectX, c.objectY);
    		}
    		break;
    I need to add something in my HungerGames class so it resets the spawn after every game. My question: How do I do that?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Just respawn the objects... The same way you first spawned it..
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2013
    Posts
    134
    Thanks given
    25
    Thanks received
    2
    Rep Power
    19
    Quote Originally Posted by True Faith View Post
    Just respawn the objects... The same way you first spawned it..
    That really explains it.... I spawned it in ObjectManager, how is it going to spawn that again...
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Christoph3r View Post
    That really explains it.... I spawned it in ObjectManager, how is it going to spawn that again...
    If you use your head a little more and find out how those custom object spawns even spawn, you'd find out your answer
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2013
    Posts
    134
    Thanks given
    25
    Thanks received
    2
    Rep Power
    19
    Quote Originally Posted by True Faith View Post
    If you use your head a little more and find out how those custom object spawns even spawn, you'd find out your answer
    Would this work?

    public void loadCustomSpawns2(Client client)
    {
    hunger games chest spawns
    }

    then after the minigame ends in the end statement I add this:

    loadCustomSpawns2(c);???
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Christoph3r View Post
    Would this work?

    public void loadCustomSpawns2(Client client)
    {
    hunger games chest spawns
    }

    then after the minigame ends in the end statement I add this:

    loadCustomSpawns2(c);???
    You're getting warmer, now test your theory and make amends
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2013
    Posts
    134
    Thanks given
    25
    Thanks received
    2
    Rep Power
    19
    Quote Originally Posted by True Faith View Post
    You're getting warmer, now test your theory and make amends
    Hmm, I get this:

    Code:
    src\server\model\minigames\HungerGames.java:133: error: cannot find symbol
                            loadCustomSpawns2(c);
                            ^
      symbol:   method loadCustomSpawns2(Client)
      location: class HungerGames
    What am I doing wrong?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Christoph3r View Post
    Hmm, I get this:

    Code:
    src\server\model\minigames\HungerGames.java:133: error: cannot find symbol
                            loadCustomSpawns2(c);
                            ^
      symbol:   method loadCustomSpawns2(Client)
      location: class HungerGames
    What am I doing wrong?
    Lol............................
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2013
    Posts
    134
    Thanks given
    25
    Thanks received
    2
    Rep Power
    19
    Quote Originally Posted by True Faith View Post
    Lol............................
    Lol....... doesn't help.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Christoph3r View Post
    Lol....... doesn't help.
    Someone else can explain, I'd rather not waste time explaining something so dumb
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] question
    By Syndicate in forum Help
    Replies: 1
    Last Post: 05-01-2011, 06:34 PM
  2. [PI] Questions [PI]
    By Urban Nazi in forum Help
    Replies: 1
    Last Post: 11-27-2010, 06:51 AM
  3. [PI] Question Really easy
    By trayswizzle25 in forum Help
    Replies: 3
    Last Post: 11-11-2010, 05:05 PM
  4. [pi] questions new coder
    By brendan s in forum Help
    Replies: 0
    Last Post: 10-25-2010, 10:43 PM
  5. PI question about a questtut
    By blacksh00t in forum Help
    Replies: 4
    Last Post: 08-22-2010, 09:05 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •