Thread: [PI] Barrows

Results 1 to 4 of 4
  1. #1 [PI] Barrows 
    Registered Member
    Join Date
    Mar 2012
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Code:
    case 10284:
    			//c.shakeScreen(3, 2, 3, 2);
    			if(c.barrowsKillCount < 5) {
    				c.sendMessage("You must kill all the brothers to receive a reward!");
    			}
    			if(c.barrowsKillCount == 5 && c.barrowsNpcs[c.randomCoffin][1] == 1) {
    				c.sendMessage("I have already awakened this brother.");
    			}
    			if(c.barrowsNpcs[c.randomCoffin][1] == 0 && c.barrowsKillCount >= 5) {
    				Server.npcHandler.spawnNpc(c, c.barrowsNpcs[c.randomCoffin][0], 3551, 9694-1, 0, 0, 120, 30, 200, 200, true, true);
    				c.barrowsNpcs[c.randomCoffin][1] = 1;
    			}
    			if((c.barrowsKillCount > 5 || c.barrowsNpcs[c.randomCoffin][1] == 2) && c.getItems().freeSlots() >= 2) {
    				c.resetShaking();
    				c.getPA().resetBarrows();
    				c.getItems().addItem(c.getPA().randomRunes(), Misc.random(150) + 100);
    				if (Misc.random(2) == 1)
    					c.getItems().addItem(c.getPA().randomBarrows(), 1);
    				c.getPA().startTeleport(3564, 3288, 0, "modern");
    			} else if(c.barrowsKillCount > 5 && c.getItems().freeSlots() <= 1) {
    				c.sendMessage("You need two empty slots in your inventory to receive the reward.");
    			}
    			break;
    How would I alter the drop rate of Barrows so that barrows isn't given 100% of the time?
    Reply With Quote  
     

  2. #2  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    It's already 50% of the time.

    check this ;
    Code:
    				if (Misc.random(2) == 1)
    					c.getItems().addItem(c.getPA().randomBarrows(), 1);
    It's like throwing a 25cent , if it gets on a side (=1) it gives you a barrow item ( said on the next line)

    Change it to 6-8 ( the misc.random) and that will be more appropriate
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2012
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Olinice View Post
    It's already 50% of the time.

    check this ;
    Code:
    				if (Misc.random(2) == 1)
    					c.getItems().addItem(c.getPA().randomBarrows(), 1);
    It's like throwing a 25cent , if it gets on a side (=1) it gives you a barrow item ( said on the next line)

    Change it to 6-8 ( the misc.random) and that will be more appropriate
    Thank you. I really appreciate it.
    Reply With Quote  
     

  4. #4  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    Quote Originally Posted by Banana Boy View Post
    Thank you. I really appreciate it.
    You're free to thanks or rep ahaha
    Attached image
    Reply With Quote  
     


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] Barrows
    By Boxxy in forum Help
    Replies: 0
    Last Post: 10-24-2010, 03:05 PM
  2. [PI] Barrows
    By SodomizedU in forum Help
    Replies: 6
    Last Post: 10-18-2010, 09:44 PM
  3. [PI] Barrows fucked up..
    By Alexander in forum Help
    Replies: 11
    Last Post: 09-17-2010, 06:31 PM
  4. PI Barrows
    By Owned_ in forum Help
    Replies: 6
    Last Post: 05-31-2010, 07:15 PM
  5. PI Barrows
    By Owned_ in forum Requests
    Replies: 0
    Last Post: 05-31-2010, 02:42 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
  •