//===== eAthena Script =======================================
//= Louyang City NPC's
//===== By: ==================================================
//= Vidar (1.0)
//= Mass Zero (1.1)
//= Dino9021, roughly translated by Celest (1.2)
//= Mass Zero (1.3)
//= MasterOfMuppets (2.0)
//= eAthena Dev Team
//===== Current Version: =====================================
//= 2.7
//===== Compatible With: =====================================
//= Any eAthena Version
//===== Description: =========================================
//= Official NPC's for Louyang city.
//===== Additional Comments: =================================
//= Originally made for Vidar
//= 1.2 - Added official warp NPC's
//= 1.3 - Fixed gramatical errors. (Like wtf's with the weird
// texts celest? xD)
//= 2.0 - Completely rewrote the current scripts based on iRO.
// Added the 'Shouting Quest' and the 'Medicine Quest'
//= 2.1 Optimized, made quest vars unique [Lupus]
//= 2.1a minor fix, 2.1b Fixed Typo�s [Nexon]
//= 2.2 Fixed exploits [Lupus]
//= 2.2a Updated the color codes a little and fixed the shouting quest
//= to broadcast green text.
//= 2.2b A small fix to the shout quest npc in louyang field not warping you
//= back up to the tower if you died or teleported out of there. [MasterOfMuppets]
//= 2.3 A small fix, the code is so messy I can't believe I scripted it >.< [MasterOfMuppets]
//= 2.4 Implemented a few more npcs, thanks to Prometheus for them. [MasterOfMuppets]
//= 2.5 Implemented the Poison King quest, beware of potential bugs. [MasterOfMuppets]
//= 2.6 Removed Duplicates [Silent]
//= 2.6a Updated a few names with new item_db.txt names [Evera]
//= 2.7 Split quests to quests/quests_louyang.txt [Evera]
//= Replaced some instances of using global vars when not needed [Evera]
//============================================================
alberta.gat,245,45,4 script Girl#02 815,{
mes "[Girl]";
mes "La la la la~";
mes "I feel so good today~";
mes "I'm in the mood to go";
mes "on a picnic somewhere~";
mes "La la la la~";
next;
menu "About Louyang.",-,"Go to Louyang.",M_GOTO,"Cancel.",M_CANCEL;
mes "[Girl]";
mes "Oh, are you";
mes "Interested in Louyang?";
mes "It's a nice place to";
mes "visit for travelers.";
next;
mes "[Girl]";
mes "Louyang has a long history";
mes "with stories of ancient magic and warriors. It's also rumored that many evil beasts roam the Louyang area";
next;
mes "[Girl]";
mes "You can find cure-all medicines, mysterious occurrences, and martial artists all in one place!";
next;
mes "[Girl]";
mes "I used to train in the martial arts every morning back when I was in Louyang. I might not look like it, but I'm pretty strong!";
next;
mes "[Girl]";
mes "If you want to visit";
mes "Louyang, feel free to";
mes "tell me. Just give me";
mes "some Zeny and we'll go~";
close;
M_GOTO:
mes "[Girl]";
mes "I'll guide you to";
mes "Louyang right away.";
mes "For my service, I am";
mes "accepting 10,000 zeny";
next;
mes "[Girl]";
mes "So, are you ready?";
next;
menu "Sure",-,"Cancel",M_CANCEL2;
if(Zeny < 10000) goto L_NOZENY;
mes "[Girl]";
mes "Okay~";
mes "Ready!";
mes "Have fun!";
close2;
set Zeny,Zeny-10000;
warp "lou_fild01.gat",190,101;
end;
L_NOZENY:
mes "[Girl]";
mes "...";
mes "You don't seem";
mes "to have 10,100 zeny...";
mes "Go get some money first!";
close;
M_CANCEL:
mes "[Girl]";
mes "Oh...";
mes "Have a good day!";
close;
M_CANCEL2:
mes "[Girl]";
mes "Oh...";
mes "It's so disappointing to hear you say that.";
mes "Well, have a good day!";
close;
}
lou_fild01.gat,190,100,1 script Girl#03 815,{
mes "[Girl]";
mes "You'd like to go back to Alberta?";
next;
menu "Go back to Alberta.",-,"Cancel.",M_CANCEL;
mes "[Girl]";
mes "I hope to";
mes "see you again!";
mes "Bye bye!";
close2;
warp "alberta.gat",235,45;
end;
M_CANCEL:
mes "[Girl]";
mes "If you like this area, why don't you stay and enjoy the food and the sights!";
next;
mes "[Girl]";
mes "And by sights...";
mes "I mean girls!";
mes "Tee hee~";
close;
}
louyang.gat,224,104,4 script Representative#01 818,{
mes "[Representative]";
mes "Welcome to Louyang,";
mes "an ancient land with";
mes "a history full of tales";
mes "of bravery.";
next;
mes "[Representative]";
mes "We now provide an ocean lane to accommodate foreign travelers and intercultural exchange from which all can benefit.";
next;
mes "[Representative]";
mes "Louyang is famous for it's elaborate history, as well as specialties that are unique to this nation. Please take your time and enjoy your stay.";
next;
menu "Ask Building Locations.",-,"Remove all marks from mini-map.",M_REMOVE,"Cancel",M_CANCEL;
mes "[Representative]";
mes "Where would you like to go?";
menu "Dragon castle",-,"Doctor's Office",M_DOC,"The City Hall",M_CHALL,"The Weapon Shop",M_WEP,"The Tool Shop",M_TOOL,"The Tavern",M_TAVERN;
mes "[Representative]";
mes "The Dragon Castle is located at ^FFCCFF+^000000.";
mes "It is where all the nobles reside,";
mes "including our lord.";
next;
viewpoint 1,218,252,1,0xFFCCFF;
mes "[Representative]";
mes "Since you're an outsider, I guess it would be appropriate for you to visit our lord first.";
close;
M_DOC:
mes "[Representative]";
mes "We have a very skillful doctor";
mes "You can find her office at ^FFFF00+^000000.";
next;
viewpoint 1,263,93,2,0xFFFF00;
mes "[Representative]";
mes "It is said that there";
mes "is no disease she cannot cure.";
mes "Well, I can't guarantee if that's true or not.";
close;
M_CHALL:
mes "[Representative]";
mes "We have a City Hall where the federal government operates.";
mes "It is located at ^AFAFAF+^000000.";
next;
viewpoint 1,310,79,3,0xAFAFAF;
mes "[Representative]";
mes "If you have any problems, you should talk with the employees in City Hall.";
close;
M_WEP:
mes "[Representative]";
mes "The Weapon Shop is located at ^00FF00+^000000.";
next;
viewpoint 1,145,175,4,0x00FF00;
mes "[Representative]";
mes "You will see marvelous weapons forged by the well-experienced blacksmiths of Louyang.";
close;
M_TOOL:
mes "[Representative]";
mes "The Tool Shop is located at ^0000FF+^000000.";
next;
viewpoint 1,136,97,5,0x0000FF;
mes "[Representative]";
mes "Knowing your enemy is half the battle!";
mes "It's also safer to prepare yourself than the be sorry later. Why don't you go check their supplies?";
close;
M_TAVERN:
mes "[Representative]";
mes "When you get tired during your trip, I suggest that you visit the Tavern. It's located at ^00FF00+^000000.";
next;
viewpoint 1,279,168,6,0x00FF00;
close;
M_REMOVE:
viewpoint 2,218,252,1,0xFFCCFF;
viewpoint 2,263,93,2,0xFFFF00;
viewpoint 2,310,79,3,0xAFAFAF;
viewpoint 2,145,175,4,0x00FF00;
viewpoint 2,136,97,5,0x0000FF;
viewpoint 2,279,168,6,0x00FF00;
mes "[Representative]";
mes "Done! All the marks on your mini-map are erased. Feel free to ask me about building location whenever you need to.";
close;
M_CANCEL:
mes "[Representative]";
mes "I understand that you want to explore Louyang and see the sights for youself. Alright then,";
mes "Take care!";
close;
}
louyang.gat,213,214,4 script Soldier#10 825,{
mes "[Soldier]";
mes "Welcome to louyang, a city with a long and colorful history.";
next;
mes "[Soldier]";
mes "Recently we've developed an ocean lane to accommodate positive exchange with foreign nations.";
next;
mes "[Soldier]";
mes "Louyang is well-known for various specialties in addition to its right. Here you can find many things unique to our land.";
next;
mes "[Soldier]";
mes "Please take your time and we invite you to enjoy your trip here in Louyang.";
next;
menu "Ask Building Locations.",-,"Remove all marks from mini-map.",M_REMOVE,"Cancel",M_CANCEL;
mes "[Soldier]";
mes "Where would you like to go?";
menu "Dragon castle",-,"Doctor's Office",M_DOC,"The City Hall",M_CHALL,"The Weapon Shop",M_WEP,"The Tool Shop",M_TOOL,"The Tavern",M_TAVERN;
mes "[Soldier]";
mes "The Dragon Castle is located at ^FFCCFF+^000000.";
mes "It is where all the nobles reside,";
mes "including our lord.";
next;
viewpoint 1,218,252,1,0xFFCCFF;
mes "[Soldier]";
mes "Since you're an outsider, I guess it would be appropriate for you to visit our lord first.";
close;
M_DOC:
mes "[Soldier]";
mes "We have a very skillful doctor";
mes "You can find her office at ^FFFF00+^000000.";
next;
viewpoint 1,263,93,2,0xFFFF00;
mes "[Soldier]";
mes "It is said that there";
mes "is no disease she cannot cure.";
mes "Well, I can't guarantee if that's true or not.";
close;
M_CHALL:
mes "[Soldier]";
mes "We have a City Hall where the federal government operates.";
mes "It is located at ^AFAFAF+^000000.";
next;
viewpoint 1,310,79,3,0xAFAFAF;
mes "[Soldier]";
mes "If you have any problems, you should talk with the employees in City Hall.";
close;
M_WEP:
mes "[Soldier]";
mes "The Weapon Shop is located at ^00FF00+^000000.";
next;
viewpoint 1,145,175,4,0x00FF00;
mes "[Soldier]";
mes "You will see marvelous weapons forged by the well-experienced blacksmiths of Louyang.";
close;
M_TOOL:
mes "[Soldier]";
mes "The Tool Shop is located at ^0000FF+^000000.";
next;
viewpoint 1,136,97,5,0x0000FF;
mes "[Soldier]";
mes "Knowing your enemy is half the battle!";
mes "It's also safer to prepare yourself than the be sorry later. Why don't you go check their supplies?";
close;
M_TAVERN:
mes "[Soldier]";
mes "When you get tired during your trip, I suggest that you visit the Tavern. It's located at ^00FF00+^000000.";
next;
viewpoint 1,279,168,6,0x00FF00;
close;
M_REMOVE:
viewpoint 2,218,252,1,0xFFCCFF;
viewpoint 2,263,93,2,0xFFFF00;
viewpoint 2,310,79,3,0xAFAFAF;
viewpoint 2,145,175,4,0x00FF00;
viewpoint 2,136,97,5,0x0000FF;
viewpoint 2,279,168,6,0x00FF00;
mes "[Soldier]";
mes "Done! All the marks on your mini-map are erased. Feel free to ask me about building location whenever you need to.";
close;
M_CANCEL:
mes "[Soldier]";
mes "I guess it's fun sometimes to go exploring on your own. Take care.";
close;
}
louyang.gat,261,123,4 script Chi Wu Ping 824,{
mes "[Chi Wu Ping]";
mes "I don't feel good...";
mes "So... Totally out of it...";
next;
mes "[Chi Wu Ping]";
mes "Oh, my aching body!";
mes "All my muscles are sore...";
mes "There's only one thing that could";
mes "cure all of this agonizing...";
mes "pain...";
next;
mes "[Chi Wu Ping]";
mes "Hey kid~!";
mes "You don't look like a local!";
mes "Why don't you follow the road ahead";
mes "and check out the big restaurant?";
next;
mes "[Chi Wu Ping]";
mes "The soup that they sell there is probably the healthiest food you can ever find.";
next;
mes "[Chi Wu Ping]";
mes "I guess you could eat";
mes "some of that soup";
mes "for your health.";
close;
}
lou_in02.gat,43,169,8 script Jiang Rong 827,{
mes "[Jiang Rong]";
mes "Dragon Soup is known for its spicy";
mes "yea sweet and refreshing taste.";
next;
mes "[Jiang Rong]";
mes "It's made with all sorts of";
mes "medicinal herbs, so it's good";
mes "for your health as well";
next;
mes "[Jiang Rong]";
mes "Dragon Soup draws out the";
mes "unnecessary heat created inside";
mes "the body and circulates the blood.";
mes "So it helps optimize the body'";
mes "functions and promotes longevity.";
next;
mes "[Jiang Rong]";
mes "I've eaten Dragon Soup regularly";
mes "ever since I was young. Look at me,";
mes "don't you think I look so healthy";
mes "considering my age?";
close;
}
lou_in02.gat,76,181,2 script Employee#03 822,{
mes "[Huang Jia Xian]";
mes "Ehhhh...";
mes "Forgive me...";
mes "....................";
mes "...Zzzzz...Zzzz...";
close;
}
lou_in02.gat,58,183,4 script Chef Assistant 823,{
mes "[Jin Wei Ling]";
mes "I used to be";
mes "an enthusiastic";
mes "martial artist.";
next;
mes "[Jin Wei Ling]";
mes "Although I became an";
mes "assistant chef for a living, I";
mes "always think of myself as a martial";
mes "artist first.";
next;
mes "[Jin Wei Ling]";
mes "So, I decided to reflect the spirit";
mes "of the martial arts into my";
mes "cooking. We are often very busy";
mes "when there are many customers.";
next;
mes "[Jin Wei Ling]";
mes "When we're busy I can use my";
mes "martial arts to cook cuisine much";
mes "more quickly! Hahaha~ Martial arts";
mes "can be very practical!";
next;
mes "[Jin Wei Ling]";
mes "Waaa-!!!!";
misceffect 55;
next;
mes "[Jin Wei Ling]";
mes "Waaa Taah-!!!!!";
misceffect 11;
next;
mes "[Jin Wei Ling]";
mes "Waaa...";
mes "Waa Taaah-!!!!!";
misceffect 121;
next;
mes "[Jin Wei Ling]";
mes "^3131FF*Chop chop chop chop chop*^000000";
donpcevent "Lounpc::OnEffect";
next;
mes "[Jin Wei Ling]";
emotion e_no1;
mes "Hahahaha! Look at these perfect";
mes "vegetable slices! Muhahahaha!!";
mes "I will continue to hone my martial";
mes "arts through cooking!";
close;
}
lou_in02.gat,58,181,2 script Lounpc 139,{
OnEffect:
misceffect 122;
end;
}
louyang.gat,274,136,4 script Powerful-looking guy 819,{
mes "[Akiira]";
mes "I am practicing my 'Claw of";
mes "Dragon.' I not only need to use the";
mes "power of my fists, I must also";
mes "condition myself spiritually.";
next;
mes "[Akiira]";
mes "Every martial art requires";
mes "spiritual training since the";
mes "mind controls the body.";
mes "If you've trained yourself";
mes "spiritually, you can easily";
mes "use any part of the body!";
next;
mes "[Akiira]";
mes "If you are considering";
mes "studying the martial arts, you";
mes "should first attain knowledge";
mes "before jumping into the";
mes "physical training.";
next;
mes "[Akiira]";
mes "Learn about the martial arts";
mes "and meditate on life's truths.";
mes "First, you must find peace of mind";
mes "before you can hope to master the";
mes "mind and body.";
close;
}
louyang.gat,276,136,4 script Fist Master 819,{
mes "[Zhiang Xiau Ji]";
mes "Finally...";
mes "I have mastered";
mes "the 'Claw of Draon!'";
next;
mes "[Zhiang Xiau Ji]";
mes "Although there are eight basic";
mes "steps, I had to learn the history";
mes "of this art, and meditate, focusing";
mes "on my spiritual improvement,";
mes "for three years";
next;
mes "[Zhiang Xiau Ji]";
mes "After that, my master finally";
mes "started to give me the physical";
mes "training so I could use the eight";
mes "steps of the Claw of Dragon. I've";
mes "devoted myself to this art for thirty years.";
next;
mes "[Zhiang Xiau Ji]";
mes "I'm very proud that I've";
mes "mastered this art ten years earlier";
mes "than I expected. Now I need to";
mes "study this form and improve it by";
mes "correcting its weak points and";
mes "enhancing its strengths.";
next;
mes "[Zhiang Xiau Ji]";
mes "I guess that would take me about";
mes "ten years. But I'm not disheartened";
mes "by that at all.";
next;
mes "[Zhiang Xiau Ji]";
mes "When you're learning a martial art,";
mes "you can't rush yourself and learn";
mes "everything in a short period of";
mes "time. It's impossible! Plus, that";
mes "isn't the essence of ?";
close;
}
louyang.gat,272,133,0 script Trainee::trainees 819,{
set @talk,rand(12);
if(@talk == 1) goto L_QUOT1;
if(@talk == 2) goto L_QUOT2;
if(@talk == 3) goto L_QUOT3;
if(@talk == 4) goto L_QUOT4;
if(@talk == 5) goto L_QUOT5;
if(@talk == 6) goto L_QUOT6;
if(@talk == 7) goto L_QUOT7;
if(@talk == 8) goto L_QUOT8;
if(@talk == 9) goto L_QUOT9;
if(@talk == 10) goto L_QUOT10;
if(@talk == 11) goto L_QUOT11;
L_QUOT0:
mes "[Trainee]";
mes "Aha~!";
mes "Hai~!!";
mes "Huh...";
close;
L_QUOT1:
mes "[Trainee]";
mes "Woh~!";
mes "Hai~!!";
mes "Huh huh...";
close;
L_QUOT2:
mes "[Trainee]";
mes "Kyaa~";
mes "Yah~~!!";
mes ".......";
close;
L_QUOT3:
mes "[Trainee]";
mes "Hu~!";
mes "Hu hu~~!!";
mes "Hu...";
close;
L_QUOT4:
mes "[Trainee]";
mes "Wah?!";
mes "Ahchiu~~!!";
mes "Wah...";
close;
L_QUOT5:
mes "[Trainee]";
mes "Yaah~";
mes "...!";
mes "........!!";
close;
L_QUOT6:
mes "[Trainee]";
mes "Chongchiu!!";
mes "Hu~~!!";
mes "Hwooh~~";
close;
L_QUOT7:
mes "[Trainee]";
mes "Zhua loh~!";
mes ".....";
mes "Hu";
close;
L_QUOT8:
mes "[Trainee]";
mes "One hit~!";
mes "Hai~!!";
mes "Yah~!!";
close;
L_QUOT9:
mes "[Trainee]";
mes "Ai yah..";
mes "Yaahah~~";
mes "(rolls around)......";
close;
L_QUOT10:
mes "[Trainee]";
mes "Niu ah...";
mes "One~~!!";
mes "Two~~!!!";
close;
L_QUOT11:
mes "[Trainee]";
mes "Yeeah~!";
mes "Ah I�m so tired~~!!";
mes "(faints).....";
close;
}
louyang.gat,272,131,0 duplicate(trainees) Trainee#2 819
louyang.gat,272,129,0 duplicate(trainees) Trainee#3 819
louyang.gat,274,133,0 duplicate(trainees) Trainee#4 819
louyang.gat,274,131,0 duplicate(trainees) Trainee#5 819
louyang.gat,274,129,0 duplicate(trainees) Trainee#6 819
louyang.gat,276,133,0 duplicate(trainees) Trainee#7 819
louyang.gat,276,131,0 duplicate(trainees) Trainee#8 819
louyang.gat,276,129,0 duplicate(trainees) Trainee#9 819
louyang.gat,278,133,0 duplicate(trainees) Trainee#10 819
louyang.gat,278,131,0 duplicate(trainees) Trainee#11 819
louyang.gat,278,129,0 duplicate(trainees) Trainee#12 819
lou_in01.gat,111,151,4 script Soldier#11 825,{
mes "[Soldier]";
mes "*Yawn* It's so boring here";
mes "nowadays. Although, I hear that";
mes "a long time ago, things were";
mes "much different.";
next;
mes "[Soldier]";
mes "Supposedly, monsters used to";
mes "intrude Louyang all the time! Heh,";
mes "but that's just rumor. Still,";
mes "there are a bunch of rumors going";
mes "around that I'm curious about...";
close;
}
lou_in01.gat,91,151,4 script Soldier#12 825,{
mes "[Soldier]";
mes "....z..Z..z...";
next;
menu "Hey, wake up!",-;
mes "[Soldier]";
mes "Yeeeesss...Sir!";
mes "I was not dozing off~";
mes "Seerious...ly...";
next;
mes "[Soldier]";
mes "...";
next;
mes "[Soldier]";
mes "...";
mes "......";
next;
mes "[Soldier]";
mes "...";
mes "......";
mes "....z..Z..z...";
close;
}
lou_in01.gat,82,139,6 script Soldier#13 825,{
mes "[Soldier]";
mes "There is nothing much, but if you";
mes "wish to look around this room,";
mes "please be my guest.";
close;
}
lou_in01.gat,45,138,4 script Soldier#14 825,{
mes "[Soldier]";
mes "It's strange to see outsiders in";
mes "this kind of place. We don't have";
mes "any business with you,";
mes "so move along.";
close;
}
lou_in01.gat,102,144,4 script Soldier#15 825,{
mes "[Soldier]";
mes "People have been";
mes "saying that there's";
mes "a scammer at the entrance of town...";
next;
menu "...?",-;
mes "[Soldier]";
mes "But I went there and I didn't";
mes "find anyone suspicious. I swear,";
mes "everything seemed completely";
mes "normal!";
close;
}
lou_in01.gat,99,144,4 script Soldier#16 825,{
mes "[Soldier]";
mes "Ah, don't bother";
mes "to listen to this";
mes "guy beside of me.";
next;
mes "[Soldier]";
mes "I hope you have a good time while";
mes "you're staying in Louyang!";
close;
}
lou_in01.gat,25,23,4 script Friendly Looking Lady 817,{
mes "[Hong Miao]";
mes "Welcome.";
next;
mes "[Hong Miao]";
mes "This is an elevator which leads";
mes "to the Observation Tower. We are";
mes "providing you a safe and fast";
mes "transfer service for an affordable";
mes "fee. Would you like to use this ";
mes "service?";
next;
menu "Information",-,"Yes",s_Yes,"Maybe next time.",s_Next_Time;
mes "[Hong Miao]";
mes "After many suggestions and";
mes "proposals were sent to the Louyang";
mes "tourism office, the Observation";
mes "Tower was built do tourists";
mes "can enjoy the sights.";
next;
mes "[Hong Miao]";
mes "Due to the geographical";
mes "features of Louyang, it's difficult";
mes "to enjoy the breath taking view";
mes "that our land has to offer.";
next;
mes "[Hong Miao]";
mes "You can come up to the tower by";
mes "taking the elevator right here. We";
mes "are providing this quick and safe";
mes "transfer service for 500 zeny per";
mes "person.";
close;
s_Yes:
if(zeny < 500)goto L_Zeny;
mes "[Hong Miao]";
mes "Thank for your patronage.";
mes "We are trying to provide you with";
mes "the best service, Please";
mes "come again.";
close2;
set Zeny,Zeny - 500;
warp "lou_in01.gat",16,19;
end;
L_Zeny:
mes "[Hong Miao]";
mes "I am sorry, but you don't have enough money.";
close;
s_Next_Time:
mes "[Hong Miao]";
mes "Please come";
mes "back later.";
mes "Have a good day.";
close;
}
louyang.gat,84,253,0 script Exit 111,{
mes "^3131FFThere is some sort";
mes "of descent apparatus.";
mes "Would you like to use it?^000000";
next;
menu "Yes",-,"No",s_No;
warp "lou_in01.gat",10,18;
end;
s_No:
close;
}
lou_in02.gat,272,55,1 script Familiar-Looking Patient 86,{
mes "[??????]";
mes "*Cough cough...*";
mes "Awww......www...";
mes "Aww...wwww..";
emotion 9;
close;
}