Jump to content
  • 0

MVP Ladder Random Rewards


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   7
  • Joined:  06/29/12
  • Last Seen:  

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;

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2370
  • Joined:  10/28/11
  • Last Seen:  

6746,7914,969,31120

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   7
  • Joined:  06/29/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2370
  • Joined:  10/28/11
  • Last Seen:  

set .round_item_id, (.Random) ;

change to

set .round_item_id, .Random;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   7
  • Joined:  06/29/12
  • Last Seen:  

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;

 

Link to comment
Share on other sites

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.

×
×
  • Create New...