Jump to content
  • 0

MVP Ladder Random Rewards


Question

Posted

Hi,

I spend almost 1 hour to figure it out but still said non-existing item everytime I killed MVP.. IDK Which part did I messed up.. So I post here for help.. Please advise.. Thank you in advance..

 

	// item reward for completing each round
	setarray .Rewards[0],6746,7914,969,31120;
	set .Random, rand( getarraysize( .Rewards) );
	
	set .round_item_id, (.Random) ;
	set .round_item_amount, 1;

 

4 answers to this question

Recommended Posts

  • 0
Posted
10 minutes ago, Emistry said:

6746,7914,969,31120

check your item_db for all these items.... especially 31120.

It's in item_db.txt.. 31120 is my custom item.. And its working..

  • 0
Posted
42 minutes ago, Emistry said:

set .round_item_id, (.Random) ;

change to


set .round_item_id, .Random;

 

not working..

BTW I manage to fix it by changing this below script.. But its not random.. Keep giving same item (6746)..

 

// item reward for completing each round
	setarray .@items[0],6746,7914;
	set .@item, .@items[rand (getarraysize(.@items)) ];
	
	set .round_item_id, .@item ;
	set .round_item_amount, 1;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...