Jump to content
Sign in to follow this  
Dastgir

[Function] random item/variable

Recommended Posts

thumb-8b9131c908a4b4e085497e3682fd5b64-randitem.png

File Name: [Function] random item/variable

File Submitter: Dastgir

File Submitted: 23 Jul 2014

File Category: Quest, Shops, Functions & Algorithms

 

This Function does something which is useful for some scripts.

This function gives you item or adds/substract the variable value.

 

Example:

	mes "Random between 7227,1 and 502,2 and 7227,2";	callfunc "rand_add",1,7227,1,502,2,7227,2;	next;	mes "Random between 1 Cash Points and 2 PvP Points";	callfunc "rand_add",2,"#CASHPOINTS","Cash Points",1,"pvp_points","PvP Points",2;	next;	mes "Random items that are mentioned in function";	callfunc "rand_add",0;	close;

 

Setting the value negative for variables will decrease them, while doing so for items, will not delete the item.

 

Click here to download this file

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.