Jump to content
  • 0

Script didnt work as i wish


Anubis92

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   4
  • Joined:  05/11/17
  • Last Seen:  

Hello everyone!

I'm working on an Quest NPC to Join an Team. It seems to working, no Errors on Server BUT he didnt ask for the items, or give me any Switch. I didnt know what exactly is the Problem that he don't see my items or give me the switch

 

Here is the script

 

invek,134,204,2	script	Loyal Knight of Rune Midgard	418,{


if (countitem(7281) < 1) {	
mes "[Herold]";
mes "Welcome to Invek";
mes "I'm happy to welcome you here, friend.";
mes "Are you here to help us with those fanatic church dudes?";
next;
		switch(select("Yes, Lord!:I'm not sure, Lord!:No, sorry!")){
	
		case 1:
			mes "[Lord Asterix]";
			mes "Fine! May our king bless you, kid!";
			mes "First you need to prove us how loyal you are, kid.";
			mes "Bring me...";
			next;
			
			mes "5 Emperium";
			mes "100 Jellopy";
			mes "100 Heart of Mermaid";
			mes "25 Nose Ring of Minotaur";
			next;
			
			mes "When you have all those items come back";
			mes "and talk again to me, ok?";
				if (countitem(714) > 5 && countitem(909) > 100 && countitem(941) > 25 && countitem(950) > 100) {
					switch(select("Here, I've got them:Maybe later")){
						case 1:
							mes "[Lord Asterix]";
							mes "Wow! I didn't thought that you were so fast!";
							mes "Let me take this treasures for you.";
							next;
							delitem 714,5;
							delitem 909,100;
							delitem 941,25;
							delitem 950,100;
							getitem 7182,1; // Change here later to ID of Loyal Emblem
							next;
							mes "[Lord Asterix]";
							mes "Here you have your offical Emblem of the Knights";
							mes "With this emblem, everybody will see that you are on of us!";
							mes "Now you can get quests and other benefits here in Invek";
							end;
							
						case 2:
							mes "[Lord Asterix]";
							mes "I'm waiting here for you, kido!";
							end;
					} if (countitem(714) < 5 && countitem(909) < 100 && countitem(941) < 25 && countitem(950) < 100){
						switch(select("Okay, my Lord.")){
							case 1:
								mes "[Lord Asterix]";
								mes "May the king bless you";
								end;
					}
				}
			}
		case 2:
			mes "[Lord Asterix]";
			mes "So, you are not sure yet, kid?";
			mes "Let me explain something to you...";
			mes "We are the one who fight for the king. We have to bring up our souls for an unreacheable kingdom";
			next;
			mes "[Lord Asterix]";
			mes "Who else could do this?";
			end;
	
		case 3:
			mes "[Lord Asterix]";
			mes "I hope to see you again soon!";
			end;

	}



}
 if (countitem(7281) > 1) {

mes "[Lord Asterix]";
mes "Traitor, go away!!";
close;

}
}

 

I hope anybody of you can help me

 

Greetings and merry Christmas

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  928
  • Reputation:   170
  • Joined:  04/05/13
  • Last Seen:  

prontera,136,200,2	script	Loyal Knight of Rune Midgard	418,{
	if (countitem(7281) < 1) {
		mes "[Herold]";
		mes "Welcome to Invek";
		mes "I'm happy to welcome you here, friend.";
		mes "Are you here to help us with those fanatic church dudes?";
		next;
		switch (select("Yes, Lord!:I'm not sure, Lord!:No, sorry!")) {
		case 1:
			mes "[Lord Asterix]";
			mes "Fine! May our king bless you, kid!";
			mes "First you need to prove us how loyal you are, kid.";
			mes "Bring me...";
			next;
			mes "5 Emperium";
			mes "100 Jellopy";
			mes "100 Heart of Mermaid";
			mes "25 Nose Ring of Minotaur";
			next;
			mes "When you have all those items come back";
			mes "and talk again to me, ok?";
			if (countitem(714) >= 5 && countitem(909) >= 100 && countitem(941) >= 25 && countitem(950) >= 100) {
				switch (select("Here, I've got them:Maybe later")) {
				case 1:
					mes "[Lord Asterix]";
					mes "Wow! I didn't thought that you were so fast!";
					mes "Let me take this treasures for you.";
					next;
					delitem 714,5;
					delitem 909,100;
					delitem 941,25;
					delitem 950,100;
					getitem 7182,1;
					next;
					mes "[Lord Asterix]";
					mes "Here you have your offical Emblem of the Knights";
					mes "With this emblem, everybody will see that you are on of us!";
					mes "Now you can get quests and other benefits here in Invek";
					end;
				case 2:
					mes "[Lord Asterix]";
					mes "I'm waiting here for you, kido!";
					end;
				}
				if (countitem(714) < 5 && countitem(909) < 100 && countitem(941) < 25 && countitem(950) < 100) {
					switch (select("Okay, my Lord.")) {
					case 1:
						mes "[Lord Asterix]";
						mes "May the king bless you";
						end;
					}
				}
			}
		case 2:
			mes "[Lord Asterix]";
			mes "So, you are not sure yet, kid?";
			mes "Let me explain something to you...";
			mes "We are the one who fight for the king. We have to bring up our souls for an unreacheable kingdom";
			next;
			mes "[Lord Asterix]";
			mes "Who else could do this?";
			end;
		case 3:
			mes "[Lord Asterix]";
			mes "I hope to see you again soon!";
			end;
		}
	}
	if (countitem(7281) > 1) {
		mes "[Lord Asterix]";
		mes "Traitor, go away!!";
		close;
	}
}

 

  • Love 1
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...