Thread: Domion Chest Rewards

Results 1 to 3 of 3
  1. #1 Domion Chest Rewards 
    Donator
    Mos Def's Avatar
    Join Date
    Jan 2013
    Posts
    173
    Thanks given
    3
    Thanks received
    6
    Rep Power
    3
    Hey guys, im making it so that when you get 500 Killcount in DT then you have rights to unlimited goliath gloves etc
    But how do i make the rewards chest interface show the gloves inside of it if you know what i mean?

    Sort of what a shop has, you can see the items.. Sorry if i'm sounding like a spastic it's 3am and im tired af.
    Please let me know so i can add this

    Thnaks for the help in advance.
    Reply With Quote  
     

  2. #2  
    *breaks walking*

    Cody_'s Avatar
    Join Date
    Dec 2010
    Posts
    732
    Thanks given
    219
    Thanks received
    203
    Rep Power
    286
    Code:
    	public void open_rewards() {
    		player.get_interface_manager().send_interface(1171);
    		if(rewards == null) {
    			rewards = new Item[2];
    			rewards[0] = new Item(995, factor * 4);
    			if(Utilities.random(50) == 20 || player.is_owner())
    				rewards[1] = new Item(get_reward(), 1);
    		}
    		player.get_packets().send_inter_options_script(1171, 7, 101, 8, 3, "Take", "Discard");
    		player.get_packets().unlock_icomponent_option_slots(1171, 7, 0, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    		player.get_packets().send_items(101, rewards);
    		factor = 0;
    	}
    I'm not changing the snake_case for a help thread, you can do it.
    Reply With Quote  
     

  3. #3  
    Donator
    Mos Def's Avatar
    Join Date
    Jan 2013
    Posts
    173
    Thanks given
    3
    Thanks received
    6
    Rep Power
    3
    Quote Originally Posted by Codykins View Post
    Code:
    	public void open_rewards() {
    		player.get_interface_manager().send_interface(1171);
    		if(rewards == null) {
    			rewards = new Item[2];
    			rewards[0] = new Item(995, factor * 4);
    			if(Utilities.random(50) == 20 || player.is_owner())
    				rewards[1] = new Item(get_reward(), 1);
    		}
    		player.get_packets().send_inter_options_script(1171, 7, 101, 8, 3, "Take", "Discard");
    		player.get_packets().unlock_icomponent_option_slots(1171, 7, 0, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
    		player.get_packets().send_items(101, rewards);
    		factor = 0;
    	}
    I'm not changing the snake_case for a help thread, you can do it.
    Thank you dude
    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. Chest Reward on a Timer?
    By Tucking Fypo in forum Help
    Replies: 14
    Last Post: 09-26-2012, 02:38 AM
  2. [639 Dementhium] Random Chest Reward Error
    By imsoconfused in forum Help
    Replies: 4
    Last Post: 08-21-2012, 08:41 PM
  3. Crystal Chest reward using BoxReward
    By Zanix in forum Snippets
    Replies: 1
    Last Post: 04-02-2012, 10:28 AM
  4. How to change Chest rewards
    By Achilles40 in forum Help
    Replies: 18
    Last Post: 02-21-2012, 11:09 PM
  5. Replies: 3
    Last Post: 04-03-2011, 03:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •