View File
MakeItemReq, check requirements to make a item
This functions help you easy to create a Quest NPC use to create a item by bring for NPC items and Zeny
If bring enough Zeny and Items, a menu confirm to make item will display
Else will display "Close" Button
Edit Menu text inside function.
Usage:
.@isSuccess = MakeItemReq(PRODUCT_ID,ZENY,ITEM1,ITEM1_QUANTITY,ITEM2,ITEM2_QUANTITY,.....)
.@isSuccess = 0, you dont want to create this item
.@isSuccess = 1, NPC created item for you
// Sample Struct NPC //
prontera,157,120,4 script MakeItemReq 555,{
mes "[NPC_NAME]";
mes "Bla";
mes "Bla Bla";
mes "Bla Bla Bla";
mes "Bla Bla Bla Bla";
next;
mes "[NPC_NAME]";
// MakeItemReq(PRODUCT_ID,ZENY,ITEM1,ITEM1_QUANTITY,ITEM2,ITEM2_QUANTITY,.....)
.@isSuccess = MakeItemReq(5353,1000000,501,1,502,2);
// Doesn't add next, because next existed in function
if(.@isSuccess){
mes "[NPC_NAME]";
mes "You success to create a item";
}
else {
mes "[NPC_NAME]";
mes "You dont need it";
}
close;
}
Submitter
Ehwaz
Submitted
06/11/2018
Category
Utilities
Video
Content Author
Ehwaz