Jump to content
  • 0

Can someone enhance this?


Question

Posted

prontera,158,184,5 script Item Maker 123,{
mes "[item Maker]";
mes "Hi, i'll create items for you...";
next;
mes "Input item number:";
input .@try;
next;
mes "Amount?";
input .@tyr;
next;
mes "Here you go";
getitem .@try,.@tyr;
close;
end;
}

Item maker that will restrict from making Angara Manyu and Ahura Mazdah please :)

thanks in advance

4 answers to this question

Recommended Posts

Posted (edited)
prontera,155,175,5	script	Item Maker	123,{
mes "[item Maker]";
mes "Hi, i'll create items for you...";
next;
mes "Input item number:";
next;
input .@item_id;
if ( getitemname(.@item_id) == "null" ) {
	mes "invalid item ID";
	close;
}
if ( .@item_id == 1599 || .@item_id == 2199 ) {
	mes "you cannot ask for this item";
	close;
}
mes "Item -> "+ getitemname(.@item_id);
mes "Amount?";
next;
if ( input( .@amount, 1, 30000 ) ) {
	mes "invalid amount";
	close;
}
if ( !checkweight( .@item_id, .@amount ) ) { // I always forgot about checkweight ....
	mes "you can carry this much items";
	close;
}
mes "Here you go";
getitem .@item_id, .@amount;
close;
}

Edited by AnnieRuru

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