Jump to content
  • 0

Help Checking Sloted Item


Jayz

Question


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

help please getitemslot not working... i want to make all sloted item is not allowed to make slot again

izlude,121,254,5	script	Sloter	794,{
set .@name$,"[sloter]";
mes .@name$;
mes "What do you want to make slot?";
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 .@menu$, .@menu$ + ":";
		}
	set .@EQPart,select( .@menu$ );
	next;
	if( Zeny < 100000 ){
		mes .@name$;
		mes "You need ^ff0000100.000^000000 Zeny.";
   }else if (getItemSlots(.@EQPart) > 1 ) {
		mes .@name$;
		mes "Your Item is sloted";
	}else{
		set Zeny,Zeny - 100000;
		if( rand(100) < 10 ){
	   	 makeslot (.@EQPart);
			specialeffect2 EF_REFINEOK;
			mes .@name$;
			mes "Congrats";
		}else{
			failedrefitem .@EQPart;
			mes .@name$;
			mes "Bad Luck";
		}
	}
	close;
}

Edited by clydelion
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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

change

}else if (getItemSlots(.@EQPart) > 1 {

to

}else if (getItemSlots(.@EQPart) >= 1 {

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

still not working

}else if (getItemSlots(.@EQPart) >= 1 { = Error

}else if (getItemSlots(.@EQPart) >= 1 ) { = when item sloted still going to MakeSlot

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

use this instead

 }else if (getItemSlots(getequipid(.@EQPart)) >= 1 ) {
mes .@name$;
mes "Your Item is sloted";
}else{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

thanks clydelion

Ok 1more thing.. how to check the the (.@EQPart) Part we have restriction card? example if your armor have GR Card you cannot continue to makeslot

like this

}else if (countitem(4047(.@EQPart)) >= 1 ) {

mes .@name$;

mes "Your Item have ghostring card";

}else{

Link to comment
Share on other sites


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

if( getequipcardid( .@EQPart,0 ) == 4047 ){
   mes "You equipped Card";
   close;
}

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