Jump to content
  • 0

putting how many bloody branch to trade instead of one by one


Question

Posted (edited)

so i found this script here any one can help me make this script like

asking how many bloody branch to trade in with the correct amount of deadbranch and zennies 

to deduct

this is the NPC script

turbo_room,99,113,4	script	Build Manager	930,{

mes "1 Bloody Branch = 100 Dead Branch + 100K";
next;
if(countitem(604) < 100 || Zeny < 100000) {
mes "Not enough requirements";
close;
}
mes "Here you go";
delitem 604,100;
set Zeny,100000;
getitem 12103,1;
close;
}

thanks in advance highly appreciate it

Edited by AinsLord
More info

2 answers to this question

Recommended Posts

  • 0
Posted
turbo_room,99,113,4	script	Build Manager	930,{
	mes "[ Build Manager ]";
	mes "1x Bloody Branch";
	mes "  > 100 Dead Branch";
	mes "  > 100.000 Zeny";
	mes "^FFFFFF_^000000";
	mes "How many you want exchange ?";
	input .@ammount;
	next;
	if(countitem(604) < (100*.@ammount) || Zeny < (100000*.@ammount) || .@ammount < 1) {
		mes "[ Build Manager ]";
		mes "Not enough requirements";
		close;
	}
	mes "[ Build Manager ]";
	mes "Here you go";
	delitem 604,(100*.@ammount);
	set Zeny,Zeny-(100000*.@ammount);
	getitem 12103,(1*.@ammount);
	end;
}

 

  • Upvote 1
  • 0
Posted
1 minute ago, mR L said:

turbo_room,99,113,4	script	Build Manager	930,{
	mes "[ Build Manager ]";
	mes "1x Bloody Branch";
	mes "  > 100 Dead Branch";
	mes "  > 100.000 Zeny";
	mes "^FFFFFF_^000000";
	mes "How many you want exchange ?";
	input .@ammount;
	next;
	if(countitem(604) < (100*.@ammount) || Zeny < (100000*.@ammount) || .@ammount < 1) {
		mes "[ Build Manager ]";
		mes "Not enough requirements";
		close;
	}
	mes "[ Build Manager ]";
	mes "Here you go";
	delitem 604,(100*.@ammount);
	set Zeny,Zeny-(100000*.@ammount);
	getitem 12103,(1*.@ammount);
	end;
}

 

thansk a lot man appreciate it 

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