Jump to content
  • 0

Getting Incorrect Item on Item Location (Headgears)


Question

Posted

Hi there, I have this Costume maker script. The script works but it can't detect the correct Items on the correct Location.

In example, It should only make a menu for Upper, Middle, Lower headgears. But what's happening is, the script only detects right hand equipment.

 

maybe somebody can help me with this issue, I had about the same issue for my card remover script but was then fixed when I grabbed the updated one in rathena github. But unfortunately cannot find anything regarding this issue.

 

I will provide some of the script for you to see.

 

Here:

	setarray .@Position$[1],"Top","Mid","Low";
	setarray .@Position[1],1,9,10;

	set .@Menu$,"";
	for( set .@i, 1; .@i < 10; set .@i, .@i + 1 ) {
		if( getequipisequiped(.@Position[.@i]) )
			set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]";

		set .@Menu$, .@Menu$ + ":";
	}

	set .@Part, .@Position[ select(.@Menu$) ];
	if( !getequipisequiped(.@Part) ) {
		mes "[Costumizer]";
		mes "Your not wearing anything there...";
		close;
	}

	mes "[Costumizer]";
	mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?";
	next;
	if( select("Yes, proceed:No, I am sorry.") == 2 ) {
		mes "[Costumizer]";
		mes "Need some time to think about it, huh?";
		mes "Alright, I understand.";
		close;
		}

Thank you in advanced!!

2 answers to this question

Recommended Posts

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