Jump to content
  • 0

add something like


Question

Posted

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

2 answers to this question

Recommended Posts

Posted (edited)

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
Posted

 

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...