Jump to content
  • 0

REQUESTING FOR INSTANTS EQUIPS DEPENDS ON JOB


Question

Posted

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.

1 answer to this question

Recommended Posts

  • 0
Posted

something like this ?


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