I've been thinking of making a new Guild Package that could let people choose their own options of items. The Guild Package is an usable item actually. Is it possible to use menu with items?
I'm getting the following error in my map server:
[Error] script:callfunc: function not found! [gpack] [Debug] Source (NPC): FAKE_NPC (invisible/not on a map)
Basically, I want this box to do the following:
1. Please Choose Your color of valk set--> Pop Up a menu Of Colors---then go to-->2 2.Please Choose Your Color Of Wings --> Pop Up a menu Of Colors---then go to-->3
3.Please Choose Your Accessories---> Pop Up a menu Of Items---- then go to -->4 4. Give a quest headgear Randomly----then go to---> 5 5. Give the remaining supply stuff
NOTE:
I used the script as a function, and used "callfunc "gpack"" in my item script.
Here's my function:
function script gpack {
mes "[ Guild Package ]";
mes " Please choose a color of Valkyrie Set";
menu "Red",R_red,"Black",R_black,"White",R_white;
R_black:
next;
getitem 30007,1;
getitem 30281,1;
getitem 30284,1;
getitem 30287,1;
getitem 30290,1;
goto L_Wing;
close;
R_red:
next;
getitem 30008,1;
getitem 30282,1;
getitem 30285,1;
getitem 30286,1;
getitem 30291,1;
goto L_Wing;
close;
R_white:
next;
getitem 30033,1;
getitem 30283,1;
getitem 30286,1;
getitem 30289,1;
getitem 30292,1;
goto L_Wing;
close;
L_Wing:
next;
mes " [Guild Package] ";
mes " Please choose a color of Fairy Wings.";
menu "Red",L_red,"Black",L_black,"Green",L_green,"Blue",L_blue;
L_red:
next;
getitem 30237,1;
goto L_access;
L_black:
next;
getitem 30238,1;
goto L_access;
L_green:
next;
getitem 30239,1;
goto L_access;
L_blue:
next;
getitem 30240,1;
goto L_access;
L_access;
next;
mes " [Guild Package] ";
mes " Please choose a pair of accessory";
menu "Megingard",L_meg,"Sacred Incense",L_sac,"Occult Incense",L_occu,"Brisingamen",L_bris,"Critical Ring",L_crit,"Nile Rose",L_nile;
L_meg:
next;
getitem 2629,2;
goto L_supp;
L_sac:
next;
getitem 2638,2;
goto L_supp;
L_occu:
next;
getitem 2639,2;
goto L_supp;
L_bris:
next;
getitem 2630,2;
goto L_supp;
L_crit:
next;
getitem 2688,2;
goto L_supp;
L_nile:
next;
getitem 2658,2;
goto L_supp;
L_supp:
mes " [Guild Package] ";
mes " Here, your supplies! ";
getitem 30005,100;
getitem 30395,5;
getitem 4302,1;
getitem 4131,1;
getitem 14232,40;
getitem 30324,40;
close;
}
Question
Orgasmator
Hi all,
I've been thinking of making a new Guild Package that could let people choose their own options of items. The Guild Package is an usable item actually. Is it possible to use menu with items?
I'm getting the following error in my map server:
[Error] script:callfunc: function not found! [gpack]
[Debug] Source (NPC): FAKE_NPC (invisible/not on a map)
Basically, I want this box to do the following:
1. Please Choose Your color of valk set--> Pop Up a menu Of Colors---then go to-->2
2.Please Choose Your Color Of Wings --> Pop Up a menu Of Colors---then go to-->3
3.Please Choose Your Accessories---> Pop Up a menu Of Items---- then go to -->4
4. Give a quest headgear Randomly----then go to---> 5
5. Give the remaining supply stuff
NOTE:
I used the script as a function, and used "callfunc "gpack"" in my item script.
Here's my function:
And here's my item script:
1. Can somebody help me about my script?
2. How can I put "give random item" part in my script?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.