Jump to content
  • 0

help NPC talking script


ZelosAvalon

Question


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

How do I get NPC to speak this message only once, the first time I log in!
And when I click on npc it runs the script below and doesn't repeat and keep talking again!
 
 
when i click in npc every time repeat the message:  Hey, newbie! Get over here! Come on over here! Click me, quick! and try to give me the quest  7711 but i already got it in the first time so emulator send me an error!
Edited by ZelosAvalon
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

//===== rAthena Script =======================================
//= ?
//===== By: ==================================================
//= ZelosAvalon
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= A tutorial for new Dorams starting at new_1-1 (53,111)
//===== Additional Comments: =================================
//= 1.0 First version, hand scripted from iRO. [ZelosAvalon]
//============================================================

// - Vigilante Ajegna
// -----------------------------------------------------------------------------
lasa_fild01,49,304,3	script	Vigilante Ajegna 	10162,{

	if (Class == Job_Summoner) {
		if (isbegin_quest(7711)) {
			mes "[Vigilante Ajegna]";
			mes "Oh, there you go!";
			mes "You can talk to others in the same way you just spoke to me.";
			next;
			cutin "tutorial01",3;
			mes "!-Notice-!";
			mes "^4d4fffBasically, you talk by left-clicking the mouse button while hovering the cursor over an NPC.";
			mes "Left-click the mouse button to talk with an NPC, move about and attack a target.^000000";
			next;
			cutin "", 255;
			mes "[Vigilante Ajegna]";
			mes "Good work crossing over the mountain, newbie.";
			mes "Just like yourself, there are a bunch of people who are crossing this mountain range these days to reach the ^4d4fffNew Continent.^000000";
			next;
			mes "[Vigilante Ajegna]";
			mes "Honestly, i was surprised, too.";
			mes "I never imagined even in my wildest dreams that there would be any other continent other than ^4d4fffMidgard^000000 or ^4d4fffFar-Star^000000, which we live in.";
			next;
			mes "[Vigilante Ajegna]";
			mes "That explains the slew of Dorams, who simply wander about, in ^4d4fffLasagna^000000, which was nothing but a fishing village in the border area.";
			next;
			mes "[Vigilante Ajegna]";
			mes "What's worse is that the Dorams who come from outside of Lasagna would often cause problems. This is really causing a headache for the Vigilante Corp.";
			mes "A Vigilante's job is to assist the Dorams who are in the New Continent expedition, in addition to maintaining public order, so please help.";
			next;
			//You have received a new quest.
			setquest 7712;
			//[Beginning] Quest was deleted
			completequest 7711;
			mes "[Vigilante Ajegna]";
			mes "Do you see the Doram over there?";
			mes "He's ^4d4fffAglio^000000. He'll let you in on some useful stuff. Go meet the guy.";
			close2;
			end;
		}
		if (!isbegin_quest(7712) == 1) {
			mes "[Vigilante Ajegna]";
			mes "I should welcome the new Dorams coming in here.";
			mes "^4d4fffAglio^000000 will let you in on more details.";
			mes "He's right over there.";
			next;
			mes "[Vigilante Ajegna]";
			mes "Aglio is one of the very, i mean, very good Doram in the Farfalle Vigilante Corp, so watch and learn!";
			close2;
		}
	}
	else {
		mes "[Vigilante Ajegna]";
		mes "Huh? I doubt you're from Far-Star.";
		mes "I get it! You're from the New Continent, aren't you?";
		next;
		mes "[Vigilante Ajegna]";
		mes "If you're planning to cross that ridge, I wouldn't recommend it.";
		mes "Why don't you just return to your village from here?";
		close;
	}
	end;
	
	OnPCLoginEvent:
		if (!isbegin_quest(7711)) {
			sleep2 300;
			npctalk "Hey, newbie! Get over here!";
			npctalk "Come on over here! Click me, quick!";
			setquest 7711;
		}
		end;
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

9 hours ago, Emistry said:

//===== rAthena Script =======================================
//= ?
//===== By: ==================================================
//= ZelosAvalon
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= A tutorial for new Dorams starting at new_1-1 (53,111)
//===== Additional Comments: =================================
//= 1.0 First version, hand scripted from iRO. [ZelosAvalon]
//============================================================

// - Vigilante Ajegna
// -----------------------------------------------------------------------------
lasa_fild01,49,304,3	script	Vigilante Ajegna 	10162,{

	if (Class == Job_Summoner) {
		if (isbegin_quest(7711)) {
			mes "[Vigilante Ajegna]";
			mes "Oh, there you go!";
			mes "You can talk to others in the same way you just spoke to me.";
			next;
			cutin "tutorial01",3;
			mes "!-Notice-!";
			mes "^4d4fffBasically, you talk by left-clicking the mouse button while hovering the cursor over an NPC.";
			mes "Left-click the mouse button to talk with an NPC, move about and attack a target.^000000";
			next;
			cutin "", 255;
			mes "[Vigilante Ajegna]";
			mes "Good work crossing over the mountain, newbie.";
			mes "Just like yourself, there are a bunch of people who are crossing this mountain range these days to reach the ^4d4fffNew Continent.^000000";
			next;
			mes "[Vigilante Ajegna]";
			mes "Honestly, i was surprised, too.";
			mes "I never imagined even in my wildest dreams that there would be any other continent other than ^4d4fffMidgard^000000 or ^4d4fffFar-Star^000000, which we live in.";
			next;
			mes "[Vigilante Ajegna]";
			mes "That explains the slew of Dorams, who simply wander about, in ^4d4fffLasagna^000000, which was nothing but a fishing village in the border area.";
			next;
			mes "[Vigilante Ajegna]";
			mes "What's worse is that the Dorams who come from outside of Lasagna would often cause problems. This is really causing a headache for the Vigilante Corp.";
			mes "A Vigilante's job is to assist the Dorams who are in the New Continent expedition, in addition to maintaining public order, so please help.";
			next;
			//You have received a new quest.
			setquest 7712;
			//[Beginning] Quest was deleted
			completequest 7711;
			mes "[Vigilante Ajegna]";
			mes "Do you see the Doram over there?";
			mes "He's ^4d4fffAglio^000000. He'll let you in on some useful stuff. Go meet the guy.";
			close2;
			end;
		}
		if (!isbegin_quest(7712) == 1) {
			mes "[Vigilante Ajegna]";
			mes "I should welcome the new Dorams coming in here.";
			mes "^4d4fffAglio^000000 will let you in on more details.";
			mes "He's right over there.";
			next;
			mes "[Vigilante Ajegna]";
			mes "Aglio is one of the very, i mean, very good Doram in the Farfalle Vigilante Corp, so watch and learn!";
			close2;
		}
	}
	else {
		mes "[Vigilante Ajegna]";
		mes "Huh? I doubt you're from Far-Star.";
		mes "I get it! You're from the New Continent, aren't you?";
		next;
		mes "[Vigilante Ajegna]";
		mes "If you're planning to cross that ridge, I wouldn't recommend it.";
		mes "Why don't you just return to your village from here?";
		close;
	}
	end;
	
	OnPCLoginEvent:
		if (!isbegin_quest(7711)) {
			sleep2 300;
			npctalk "Hey, newbie! Get over here!";
			npctalk "Come on over here! Click me, quick!";
			setquest 7711;
		}
		end;
}

 

ty very much, it's the script from Vigilante Ajegna from Dorams maps, i'll share all when i finish it! thanks for you help!

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