PDA

View Full Version : Random Rewards


Cutter
10-05-2004, 10:45 PM
Is there a way to make a quest npc give random rewards upon quest completion in 5.7DR6 and does DING work in that version.. I know it was talked about before.. Any help on this would greatly be appreciated.. also In future releases a function to call sound would be awesome (i know this is not a request forum but figured i would add that in there.. didnt want to make a separate thread just for that)

m0oni9
10-06-2004, 07:33 AM
You could probably try something along the lines of:
@items = (123, 456, 789);

srand();
quest::summonitem($items[rand() * @items]);