Jump to content
  • 0

NPC exchanger cant click


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

good day master help me with my script

 

when i click the npc

 

npc is not pop up a message 

 

this is my script

 

thank you

 

prt_in,86,91,2	script	Gold Coin US Exchanger	4_TREASURE_BOX,{
function Exchange;

switch( select( "Yggdrasilberry Box",
				"Royal Jelly Box",
				"Elunium Box",
				"Costume Iron Chain",
				"Costume Indian Hairband",
				"Costume Wizard Hat",
				"Costume Memmory of Lovers",
				"Costume Spiky Band",
				"Costume Vicious Stop Bandage",
				"Costume Vicious Mind Aura" )){
// Exchange( <Item Gained>,<Amount>,<Item Required>,<Amount> );
Case 1:	Exchange( 13517,1,7720,12 );	break;
Case 2:	Exchange( 13516,5,7720,10 );	break;
Case 3:	Exchange( 12997,10,7720,11 );	break;
Case 4:	Exchange( 19528,10,7720,18 );	break;
Case 5:	Exchange( 31130,10,7720,25 );	break;
Case 6:	Exchange( 20093,10,7720,18 );	break;
Case 7:	Exchange( 20376,10,7720,28 );	break;
Case 8:	Exchange( 19527,10,7720,18 );	break;
Case 9:	Exchange( 19825,10,7720,17 );	break;
Case 10:	Exchange( 20407,10,7720,35 );	break;
default:
	mes "Wrong Selection";	break;
}
close;

function	Exchange	{
mes "Exchange "+getarg(3)+" "+getitemname( getarg(2) )+" into "+getarg(1)+" "+getitemname( getarg(0) )+"?";
if( select("Yes:No") == 1 ){
	if( countitem( getarg(2) ) < getarg(3) ){
		mes "Sorry you didnt have enough Items to trade.";
		break;
	}else{
		mes "Done";
		delitem getarg(2),getarg(3);
		getitem getarg(0),getarg(1);
	}
}
return;
}

}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

2 hours ago, Questune09 said:

good day master help me with my script

 

when i click the npc

 

npc is not pop up a message 

 

this is my script

 

thank you

 


prt_in,86,91,2	script	Gold Coin US Exchanger	4_TREASURE_BOX,{
function Exchange;

switch( select( "Yggdrasilberry Box",
				"Royal Jelly Box",
				"Elunium Box",
				"Costume Iron Chain",
				"Costume Indian Hairband",
				"Costume Wizard Hat",
				"Costume Memmory of Lovers",
				"Costume Spiky Band",
				"Costume Vicious Stop Bandage",
				"Costume Vicious Mind Aura" )){
// Exchange( <Item Gained>,<Amount>,<Item Required>,<Amount> );
Case 1:	Exchange( 13517,1,7720,12 );	break;
Case 2:	Exchange( 13516,5,7720,10 );	break;
Case 3:	Exchange( 12997,10,7720,11 );	break;
Case 4:	Exchange( 19528,10,7720,18 );	break;
Case 5:	Exchange( 31130,10,7720,25 );	break;
Case 6:	Exchange( 20093,10,7720,18 );	break;
Case 7:	Exchange( 20376,10,7720,28 );	break;
Case 8:	Exchange( 19527,10,7720,18 );	break;
Case 9:	Exchange( 19825,10,7720,17 );	break;
Case 10:	Exchange( 20407,10,7720,35 );	break;
default:
	mes "Wrong Selection";	break;
}
close;

function	Exchange	{
mes "Exchange "+getarg(3)+" "+getitemname( getarg(2) )+" into "+getarg(1)+" "+getitemname( getarg(0) )+"?";
if( select("Yes:No") == 1 ){
	if( countitem( getarg(2) ) < getarg(3) ){
		mes "Sorry you didnt have enough Items to trade.";
		break;
	}else{
		mes "Done";
		delitem getarg(2),getarg(3);
		getitem getarg(0),getarg(1);
	}
}
return;
}

}

 

prt_in,86,91,2	script	Gold Coin US Exchanger	100,{
function Exchange;

switch( select( "Yggdrasilberry Box",
				"Royal Jelly Box",
				"Elunium Box",
				"Costume Iron Chain",
				"Costume Indian Hairband",
				"Costume Wizard Hat",
				"Costume Memmory of Lovers",
				"Costume Spiky Band",
				"Costume Vicious Stop Bandage",
				"Costume Vicious Mind Aura" )){
// Exchange( <Item Gained>,<Amount>,<Item Required>,<Amount> );
case 1:	Exchange( 13517,1,7720,12 );	break;
case 2:	Exchange( 13516,5,7720,10 );	break;
case 3:	Exchange( 12997,10,7720,11 );	break;
case 4:	Exchange( 19528,10,7720,18 );	break;
case 5:	Exchange( 31130,10,7720,25 );	break;
case 6:	Exchange( 20093,10,7720,18 );	break;
case 7:	Exchange( 20376,10,7720,28 );	break;
case 8:	Exchange( 19527,10,7720,18 );	break;
case 9:	Exchange( 19825,10,7720,17 );	break;
case 10:	Exchange( 20407,10,7720,35 );	break;
default:
	mes "Wrong Selection";	break;
}
close;

function	Exchange	{
mes "Exchange "+getarg(3)+" "+getitemname( getarg(2) )+" into "+getarg(1)+" "+getitemname( getarg(0) )+"?";
if(select("Yes","No")==1){
	if( countitem( getarg(2) ) < getarg(3) ){
		mes "Sorry you didnt have enough Items to trade.";
		close;
	}else{
		mes "Done";
		delitem getarg(2),getarg(3);
		getitem getarg(0),getarg(1);
	}
}
return;
}

}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

thank you its working now ^_^

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