Jump to content
  • 0

How to get an equiped items location


rom3r

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   1
  • Joined:  05/05/14
  • Last Seen:  

Im trying to make an enchanter but i want only certain runes to be allowed to be put garmet armor headgear ect.But im having trouble getting it to go to a diffrent menu depending on were the item selected is equiped.

prontera,156,179,5	script	Special Enchanter	100,{
	if (EnchantTutorial == 1){
		mes "[^0000FFSpecial Enchant^000000]";
		mes "Welcome back!";
		mes "Ready to get started?";
		if ( select ( "Yes", "No" ) == 2 ) close;
		mes "Please select the item you wish to enchant.";
		next;
		setarray .@position$[1],"Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3";
		set .@menu$,"";
		for(set .@i,1; .@i<=10; set .@i,.@i+1) {
			if (getequipisequiped(.@i)) {
				set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
				set .@equipped,1;
			}
			set .@menu$, .@menu$ + ":";
		}
		if (.@equipped == 0) {
			mes "[^0000FFSpecial Enchant^000000]";
			mes "I don't think I can enchant any items you have.";
			mes "Sorry,Try again later.";
			close;
		}
		set .@item, select(.@menu$);
		set .@enchantitemid, getequipid(.@item);
		set .@refinerycnt, getequiprefinerycnt(.@item);
		set .@enchantitemloc, Where the item location varible is suppose to go);
			if (.@enchantitemloc == 1) {
				mes "Im a headgear";
				close;
			}
			else if (.@enchantitemloc == 2) {
				mes "Im a weapon";
				close;
			}

So can someone tell me how exactly i would do that? ty


I feel like a moron I had set

 .@enchantitemloc, getiteminfo(.@enchantitemid,5); 

in the script but only did slot 1 and 2 to test and was clicking my top head gear to try to get to 

if (.@enchantitemloc == 1) {

 thinking 1 was top but it was lower zzzz.Sorry to waste your time pls close

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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