Jump to content
  • 0

Prize of Hero


Question

Posted

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

3 answers to this question

Recommended Posts

  • 1
Posted
// 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 :)) 

  • 0
Posted

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

  • 0
Posted
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 !

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