Jump to content
  • 0
Enoch

REQUESTING FOR INSTANTS EQUIPS DEPENDS ON JOB

Question

HI, I WANT TO ASK IF THERE'S A SCRIPT LIKE THIS INSTANT EQUIP PER JOB

SAMPLE IM A CHAMPION, I CHOOSE CHAMPION IN THE LIST THEN IT WILL AUTO EQUIP TO ME THESE ITEMS [ POO POO HAT, SUNGLASSES, PIPE, SWORD MACE, BUCKER, SHOES WITH CARDS AND REFINE, I HOPE YOU CAN HELP ME THANK YOU VERY MUCH.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

something like this ?


prontera,155,181,5	script	Sample	757,{
	[email protected] = select(.menu$) - 1;
	[email protected] = getarraysize(getd(".array_"+.class[[email protected]]));
	copyarray [email protected], getd(".array_"+.class[[email protected]]), [email protected];
	for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) {
		if (!countitem([email protected][[email protected]]))
			getitem [email protected][[email protected]], 1;
		if (!isequipped([email protected][[email protected]]))
			equip [email protected][[email protected]];
	}
	mes "You have equipped your gear.";
	close;
	
	function	func_EquipClassItem	{
		[email protected] = getarg(0, 0);
		[email protected] = getargcount();
		for ([email protected] = 1; [email protected] <= [email protected]; [email protected]++)
			[email protected][[email protected] - 1] = getarg([email protected], 0);
		copyarray .array
		
		copyarray getd(".array_"[email protected]), [email protected], [email protected] - 1;
		.menu$ = .menu$ + jobname([email protected]) + ":";
		.class[getarraysize(.class)] = [email protected];
		return;
	}
	
	OnInit:
		// func_EquipClassItem(<class>, <item_list>,...,<item_list>);
		func_EquipClassItem(Job_Champion, 2289, 2202, 5377, 1517, 2104, 2404);
		end;
}

 

Link to comment
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
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.



×
×
  • Create New...

Important Information

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