Jump to content
  • 0

REQUESTING FOR INSTANTS EQUIPS DEPENDS ON JOB


Enoch

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  67
  • Reputation:   0
  • Joined:  10/21/19
  • Last Seen:  

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

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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;
}

 

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