Jump to content
  • 0

Getting Incorrect Item on Item Location (Headgears)


Yami

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   2
  • Joined:  01/02/14
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Check this link, you have same topic

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   2
  • Joined:  01/02/14
  • Last Seen:  

Thank you @technoken! You've been alot of help. Got it fixed! Kudos!

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