Jump to content
  • 0

script not working


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

	
	        mes "Card removal cost 200,000 zeny.";
	
	
	        mes "  ";
	
	
	        mes "  ";
	
	
	        mes "Continue?";
	
	
	        next;
	
	
	        switch(select("Yes:No")) {
	
	
	 
	
	
	case 1:
	
	
	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 .@part,select(.@menu$);                   //
	
	
	                //      if ( getequipisequiped(.@part) ){             //
	
	
	                //      mes "[ Ultimate Kafra ]";                     //
	
	
	                //      mes "You're not wearing anything...";         //
	
	
	                //      close;                                        //
	
	
	                //====================================================//
	
	
	                        }
	
	
	                        if(getequipcardcnt(.@part) == 0) {
	
	
	                                mes "[ Ultimate Kafra ]";
	
	
	                                mes "There is no card on this item....";
	
	
	                                close;
	
	
	                        }
	
	
	                        set .@cardcount,getequipcardcnt(.@part);
	
	
	                       
	
	
	                        if (!checkweight(1202,(.@cardcount+1))) {
	
	
	                                mes "I'm sorry, but you're carrying too much stuff.";
	
	
	                                mes "Please free some weight...";
	
	
	                                close;
	
	
	                        }
	
	
	



the part where it's circled is not working can anybody help please...
  Edited by caspa
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Can you post the full script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

BUMP

Edited by caspa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


mes "[ Ultimate Kafra ]";

mes "Card removal cost 200,000 zeny.";

mes " ";

mes " ";

mes "Continue?";

next;

switch(select("Yes:No")) {

case 1:

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 .@part,select(.@menu$);

if(!getequipisequiped(.@part)) {

mes "[ Ultimate Kafra ]";

mes "You're not wearing anything...";

close;

}

if(getequipcardcnt(.@part) == 0) {

mes "[ Ultimate Kafra ]";

mes "There is no card on this item....";

close;

}

set .@cardcount,getequipcardcnt(.@part);

if (!checkweight(1202,(.@cardcount+1))) {

mes "I'm sorry, but you're carrying too much stuff.";

mes "Please free some weight...";

close;

}

mes "[ Ultimate Kafra ]";

mes "Remove " + .@cardcount + " card(s) in " + getequipname(.@part) + "["+getitemslots( getequipid(.@part) )+"] Item?";

next;

menu "Yes",yesremove,"No",noremove;

noremove:

mes "[ Ultimate Kafra ]";

mes "Okay, suit yourself.";

close;

yesremove:

if ( zeny < 200000){

mes "[ Ultimate Kafra ]";

mes "Hey, you don't have enough zeny.";

close;

}

mes "[ Ultimate Kafra ]";

mes "Please wait...";

mes " ";

mes " ";

sleep2 100;

mes "^009900*Uncompound Successful*^000000";

set zeny,zeny - 200000;

next;

successremovecards .@part;

mes "[ Ultimate Kafra ]";

mes "Here's your Item...";

close;

case 3:

mes "Okay, comeback when you need my service.";

close;

}

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

BUMP

Edited by caspa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Remove:

set .@part,select(.@menu$);
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

[sOLVED]

Edited by caspa
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...