Jump to content
  • 0

Question

Posted (edited)

can i request a script that is something like this....


 

setarray .reqid[1],7776,14232,7179,7539;
setarray .reqat[1],(2,5),(3,6),(50,100),(79,128);



getitem .reqid,reqat;
mes " 'name-of-player' has acquired 'how-many-did-he-get-even-though-its-random'x  'what-item-did-he-get' ";
mes "congrats";



 
Edited by caspa

1 answer to this question

Recommended Posts

Posted


set .@random,rand( .itemlist_size );

set .@amount,rand( .min_amount[.@random],.max_amount[.@random] );

getitem .itemlist[.@random],.@amount;

announce strcharinfo(0)+" gained "+.@amount+" x "+getitemname( .itemlist[.@random] ),0;

end;

OnInit:

setarray .itemlist,512,607,608;

setarray .min_amount,1,1,1;

setarray .max_amount,10,100,200;

set .itemlist_size,getarraysize( .itemlist );

end;

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