Jump to content
  • 0
Sign in to follow this  
ZelosAvalon

Npc Quest Script

Question

when the NPC will get the last items, if there is any missing, it does not appear the msg, he returns to the main menu, so you can choose what to do again!

 

 

gonryun,37,22,0	script	Valkyrie Crafter	811,{mes "[Valkyrie Crafter]";mes "Oh! A visitor. That's so rare!";mes "Welcome to the portal to God's";mes "Relm. I'm the guardian of this place.";next;mes "[Wings Collector]";mes "What are you seeking stranger? The";mes "words of God himself?";mes "Or are you interested in my special";mes "crafting abilities?";next;switch(select("Yeah, I'd like to hear God's voice:So, what can you craft axactly?:That's very interesting but I have to go.")){	case 1:		mes "[Valkyrie Crafter]";		mes "Oh, so you want to hear God's";		mes "voice.";		mes "Well, only angels can hear him. Are";		mes "you an angel?";		next;		mes "[Valkyrie Crafter]";		mes "Mmm, no. You don't seem to";		mes "propagate any Holy Waves of the Angels.";		mes "I'm sorry buy you won't be able to";		mes "hear him today.";		mes "Maybe if you become an angel one";		mes "day.";		next;		mes "[Valkyrie Crafter]";		mes "In this case, I wish you a good day";		mes "traveler!";		close;	case 2:		mes "[Valkyrie Crafter]";		mes "I'm the finest crafter of heaven.";		mes "I can make wings that are completely";		mes "out of this world.";		next;		mes "[Valkyrie Crafter]";		mes "My Finest work consist of crafting";		mes "elemental wings from normal wings.";		mes "It's like refining existing wings";		mes "if you prefer.";		mes "You simply need to hand me the";		mes "elements that i need to do them.";		next;		mes "[Valkyrie Crafter]";		mes "Oh! There is however a little";		mes "special request I would have to ask";		mes "you before starting doing any";		mes "crafting.";		next;		mes "[Valkyrie Crafter]";		mes "I'm a big lover of rare precious";		mes "stones. They're a real source of";		mes "inspiration to me!";		mes "So, for any wings you want me to";		mes "craft, could you please bring me at";		mes "least 10 of each of those ores:";		next;		mes "[Valkyrie Crafter]";		mes "10 Ruby";		mes "10 Sapphire"; 		mes "10 Topaz";		mes "10 Opal";		mes "10 Emerald";		mes "10 Amethyst";		mes "10 Aquamarine";		Main:		{		next;		mes "[Valkyrie Crafter]";		mes "So what wings would you like me to";		mes "craft for you ?";		next;		switch(select("Artic wings:Nothing for now, thank you.")){			case 1:				mes "[Valkyrie Crafter]";				mes "Those water element wings are said";				mes "to provide extra knowledge about";				mes "the world we live in.";				mes "Ok, i'll need the following:";				next;				mes "[Valkyrie Crafter]";				mes "1x Angel Wings";				mes "25x Mystic Frozen";				mes "10x Frozen Rose";				mes "50x Ice Cubic";				mes "And 100 gold for the crafting";				mes "services";				next;				mes "[Valkyrie Crafter]";				mes "So, do you want me to make them now?";				switch(select("Sure,I got all the items!:Mm, can I choose another wings?:No, I don't have all the items yet...")){				case 1:					{						if(countitem(8002) < 1 && countitem(995) < 25 && countitem(749) < 10 && countitem(7066) < 50 && countitem(969) < 100)						{							mes "[Valkyrie Crafter]";							mes "Mm, I'm sorry. It seems that some";							mes "items are missing";							mes "Please, feel free to come again";							mes "when you have everything.";							close;						}						if(countitem(719) < 10 && countitem(720) < 10 && countitem(721) < 10 && countitem(723) < 10 && countitem(726) < 10 && countitem(727) < 10 && countitem(728) < 10)						{							mes "[Valkyrie Crafter]";							mes "Oh! It seems that you didn't do the";							mes "most important task: that's to";							mes "bring to me all the precious stones";							mes "I requested.";							mes "They are my source of inspiration";							mes "and motivation. Without them,";							mes "I can't do your wings.";							next;							mes "[Valkyrie Crafter]";							mes "Come back when you have them please!";							close;						}						if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) < 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)						{							mes "[Valkyrie Crafter]";							mes "It looks like you are missing some Gold.";							mes "Come back again, when you have 10 or more Gold.";							close;						}						if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) >= 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)						{							mes "[Valkyrie Crafter]";							mes "Great! I'll start making them right now. Ok, just wait a few minutes please.";							next;							mes "[Valkyrie Crafter]";							mes "*waiting impatiently for the wings*";							next;							mes "[Valkyrie Crafter]";							mes "(15 minutes later)";							next;							mes "[Valkyrie Crafter]";							mes "Holy God! That's some great work I";							mes "just did! Here you go young";							mes "traveler.";							mes "Those are your Gargoyle Wings.";							delitem 719,10;							delitem 720,10;							delitem 721,10;							delitem 723,10;							delitem 726,10;							delitem 727,10;							delitem 728,10;							delitem 8002,1;							delitem 995,25;							delitem 749,10;							delitem 7066,50;							delitem 969,100;							next;							getitem 8005,1;							mes "[Valkyrie Crafter]";							mes "Bye and don't hesitate to come";							mes "back! Enjoy your new wings ^^";							close;						}					}				case 2:					{goto Main;}				case 3:					{					mes "[Valkyrie Crafter]";					mes "Very well. Good bye traveler and";					mes "please come back again!";					close;					}				}			case 2:			mes "[Valkyrie Crafter]";			mes "Very well. Good bye traveler and";			mes "please come back again!";			close;			}		}	case 3:	mes "[Valkyrie Crafter]";	mes "Very well. Good bye traveler and";	mes "please come back again!";	close;	}}
Edited by Mhalicot
Title has been modified. Please avoid posting on all caps. Read forum rules for more info.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
gonryun,37,22,0    script    Valkyrie Crafter    811,{mes "[Valkyrie Crafter]";mes "Oh! A visitor. That's so rare!";mes "Welcome to the portal to God's";mes "Relm. I'm the guardian of this place.";next;mes "[Wings Collector]";mes "What are you seeking stranger? The";mes "words of God himself?";mes "Or are you interested in my special";mes "crafting abilities?";next;switch(select("Yeah, I'd like to hear God's voice:So, what can you craft axactly?:That's very interesting but I have to go.")){    case 1:        mes "[Valkyrie Crafter]";        mes "Oh, so you want to hear God's";        mes "voice.";        mes "Well, only angels can hear him. Are";        mes "you an angel?";        next;        mes "[Valkyrie Crafter]";        mes "Mmm, no. You don't seem to";        mes "propagate any Holy Waves of the Angels.";        mes "I'm sorry buy you won't be able to";        mes "hear him today.";        mes "Maybe if you become an angel one";        mes "day.";        next;        mes "[Valkyrie Crafter]";        mes "In this case, I wish you a good day";        mes "traveler!";        close;    case 2:        mes "[Valkyrie Crafter]";        mes "I'm the finest crafter of heaven.";        mes "I can make wings that are completely";        mes "out of this world.";        next;        mes "[Valkyrie Crafter]";        mes "My Finest work consist of crafting";        mes "elemental wings from normal wings.";        mes "It's like refining existing wings";        mes "if you prefer.";        mes "You simply need to hand me the";        mes "elements that i need to do them.";        next;        mes "[Valkyrie Crafter]";        mes "Oh! There is however a little";        mes "special request I would have to ask";        mes "you before starting doing any";        mes "crafting.";        next;        mes "[Valkyrie Crafter]";        mes "I'm a big lover of rare precious";        mes "stones. They're a real source of";        mes "inspiration to me!";        mes "So, for any wings you want me to";        mes "craft, could you please bring me at";        mes "least 10 of each of those ores:";        next;        mes "[Valkyrie Crafter]";        mes "10 Ruby";        mes "10 Sapphire";        mes "10 Topaz";        mes "10 Opal";        mes "10 Emerald";        mes "10 Amethyst";        mes "10 Aquamarine";        Main:        {        next;        mes "[Valkyrie Crafter]";        mes "So what wings would you like me to";        mes "craft for you ?";        next;        switch(select("Artic wings:Nothing for now, thank you.")){            case 1:                mes "[Valkyrie Crafter]";                mes "Those water element wings are said";                mes "to provide extra knowledge about";                mes "the world we live in.";                mes "Ok, i'll need the following:";                next;                mes "[Valkyrie Crafter]";                mes "1x Angel Wings";                mes "25x Mystic Frozen";                mes "10x Frozen Rose";                mes "50x Ice Cubic";                mes "And 100 gold for the crafting";                mes "services";                next;                mes "[Valkyrie Crafter]";                mes "So, do you want me to make them now?";                switch(select("Sure,I got all the items!:Mm, can I choose another wings?:No, I don't have all the items yet...")){                case 1:                    {                        if(countitem(8002) < 1 || countitem(995) < 25 || countitem(749) < 10 || countitem(7066) < 50 || countitem(969) < 100)                        {                            mes "[Valkyrie Crafter]";                            mes "Mm, I'm sorry. It seems that some";                            mes "items are missing";                            mes "Please, feel free to come again";                            mes "when you have everything.";                            close;                        }                        if(countitem(719) < 10 || countitem(720) < 10 || countitem(721) < 10 || countitem(723) < 10 || countitem(726) < 10 || countitem(727) < 10 || countitem(728) < 10)                        {                            mes "[Valkyrie Crafter]";                            mes "Oh! It seems that you didn't do the";                            mes "most important task: that's to";                            mes "bring to me all the precious stones";                            mes "I requested.";                            mes "They are my source of inspiration";                            mes "and motivation. Without them,";                            mes "I can't do your wings.";                            next;                            mes "[Valkyrie Crafter]";                            mes "Come back when you have them please!";                            close;                        }                        if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) < 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)                        {                            mes "[Valkyrie Crafter]";                            mes "It looks like you are missing some Gold.";                            mes "Come back again, when you have 10 or more Gold.";                            close;                        }                        if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) >= 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)                        {                            mes "[Valkyrie Crafter]";                            mes "Great! I'll start making them right now. Ok, just wait a few minutes please.";                            next;                            mes "[Valkyrie Crafter]";                            mes "*waiting impatiently for the wings*";                            next;                            mes "[Valkyrie Crafter]";                            mes "(15 minutes later)";                            next;                            mes "[Valkyrie Crafter]";                            mes "Holy God! That's some great work I";                            mes "just did! Here you go young";                            mes "traveler.";                            mes "Those are your Gargoyle Wings.";                            delitem 719,10;                            delitem 720,10;                            delitem 721,10;                            delitem 723,10;                            delitem 726,10;                            delitem 727,10;                            delitem 728,10;                            delitem 8002,1;                            delitem 995,25;                            delitem 749,10;                            delitem 7066,50;                            delitem 969,100;                            next;                            getitem 8005,1;                            mes "[Valkyrie Crafter]";                            mes "Bye and don't hesitate to come";                            mes "back! Enjoy your new wings ^^";                            close;                        }                    }                case 2:                    {goto Main;}                case 3:                    {                    mes "[Valkyrie Crafter]";                    mes "Very well. Good bye traveler and";                    mes "please come back again!";                    close;                    }                }            case 2:            mes "[Valkyrie Crafter]";            mes "Very well. Good bye traveler and";            mes "please come back again!";            close;            }        }    case 3:    mes "[Valkyrie Crafter]";    mes "Very well. Good bye traveler and";    mes "please come back again!";    close;    }}

You had logical AND instead of logical OR on missing items, so it'd work if he didn't meet every requirment only. And you need it to work if he meets at least one criteria :3

Edited by Garr

Share this post


Link to post
Share on other sites
  • 0

 

gonryun,37,22,0    script    Valkyrie Crafter    811,{mes "[Valkyrie Crafter]";mes "Oh! A visitor. That's so rare!";mes "Welcome to the portal to God's";mes "Relm. I'm the guardian of this place.";next;mes "[Wings Collector]";mes "What are you seeking stranger? The";mes "words of God himself?";mes "Or are you interested in my special";mes "crafting abilities?";next;switch(select("Yeah, I'd like to hear God's voice:So, what can you craft axactly?:That's very interesting but I have to go.")){    case 1:        mes "[Valkyrie Crafter]";        mes "Oh, so you want to hear God's";        mes "voice.";        mes "Well, only angels can hear him. Are";        mes "you an angel?";        next;        mes "[Valkyrie Crafter]";        mes "Mmm, no. You don't seem to";        mes "propagate any Holy Waves of the Angels.";        mes "I'm sorry buy you won't be able to";        mes "hear him today.";        mes "Maybe if you become an angel one";        mes "day.";        next;        mes "[Valkyrie Crafter]";        mes "In this case, I wish you a good day";        mes "traveler!";        close;    case 2:        mes "[Valkyrie Crafter]";        mes "I'm the finest crafter of heaven.";        mes "I can make wings that are completely";        mes "out of this world.";        next;        mes "[Valkyrie Crafter]";        mes "My Finest work consist of crafting";        mes "elemental wings from normal wings.";        mes "It's like refining existing wings";        mes "if you prefer.";        mes "You simply need to hand me the";        mes "elements that i need to do them.";        next;        mes "[Valkyrie Crafter]";        mes "Oh! There is however a little";        mes "special request I would have to ask";        mes "you before starting doing any";        mes "crafting.";        next;        mes "[Valkyrie Crafter]";        mes "I'm a big lover of rare precious";        mes "stones. They're a real source of";        mes "inspiration to me!";        mes "So, for any wings you want me to";        mes "craft, could you please bring me at";        mes "least 10 of each of those ores:";        next;        mes "[Valkyrie Crafter]";        mes "10 Ruby";        mes "10 Sapphire";        mes "10 Topaz";        mes "10 Opal";        mes "10 Emerald";        mes "10 Amethyst";        mes "10 Aquamarine";        Main:        {        next;        mes "[Valkyrie Crafter]";        mes "So what wings would you like me to";        mes "craft for you ?";        next;        switch(select("Artic wings:Nothing for now, thank you.")){            case 1:                mes "[Valkyrie Crafter]";                mes "Those water element wings are said";                mes "to provide extra knowledge about";                mes "the world we live in.";                mes "Ok, i'll need the following:";                next;                mes "[Valkyrie Crafter]";                mes "1x Angel Wings";                mes "25x Mystic Frozen";                mes "10x Frozen Rose";                mes "50x Ice Cubic";                mes "And 100 gold for the crafting";                mes "services";                next;                mes "[Valkyrie Crafter]";                mes "So, do you want me to make them now?";                switch(select("Sure,I got all the items!:Mm, can I choose another wings?:No, I don't have all the items yet...")){                case 1:                    {                        if(countitem(8002) < 1 || countitem(995) < 25 || countitem(749) < 10 || countitem(7066) < 50 || countitem(969) < 100)                        {                            mes "[Valkyrie Crafter]";                            mes "Mm, I'm sorry. It seems that some";                            mes "items are missing";                            mes "Please, feel free to come again";                            mes "when you have everything.";                            close;                        }                        if(countitem(719) < 10 || countitem(720) < 10 || countitem(721) < 10 || countitem(723) < 10 || countitem(726) < 10 || countitem(727) < 10 || countitem(728) < 10)                        {                            mes "[Valkyrie Crafter]";                            mes "Oh! It seems that you didn't do the";                            mes "most important task: that's to";                            mes "bring to me all the precious stones";                            mes "I requested.";                            mes "They are my source of inspiration";                            mes "and motivation. Without them,";                            mes "I can't do your wings.";                            next;                            mes "[Valkyrie Crafter]";                            mes "Come back when you have them please!";                            close;                        }                        if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) < 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)                        {                            mes "[Valkyrie Crafter]";                            mes "It looks like you are missing some Gold.";                            mes "Come back again, when you have 10 or more Gold.";                            close;                        }                        if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) >= 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)                        {                            mes "[Valkyrie Crafter]";                            mes "Great! I'll start making them right now. Ok, just wait a few minutes please.";                            next;                            mes "[Valkyrie Crafter]";                            mes "*waiting impatiently for the wings*";                            next;                            mes "[Valkyrie Crafter]";                            mes "(15 minutes later)";                            next;                            mes "[Valkyrie Crafter]";                            mes "Holy God! That's some great work I";                            mes "just did! Here you go young";                            mes "traveler.";                            mes "Those are your Gargoyle Wings.";                            delitem 719,10;                            delitem 720,10;                            delitem 721,10;                            delitem 723,10;                            delitem 726,10;                            delitem 727,10;                            delitem 728,10;                            delitem 8002,1;                            delitem 995,25;                            delitem 749,10;                            delitem 7066,50;                            delitem 969,100;                            next;                            getitem 8005,1;                            mes "[Valkyrie Crafter]";                            mes "Bye and don't hesitate to come";                            mes "back! Enjoy your new wings ^^";                            close;                        }                    }                case 2:                    {goto Main;}                case 3:                    {                    mes "[Valkyrie Crafter]";                    mes "Very well. Good bye traveler and";                    mes "please come back again!";                    close;                    }                }            case 2:            mes "[Valkyrie Crafter]";            mes "Very well. Good bye traveler and";            mes "please come back again!";            close;            }        }    case 3:    mes "[Valkyrie Crafter]";    mes "Very well. Good bye traveler and";    mes "please come back again!";    close;    }}

You had logical AND instead of logical OR on missing items, so it'd work if he didn't meet every requirment only. And you need it to work if he meets at least one criteria :3

thanks soo much ;)

Share this post


Link to post
Share on other sites
  • 0

 

gonryun,37,22,0    script    Valkyrie Crafter    811,{mes "[Valkyrie Crafter]";mes "Oh! A visitor. That's so rare!";mes "Welcome to the portal to God's";mes "Relm. I'm the guardian of this place.";next;mes "[Wings Collector]";mes "What are you seeking stranger? The";mes "words of God himself?";mes "Or are you interested in my special";mes "crafting abilities?";next;switch(select("Yeah, I'd like to hear God's voice:So, what can you craft axactly?:That's very interesting but I have to go.")){    case 1:        mes "[Valkyrie Crafter]";        mes "Oh, so you want to hear God's";        mes "voice.";        mes "Well, only angels can hear him. Are";        mes "you an angel?";        next;        mes "[Valkyrie Crafter]";        mes "Mmm, no. You don't seem to";        mes "propagate any Holy Waves of the Angels.";        mes "I'm sorry buy you won't be able to";        mes "hear him today.";        mes "Maybe if you become an angel one";        mes "day.";        next;        mes "[Valkyrie Crafter]";        mes "In this case, I wish you a good day";        mes "traveler!";        close;    case 2:        mes "[Valkyrie Crafter]";        mes "I'm the finest crafter of heaven.";        mes "I can make wings that are completely";        mes "out of this world.";        next;        mes "[Valkyrie Crafter]";        mes "My Finest work consist of crafting";        mes "elemental wings from normal wings.";        mes "It's like refining existing wings";        mes "if you prefer.";        mes "You simply need to hand me the";        mes "elements that i need to do them.";        next;        mes "[Valkyrie Crafter]";        mes "Oh! There is however a little";        mes "special request I would have to ask";        mes "you before starting doing any";        mes "crafting.";        next;        mes "[Valkyrie Crafter]";        mes "I'm a big lover of rare precious";        mes "stones. They're a real source of";        mes "inspiration to me!";        mes "So, for any wings you want me to";        mes "craft, could you please bring me at";        mes "least 10 of each of those ores:";        next;        mes "[Valkyrie Crafter]";        mes "10 Ruby";        mes "10 Sapphire";        mes "10 Topaz";        mes "10 Opal";        mes "10 Emerald";        mes "10 Amethyst";        mes "10 Aquamarine";        Main:        {        next;        mes "[Valkyrie Crafter]";        mes "So what wings would you like me to";        mes "craft for you ?";        next;        switch(select("Artic wings:Nothing for now, thank you.")){            case 1:                mes "[Valkyrie Crafter]";                mes "Those water element wings are said";                mes "to provide extra knowledge about";                mes "the world we live in.";                mes "Ok, i'll need the following:";                next;                mes "[Valkyrie Crafter]";                mes "1x Angel Wings";                mes "25x Mystic Frozen";                mes "10x Frozen Rose";                mes "50x Ice Cubic";                mes "And 100 gold for the crafting";                mes "services";                next;                mes "[Valkyrie Crafter]";                mes "So, do you want me to make them now?";                switch(select("Sure,I got all the items!:Mm, can I choose another wings?:No, I don't have all the items yet...")){                case 1:                    {                        if(countitem(8002) < 1 || countitem(995) < 25 || countitem(749) < 10 || countitem(7066) < 50 || countitem(969) < 100)                        {                            mes "[Valkyrie Crafter]";                            mes "Mm, I'm sorry. It seems that some";                            mes "items are missing";                            mes "Please, feel free to come again";                            mes "when you have everything.";                            close;                        }                        if(countitem(719) < 10 || countitem(720) < 10 || countitem(721) < 10 || countitem(723) < 10 || countitem(726) < 10 || countitem(727) < 10 || countitem(728) < 10)                        {                            mes "[Valkyrie Crafter]";                            mes "Oh! It seems that you didn't do the";                            mes "most important task: that's to";                            mes "bring to me all the precious stones";                            mes "I requested.";                            mes "They are my source of inspiration";                            mes "and motivation. Without them,";                            mes "I can't do your wings.";                            next;                            mes "[Valkyrie Crafter]";                            mes "Come back when you have them please!";                            close;                        }                        if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) < 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)                        {                            mes "[Valkyrie Crafter]";                            mes "It looks like you are missing some Gold.";                            mes "Come back again, when you have 10 or more Gold.";                            close;                        }                        if(countitem(8002) >= 1 && countitem(995) >= 25 && countitem(749) >= 10 && countitem(7066) >= 50 && countitem(969) >= 100 && countitem(719) >= 10 && countitem(720) >= 10 && countitem(721) >= 10 && countitem(723) >= 10 && countitem(726) >= 10 && countitem(727) >= 10 && countitem(728) >= 10)                        {                            mes "[Valkyrie Crafter]";                            mes "Great! I'll start making them right now. Ok, just wait a few minutes please.";                            next;                            mes "[Valkyrie Crafter]";                            mes "*waiting impatiently for the wings*";                            next;                            mes "[Valkyrie Crafter]";                            mes "(15 minutes later)";                            next;                            mes "[Valkyrie Crafter]";                            mes "Holy God! That's some great work I";                            mes "just did! Here you go young";                            mes "traveler.";                            mes "Those are your Gargoyle Wings.";                            delitem 719,10;                            delitem 720,10;                            delitem 721,10;                            delitem 723,10;                            delitem 726,10;                            delitem 727,10;                            delitem 728,10;                            delitem 8002,1;                            delitem 995,25;                            delitem 749,10;                            delitem 7066,50;                            delitem 969,100;                            next;                            getitem 8005,1;                            mes "[Valkyrie Crafter]";                            mes "Bye and don't hesitate to come";                            mes "back! Enjoy your new wings ^^";                            close;                        }                    }                case 2:                    {goto Main;}                case 3:                    {                    mes "[Valkyrie Crafter]";                    mes "Very well. Good bye traveler and";                    mes "please come back again!";                    close;                    }                }            case 2:            mes "[Valkyrie Crafter]";            mes "Very well. Good bye traveler and";            mes "please come back again!";            close;            }        }    case 3:    mes "[Valkyrie Crafter]";    mes "Very well. Good bye traveler and";    mes "please come back again!";    close;    }}

You had logical AND instead of logical OR on missing items, so it'd work if he didn't meet every requirment only. And you need it to work if he meets at least one criteria :3

when I checked was not missing any items work, now when I checked it was missing some gold ID 969, did not work! can u help ?

Share this post


Link to post
Share on other sites
  • 0

Mmm are you sure? I'm pretty confident that this line

if(countitem(8002) < 1 || countitem(995) < 25 || countitem(749) < 10 || countitem(7066) < 50 || countitem(969) < 100)

will catch if you don't have enough gold, and you will get this message:

                            mes "[Valkyrie Crafter]";                            mes "Mm, I'm sorry. It seems that some";                            mes "items are missing";                            mes "Please, feel free to come again";                            mes "when you have everything.";                            close;

Or you mean that you want these lines to appear?

                            mes "[Valkyrie Crafter]";                            mes "It looks like you are missing some Gold.";                            mes "Come back again, when you have 100 or more Gold.";                            close;

In that case just remove

|| countitem(969) < 100

from the first line up there.

Edited by Garr

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.