Jump to content
  • 0

Can someone enhance this?


Mabuhay

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

input .@tyr;
if(.@tyr == item_id[ahura_mazda] || .@tyr == item_id[angra]) goto L_cant;


L_cant:
mes "You can't make that item!";
close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Thanks, took me a bit while to get what you meant /heh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Here : https://raijero.svn.sourceforge.net/svnroot/raijero/dev/Brian/script_requests/at_item.txt

it's made by Brian :)

you can set the restricted items just search "setarray .@restricted, 1599,2199;".

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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