Jump to content
  • 0

add something like


Budots

Question


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

Hi guys,

 

I have here a script that will exchange 1,000pcs (item id: 9524) into 1 Proof of Donation,

 

Can you add on my script that it will also change vice versa

 

 

1 Proof of Donation = 1,000pcs (item id: 9524) ???

 

 

Thanks in advance ! :P


bump

bc_pods.txt

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

Remove

menu "Convert ^ff0000"+getitemname(9524)+"^000000 to ^ff0000"+getitemname(7179)+"^000000", L_PODS, "Nevermind", L_Cancel;

Add

menu "Convert ^ff0000"+getitemname(9524)+"^000000 to ^ff0000"+getitemname(7179)+"^000000", L_PODS, "Convert ^ff0000"+getitemname(7179)+"^000000 to ^ff0000"+getitemname(9524)+"^000000", L_PODS2, "Nevermind", L_Cancel;

Then add this Line

L_PODS2:
next;
	mes "[Trader]";
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1 "+getitemname(7179)+" is 1,000 "+getitemname(9524)+"";
	input .@count;
	if (.@count == 0) close;
	if (countitem(7179) < .@count*1) goto L_Noitem;
	delitem 7179,.@count*1;
	getitem 9524,.@count*1000;
	specialeffect2 248;
	close;

Whole Script didn't test it =)

prontera,147,157,5	script	BC - PODS	100,{
mes "[Trader]"; 
mes "You currently have ^ff0000"+countitem(9524)+"^000000 "+getitemname(9524)+"";
menu "Convert ^ff0000"+getitemname(9524)+"^000000 to ^ff0000"+getitemname(7179)+"^000000", L_PODS, "Convert ^ff0000"+getitemname(7179)+"^000000 to ^ff0000"+getitemname(9524)+"^000000", L_PODS2, "Nevermind", L_Cancel;

L_PODS:
next;
	mes "[Trader]";
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1,000 "+getitemname(9524)+" is 1 "+getitemname(7179)+"";
	input .@count;
	if (.@count == 0) close;
	if (countitem(9524) < .@count*1000) goto L_Noitem;
	delitem 9524,.@count*1000;
	getitem 7179,.@count*1;
	specialeffect2 248;
	close;
	
L_PODS2:
next;
	mes "[Trader]";
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1 "+getitemname(9524)+" is 1,000 "+getitemname(7179)+"";
	input .@count;
	if (.@count == 0) close;
	if (countitem(7179) < .@count*1) goto L_Noitem;
	delitem 7179,.@count*1;
	getitem 9524,.@count*1000;
	specialeffect2 248;
	close;
	
L_Noitem:
next;
	mes "[Trader]";
	mes "[ ^ff0000X^000000 ] Insufficient "+getitemname(9524)+"";
	close;
L_Cancel:
	mes "[Trader]";
	mes "Feel free to use my service anytime!";
	close;
end;
}
Edited by Yoona
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:  

 

Remove

menu "Convert ^ff0000"+getitemname(9524)+"^000000 to ^ff0000"+getitemname(7179)+"^000000", L_PODS, "Nevermind", L_Cancel;

Add

menu "Convert ^ff0000"+getitemname(9524)+"^000000 to ^ff0000"+getitemname(7179)+"^000000", L_PODS, "Convert ^ff0000"+getitemname(7179)+"^000000 to ^ff0000"+getitemname(9524)+"^000000", L_PODS2, "Nevermind", L_Cancel;

Then add this Line

L_PODS2:
next;
	mes "[Trader]";
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1 "+getitemname(7179)+" is 1,000 "+getitemname(9524)+"";
	input .@count;
	if (.@count == 0) close;
	if (countitem(7179) < .@count*1) goto L_Noitem;
	delitem 7179,.@count*1;
	getitem 9524,.@count*1000;
	specialeffect2 248;
	close;

Whole Script didn't test it =)

prontera,147,157,5	script	BC - PODS	100,{
mes "[Trader]"; 
mes "You currently have ^ff0000"+countitem(9524)+"^000000 "+getitemname(9524)+"";
menu "Convert ^ff0000"+getitemname(9524)+"^000000 to ^ff0000"+getitemname(7179)+"^000000", L_PODS, "Convert ^ff0000"+getitemname(7179)+"^000000 to ^ff0000"+getitemname(9524)+"^000000", L_PODS2, "Nevermind", L_Cancel;

L_PODS:
next;
	mes "[Trader]";
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1,000 "+getitemname(9524)+" is 1 "+getitemname(7179)+"";
	input .@count;
	if (.@count == 0) close;
	if (countitem(9524) < .@count*1000) goto L_Noitem;
	delitem 9524,.@count*1000;
	getitem 7179,.@count*1;
	specialeffect2 248;
	close;
	
L_PODS2:
next;
	mes "[Trader]";
	mes "How many you want to exchange?";
	mes "^ff0000Note^000000: 1 "+getitemname(9524)+" is 1,000 "+getitemname(7179)+"";
	input .@count;
	if (.@count == 0) close;
	if (countitem(7179) < .@count*1) goto L_Noitem;
	delitem 7179,.@count*1;
	getitem 9524,.@count*1000;
	specialeffect2 248;
	close;
	
L_Noitem:
next;
	mes "[Trader]";
	mes "[ ^ff0000X^000000 ] Insufficient "+getitemname(9524)+"";
	close;
L_Cancel:
	mes "[Trader]";
	mes "Feel free to use my service anytime!";
	close;
end;
}

NPC just appear in game, but it does not working.

OPS I SOLVED IT. HEHEHE

THANKS A LOT /lv

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