Jump to content
  • 0

Bag of Coin


Budots

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

Can you help me find a script that will convert 9524(item id) 300pcs into a BAG?


Just like the money bag exchanger, that will convert zeny into bag.


A million of thanks in advance :D :D

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Credits to @Emistryhttp://pastebin.com/raw.php?i=PHqmS0jE

 

Change <bag item id> to your bag id

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

Credits to @Emistryhttp://pastebin.com/raw.php?i=PHqmS0jE

 

Change <bag item id> to your bag id

 

Thanks for the quick reply sir Pats, i just wanna ask if it also does change vice versa? I mean like if i want to change 1 bag into 300pcs (9524) , something like that.

It's not working, hmm it just appeared in game but then its not working, not clickable. /oops

post-20873-0-58968400-1385484512_thumb.png

bag_exchange.txt

Edited by GM Montoy
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   1
  • Joined:  06/06/12
  • Last Seen:  

Like this?

// ID(672) = Bag of Coin edit to change
prontera,231,338,5	script	Bag Exchangers	757,{
menu "Exchange " +getitemname(9524)+" to Bag Coin", L_bag, "Exchange " +getitemname(9524)+ " to Zeny", L_zeny, "Cancel", L_Cancel;

L_bag:
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 300 "+getitemname(9524)+" currently 1 Bag Coins";
	input .@count;
	if (.@count == 0) close; // optional: if player enter 0 script will terminate
	if (countitem(9524) < .@count*300) goto L_Noitem;
	delitem 9524,.@count*300;
	getitem 672,.@count;
	close;
close;

L_zeny:
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1 Bag coin currently 10m each";
	input .@t;
	if (.@t == 0) close;
	readparam(Zeny);
	if( .@t < 1 )||( countitem(672) < .@t ) ||  (readparam(Zeny)>= 1000000000) goto Max_Zeny; //1B max Zeny
	set Zeny,Zeny+10000000*.@t; // 10m of zeny
	delitem 9524,.@t;
	close;

Max_Zeny:
next;
	mes	"Coin Cannot Change Due to Max Zeny you Have.";
	close;
close;

L_Noitem:
next;
	mes "Sorry you dont have enough of item";
close;
	
L_Cancel:
	mes "No problem, Come back again";
close;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Show error if any 

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