[Function] random item/variable

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
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:

Code:
	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

 
Back
Top