Jump to content
  • 0

Item Exchanger ( Menu Error )


awesomazingxed

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

Hello Everybody, this is an item exchanger. Can someone tell me what's wrong plus can anyone help me with this? Any help will be appreciated. Ciao. 

 

 

rAthena Version SVN: r17709

 

oh7n1w.jpg

turbo_room,106,117,4	script	Currency Exchanger	860,{

menu "Skulls to PODs",-,"PODs to Skulls",CS_2,"^ff0000Leave^000000",M_EXIT;

if( countitem(7420) < 1000 )
	mes "You didnt have 1000 "+getitemname( 7420 );
else{
	set .@Amount,( countitem(7420) / 1000 );
	delitem 7420,( .@Amount * 1000 );
	getitem 7179,.@Amount;
	mes "Done...you gained "+.@Amount+" "+getitemname(7179);
}
close;
}

CS_2:

if( countitem(7179) < 1 )
	mes "You didnt have 1 "+getitemname( 7179 );
else{
	set .@Amount,( countitem(7420) / 1000 );
	delitem 7179,( .@Amount * 1 );
	getitem 7420,1000;
	mes "Done...you gained 1000 "+getitemname(7179);
}
close;
}

M_EXIT:
	mes "^ff0000@awesomazingxed^000000 ( Admin )";
	mes callfunc("F_Bye");
	close;
OnInit:

end;
}
Edited by awesomazingxed
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

 

change this

}
close;
}

CS_2:

if( countitem(7179) < 1 )

to

}
close;

CS_2:

if( countitem(7179) < 1 )

 

Finally it works! Thanks Stolao  /no1

turbo_room,106,117,4	script	Currency Exchanger	860,{

menu "Skulls to PODs",-,"PODs to Skulls",CS_2,"^ff0000Leave^000000",M_EXIT;

if( countitem(7420) < 1000 )
	mes "You didnt have 1000 "+getitemname( 7420 );
else{
	set .@Amount,( countitem(7420) / 1000 );
	delitem 7420,( .@Amount * 1000 );
	getitem 7179,.@Amount;
	mes "Done...you gained "+.@Amount+" "+getitemname(7179);
}
close;

CS_2:

if( countitem(7179) < 1 )
	mes "You didnt have 1 "+getitemname( 7179 );
else{
	set .@Amount,( countitem(7420) / 1000 );
	delitem 7179,( .@Amount * 1 );
	getitem 7420,1000;
	mes "Done...you gained 1000 "+getitemname(7179);
}
close;

M_EXIT:
	mes "^ff0000@awesomazingxed^000000 ( Admin )";
	mes callfunc("F_Bye");
	close;
OnInit:

end;
}
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

change this

}
close;
}

CS_2:

if( countitem(7179) < 1 )

to

}
close;

CS_2:

if( countitem(7179) < 1 )
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...