Jump to content
  • 0

1 item to Optional items exchange


arun89

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

Hi all, im new here so please bear with me..

would like to request script that can exchange 1 item to few options for use to select

 

1x 2499 for

1x 22000...22001..22002..22003

 

can only exchange 1 for 1 option each time

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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

you can try this

prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	
	mes "Change "+.required_amount+" x "+getitemname( .required_nameid )+" to other item ?";
	.@i = select( .menu$ ) - 1;
	if ( countitem( .required_nameid ) >= .required_amount ) {
		delitem .required_nameid, .required_amount;
		getitem .item[.@i],1;
		mes "Done";
	}
	close;
	
	OnInit:
		.required_nameid = 2499;
		.required_amount = 1;
		
		setarray .item,
			22000,
			22001,
			22002,
			22003;
			
		.@item_size = getarraysize( .item );
		for ( .@i = 0; .@i < .@item_size; .@i++ ) {
			.menu$ = .menu$ + getitemname( .item[.@i] ) + ":";
		}
		end;
	
}

 

Link to comment
Share on other sites

  • 0

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

this is euphy multi currency shop script....

you can sell items for particular cash/item in different tabs with different item cash

Multi-Shop v1.2.txt

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

17 minutes ago, Cyro said:

this is euphy multi currency shop script....

you can sell items for particular cash/item in different tabs with different item cash

Multi-Shop v1.2.txt

 

hi. i would prefer if the npc is a talking npc and not shop. is there any other?

Link to comment
Share on other sites

  • 0

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

what do you mean by talking npc?

you can modify this script and add msgs as you wish!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

46 minutes ago, Cyro said:

what do you mean by talking npc?

you can modify this script and add msgs as you wish!

i got it! thanks ^^ i will modify

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