Jump to content
  • 0

Prize of Hero


twiggs62

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  05/16/17
  • Last Seen:  

Hi guys, i would like to request for a script for "prize of hero" box ,  actually i put an instance script "Bios Island" and the reward for the instance is the "price of hero" box, However the item "Prize of Hero" box doesn't give any items when i opened it,

is it ok for me to request for a script for this one ? Thank you

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

// Add in item item_db import
// 35000,Prize_Of_Hero,Prize of Hero,2,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc "prizeofhero"; },{},{} 

//Add in Custom NPC Folder and reload
// Prize Of Hero Contents
function	script	prizeofhero	{
setarray .Items[0],15093,15094,15095,15096,15097,15098,22035,22036,22037; //Add item ID here for additional random items for the box

set .random, rand( getarraysize( .Items ) );
getitem .Items[ .random ], 1;
end;
}

This is a simple one :)) 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

This would be the wrong section I guess, you have to in the database section.

Since I don't exactly know how to make an box item, I can't really help you. But I think there is an extra file for that in the db folder, which defines which items can be received.

Best you look up an box item like the Old Violet Box or so.

Regards, 

Chris

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  05/16/17
  • Last Seen:  

4 hours ago, crazyarashi said:

// Add in item item_db import
// 35000,Prize_Of_Hero,Prize of Hero,2,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc "prizeofhero"; },{},{} 

//Add in Custom NPC Folder and reload
// Prize Of Hero Contents
function	script	prizeofhero	{
setarray .Items[0],15093,15094,15095,15096,15097,15098,22035,22036,22037; //Add item ID here for additional random items for the box

set .random, rand( getarraysize( .Items ) );
getitem .Items[ .random ], 1;
end;
}

This is a simple one :)) 

Oh wow ! so much thnx to you sir crazyarashi .. thank you and more power !

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