diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-03 18:29:57 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-03 18:29:57 +0000 |
commit | a949d2d14888f0b731b2363e52291161fa9575ee (patch) | |
tree | 9d55ea118fa5a720d56f7b6e88e1b9cf0c036369 /npc | |
parent | e3b6a8c0629f1a9a7bd05bd3a7ba7a342905ec77 (diff) | |
download | serverdata-a949d2d14888f0b731b2363e52291161fa9575ee.tar.gz serverdata-a949d2d14888f0b731b2363e52291161fa9575ee.tar.bz2 serverdata-a949d2d14888f0b731b2363e52291161fa9575ee.tar.xz serverdata-a949d2d14888f0b731b2363e52291161fa9575ee.zip |
A bunch of new scripts and script updates by Bear.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/heal.txt | 59 | ||||
-rw-r--r-- | npc/nekkio.txt | 88 | ||||
-rw-r--r-- | npc/slot_machine.txt | 116 | ||||
-rw-r--r-- | npc/spekko.txt | 100 | ||||
-rw-r--r-- | npc/tip_announcer.txt | 90 | ||||
-rw-r--r-- | npc/tulimshar/children.txt | 96 | ||||
-rw-r--r-- | npc/tulimshar/guards.txt | 57 | ||||
-rw-r--r-- | npc/tulimshar/monsters.txt | 16 |
8 files changed, 595 insertions, 27 deletions
diff --git a/npc/heal.txt b/npc/heal.txt new file mode 100644 index 00000000..02e38cd0 --- /dev/null +++ b/npc/heal.txt @@ -0,0 +1,59 @@ +//Heal NPC costs 100 money +new_3-1.gat,40,66,0 script Elanore 108,{ + set @TEMP,rand(3); + if(@TEMP == 0) goto Heal1; + if(@TEMP == 1) goto Heal2; + if(@TEMP == 2) goto Heal3; + if(@TEMP == 3) goto Heal4; +Heal1: + mes "[Elanore]"; + mes "You don't look too well, let me treat your wounds."; + next; + goto Heal_L; + +Heal2: + mes "[Elanore]"; + mes "I will make quick work of your wounds."; + next; + goto Heal_L; + +Heal3: + mes "[Elanore]"; + mes "Need a healing?."; + next; + goto Heal_L; + +Heal4: + mes "[Elanore]"; + mes "Sometimes you just need to run from battle."; + next; + goto Heal_L; + +Heal_L: + if(@TEMP == 0) goto Heal_1; + if(@TEMP == 1) goto Heal_2; + if(@TEMP == 2) goto Heal_3; + if(@TEMP == 3) goto Heal_4; +Heal_1: + mes "[Elanore]"; + mes "Here you go!"; + heal 10000,10000; + close; + +Heal_2: + mes "[Elanore]"; + mes "Painless wasnt it?"; + mes "Here you go!"; + heal 10000,10000; + close; +Heal_3: + mes "[Elanore]"; + mes "You should be more careful."; + heal 10000,10000; + close; +Heal_4: + mes "[Elanore]"; + mes "Much better right?!"; + heal 10000,10000; + close; +} diff --git a/npc/nekkio.txt b/npc/nekkio.txt new file mode 100644 index 00000000..ccd6e393 --- /dev/null +++ b/npc/nekkio.txt @@ -0,0 +1,88 @@ +new_3-1.gat,49,69,0 script Nekkio 108,{ + if(Scorp == 2) goto done; + if(Scorp == 1) goto reas; + set @TEMP,rand(3); + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 0) goto L_4; + +L_1: + mes "[Nekkio]"; + mes "In the outskirts of Tulimshir, there lies a Red scorpion. I need a favor if anyone can give me one."; + next; + goto red; +L_2: + mes "[Nekkio]"; + mes "When you venture to the outskirts of Tulimshir, you will spot a Red Scorpion. Will you help me get one?"; + next; + goto red; +L_3: + mes "[Nekkio]"; + mes "The red scorpions stinger carries many properties used in herbs."; + next; + goto red; +L_4: + mes "[Nekkio]"; + mes "You look sturdy enough, will you help me get something?"; + next; + goto red; + +red: + menu "Yes",L_kl,"No",L_N; + +L_kl: + if(@TEMP == 1) goto K_1; + if(@TEMP == 2) goto K_2; + if(@TEMP == 3) goto K_3; + if(@TEMP == 0) goto K_1; +K_1: + mes "[Nekkio]"; + mes "I need you to slaughter the Red Scorpion found outside of Tulimshir and bring me 5 [Red Stingers]"; + next; + goto set1; +K_2: + mes "[Nekkio]"; + mes "I heard a while ago that the Stinger of the Red scorpion can be used for medical purposes. I need you to help me get 5 [Red Stingers]"; + next; + goto set1; +K_3: + mes "[Nekkio]"; + mes "Bring me 5 [Red Stingers] and i will reward you greatly"; + next; + goto set1; + +set1: + set Scorp,1; + mes "[Nekkio]"; + mes "Please bring them to me!"; + close; + +reas: + if(countitem(517) >= 5) goto have; + mes "[Nekkio]"; + mes "Please hurry and bring me 5 [Red Stingers]"; + close; + +have: + mes "[Nekkio]"; + mes "Excelent!, you have brought me 5 [Scorpion Stingers]!"; + delitem 517,5; + next; + mes "[Nekkio]"; + mes "Here you go, heres your reward!"; + mes "+Got Bow"; + mes "+Got Arrows 100"; + getitem 1200,1; + getitem 1199,100; + set Scorp,2; + close; + +done: + mes "[Nekkio]"; + mes "Thankyou for all of your help!"; + close; + +L_N: + close; +} diff --git a/npc/slot_machine.txt b/npc/slot_machine.txt new file mode 100644 index 00000000..f3ee4bce --- /dev/null +++ b/npc/slot_machine.txt @@ -0,0 +1,116 @@ +//slots! +new_3-1.gat,47,47,0 script Elanorere 108,{ + mes "How Much would you like to insert?"; + next; + menu "1 Coin",L_1,"5 Coins",L_5,"10 Coins",L_10,"20 Coins",L_20; +L_1: + if(countitem(503) < 1) goto Coins; + delitem 503,1; + mes "Insert Coin and pull handle."; + next; + set @Temp1,rand(7); + set @Temp2,rand(7); + set @Temp3,rand(7); + mes "Numbers"+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +""; + next; + if(@Temp1 == @Temp2) goto L_12; + mes "Lose"; + close; +L_12: + if(@Temp2 == @Temp3) goto L_13; + mes "Lose"; + close; +L_13: + if(@Temp3 == @Temp1) goto win1; + mes "Lose"; + close; +win1: + mes "You won"; + mes "2 Coins added to inventory"; + getitem 503,2; + close; + +L_5: + if(countitem(503) < 5) goto Coins; + delitem 503,5; + mes "Insert Coin and pull handle."; + next; + set @Temp1,rand(7); + set @Temp2,rand(7); + set @Temp3,rand(7); + mes "Numbers"+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +""; + next; + if(@Temp1 == @Temp2) goto L_14; + mes "Lose"; + close; +L_14: + if(@Temp2 == @Temp3) goto L_15; + mes "Lose"; + close; +L_15: + if(@Temp3 == @Temp1) goto win5; + mes "Lose"; + close; +win5: + mes "You won"; + mes "5 Coins added to inventory"; + getitem 503,10; + close; +L_10: + if(countitem(503) < 10) goto Coins; + delitem 503,10; + mes "Insert Coin and pull handle."; + next; + set @Temp1,rand(7); + set @Temp2,rand(7); + set @Temp3,rand(7); + mes "Numbers"+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +""; + next; + if(@Temp1 == @Temp2) goto L_120; + mes "Lose"; + close; + +L_120: + if(@Temp2 == @Temp3) goto L_130; + mes "Lose"; + close; +L_130: + if(@Temp3 == @Temp1) goto win10; + mes "Lose"; + close; +win10: + mes "You won"; + mes "20 Coins added to inventory"; + getitem 503,20; + close; +L_20: + if(countitem(503) < 20) goto Coins; + delitem 503,20; + mes "Insert Coin and pull handle."; + next; + set @Temp1,rand(7); + set @Temp2,rand(7); + set @Temp3,rand(7); + mes "Numbers"+ @Temp1 +"/"+ @Temp2 +"/"+ @Temp3 +""; + next; + if(@Temp1 == @Temp2) goto L_1200; + mes "Lose"; + close; + +L_1200: + if(@Temp2 == @Temp3) goto L_1300; + mes "Lose"; + close; +L_1300: + if(@Temp3 == @Temp1) goto win100; + mes "Lose"; + close; +win100: + mes "You won"; + mes "40 Coins added to inventory"; + getitem 503,40; + close; +Coins: + mes "Sorry, you dont have enough coins!"; + close; +} diff --git a/npc/spekko.txt b/npc/spekko.txt new file mode 100644 index 00000000..293326c7 --- /dev/null +++ b/npc/spekko.txt @@ -0,0 +1,100 @@ +new_3-1.gat,66,68,0 script Spekko 108,{ + if(Bugleg == 1) goto reas; + if(Bugleg == 2) goto done; + set @TEMP,rand(3); + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 0) goto L_4; + +L_1: + mes "[Spekko]"; + mes "I just need 30 more [Bug Leg] to finish my action figure!"; + next; + goto main1; +L_2: + mes "[Spekko]"; + mes "This Maggot action figure is awesome! I just need to attach [30 Part A{Bug Leg}]"; + next; + goto main1; +L_3: + mes "[Spekko]"; + mes "This is a great Action Figure!, a must have!, all i need is a few parts..."; + goto main1; +L_4: + mes "[Spekko]"; + mes "Can you get me 30 [Bug Legs]? i need them to replace the action figure parts."; + next; + goto main1; + +main1: + mes "[Spekko]"; + mes "Will you help me find 30 [Bug Legs]?"; + next; + menu "Yes",B_1,"No",B_2; +B_1: + set Bugleg,1; + set @TEMP,rand(3); + if(@TEMP == 1) goto J_1; + if(@TEMP == 2) goto J_2; + if(@TEMP == 3) goto J_3; + if(@TEMP == 0) goto J_4; +J_1: + mes "[Spekko]"; + mes "Thank you!"; + next; + goto main2; +J_2: + mes "[Spekko]"; + mes "I dont know how to thank you enough!"; + next; + goto main2; +J_3: + mes "[Spekko]"; + mes "I will thank you when i get them!"; + next; + goto main2; +J_4: + mes "[Spekko]"; + mes "Im sure i will give a small reward :D"; + next; + goto main2; +main2: + mes "[Spekko]"; + mes "Now please go get me 30 [Bug Legs]"; + close; +reas: + if(countitem(518) >= 30) goto have; + mes "[Spekko]"; + mes "Please help me collect 30 [Bug Legs]!"; + close; +have: + mes "[Spekko]"; + mes "Excellent!, Finally i can complete the Model!!"; + delitem 518,30; + next; + mes "[Spekko]"; + mes "Here you go, heres a little of my Appreciation!"; + next; + mes "Got 1000 GP"; + set zeny,zeny+1000; + set Bugleg,2; + close; +done: + mes "[Spekko]"; + mes "Thanks yor your help!"; + close; +B_2: + close; +} + +new_3-1.gat,30,42,0 script North Guard 104,{ + if(joblevel > 8) goto change; + mes "Hi there"; + close; +change: + mes "[Person]"; + mes "Since your higher than Job Level 10, i will change you to give you advancements in stats"; + jobchange 1; +close; +} diff --git a/npc/tip_announcer.txt b/npc/tip_announcer.txt new file mode 100644 index 00000000..584b8242 --- /dev/null +++ b/npc/tip_announcer.txt @@ -0,0 +1,90 @@ +new_3-1.gat,152,200,5 script Tip -1,{ +OnTimer80000: + setnpctimer 0; +Lariatalk: + set $ariatalk,rand(15); + if($ariatalk == 0) goto Lquote0; + if($ariatalk == 1) goto Lquote1; + if($ariatalk == 2) goto Lquote2; + if($ariatalk == 3) goto Lquote3; + if($ariatalk == 4) goto Lquote4; + if($ariatalk == 5) goto Lquote5; + if($ariatalk == 6) goto Lquote6; + if($ariatalk == 7) goto Lquote7; + if($ariatalk == 8) goto Lquote8; + if($ariatalk == 9) goto Lquote9; + if($ariatalk == 10) goto Lquote10; + if($ariatalk == 11) goto Lquote11; + if($ariatalk == 12) goto Lquote12; + if($ariatalk == 13) goto Lquote13; + if($ariatalk == 14) goto Lquote14; + if($ariatalk == 15) goto Lquote15; + goto Lariatalk; +Lquote0: + announce "This is NOT an official server!.",8; + setnpctimer 0; + break; +Lquote1: + announce "Elanore can be found in the town, She can heal your wounds.",8; + setnpctimer 0; + break; +Lquote2: + announce "Strength raises attack with melee weapons.",8; + setnpctimer 0; + break; +Lquote3: + announce "Agility raises you attack speed and your dodge.",8; + setnpctimer 0; + break; +Lquote4: + announce "Dexterity raises you Bow damage and your accuracy rate",8; + setnpctimer 0; + break; +Lquote5: + announce "Vitality raises max HP and defense.",8; + setnpctimer 0; + break; +Lquote6: + announce "Luck raises max lucky dodge and higher item drops.",8; + setnpctimer 0; + break; +Lquote7: + announce "There are basic shop NPCs in town.",8; + setnpctimer 0; + break; +Lquote8: + announce "There is a quest provided for your enjoyment(Spekko).",8; + setnpctimer 0; + break; +Lquote9: + announce "There is a quest provided for your enjoyment(Nekkio).",8; + setnpctimer 0; + break; +Lquote10: + announce "some items can be consumed for health.",8; + setnpctimer 0; + break; +Lquote11: + announce "By killing monsters, you gain EXPERIENCE.",8; + setnpctimer 0; + break; +Lquote12: + announce "You can sit with the F5 Key.",8; + setnpctimer 0; + break; +Lquote13: + announce "You can view your skills with alt+k and vier items with alt+i.",8; + setnpctimer 0; + break; +Lquote14: + announce "This game is still in alpha phase, so be patient.",8; + setnpctimer 0; + break; +Lquote15: + announce "Enjoying the server?",8; + setnpctimer 0; + break; +OnInit: + initnpctimer; + break; +}
\ No newline at end of file diff --git a/npc/tulimshar/children.txt b/npc/tulimshar/children.txt index 9157be4c..10fb18f9 100644 --- a/npc/tulimshar/children.txt +++ b/npc/tulimshar/children.txt @@ -1,13 +1,93 @@ new_3-1.gat,57,70,0 script Child1 108,{ -mes "[Child]"; -mes "Maggots are soo slimey "; -close; + set @TEMP,rand(7); + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 4) goto L_4; + if(@TEMP == 5) goto L_5; + if(@TEMP == 6) goto L_6; + if(@TEMP == 7) goto L_7; + if(@TEMP == 0) goto L_1; + +L_1: + mes "[Child]"; + mes "Maggots are soo slimey!"; + close; + +L_2: + mes "[Child]"; + mes "Want to play ball with me?"; + close; + +L_3: + mes "[Child]"; + mes "Monsters roam the land, i hate scorpions!"; + close; + +L_4: + mes "[Child]"; + mes "When i grow up, I want to be strong enough to kill a scorpion!"; + close; + +L_5: + mes "[Child]"; + mes "Items dropped by monsters can be sold for *Currency name here*"; + close; + +L_6: + mes "[Child]"; + mes "Items such as foods, can be eaten to regain Health Points."; + close; + +L_7: + mes "[Child]"; + mes "I want to be a Doctor when i grow up!"; + close; } new_3-1.gat,120,33,0 script Child2 103,{ -mes "[Child]"; -mes "Ever been pinched by a scorpion?"; -next; -mes "It Hurts..."; -close; + set @TEMP,rand(7); + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 4) goto L_4; + if(@TEMP == 5) goto L_5; + if(@TEMP == 6) goto L_6; + if(@TEMP == 7) goto L_7; + if(@TEMP == 0) goto L_1; + +L_1: + mes "[Child]"; + mes "If i learned anything from school, Grenxen founded Tulimshar."; + close; + +L_2: + mes "[Child]"; + mes "When i was picking rocks from the field, i saw a red scorpion."; + close; + +L_3: + mes "[Child]"; + mes "Its polite to state your name before talking to anyone."; + close; + +L_4: + mes "[Child]"; + mes "I have a Scorpion Doll!"; + close; + +L_5: + mes "[Child]"; + mes "I carry spare Cactus Juices while on the field."; + close; + +L_6: + mes "[Child]"; + mes "Items such as foods, can be eaten to regain Health Points."; + close; + +L_7: + mes "[Child]"; + mes "Grenxen is the Demon that founded Tulimshar."; + close; } diff --git a/npc/tulimshar/guards.txt b/npc/tulimshar/guards.txt index 375199eb..ce020e48 100644 --- a/npc/tulimshar/guards.txt +++ b/npc/tulimshar/guards.txt @@ -1,20 +1,47 @@ new_3-1.gat,48,79,0 script Guard 104,{ - mes "[Soldier]"; - mes "Protecting this place is my job. Be careful if you walk outside, there are monsters harder than anything you find here."; + mes "[Guard]"; + mes "Protecting Tulimshar is my job."; next; - menu - "What kind of monsters?",L_Exp, - "Nevermind",L_Nev; + "Can you give me any tips?",L_Tip, + "Information",L_Info,; -L_Exp: - mes "Actually, in my whole career, I've only seen maggots and scorpions. So please don't ask me about monsters."; - next; - mes "This place is actually pretty safe."; +L_Tip: + set @TEMP,rand(5); + if(@TEMP == 0) goto L_0; + if(@TEMP == 1) goto L_1; + if(@TEMP == 2) goto L_2; + if(@TEMP == 3) goto L_3; + if(@TEMP == 4) goto L_4; + if(@TEMP == 5) goto L_5; +L_1: + mes "[Guard]"; + mes "Try to carry spare potion when on fields or in dungeons, they will come in handy."; close; - -L_Nev: - mes "Careful!"; +L_2: + mes "[Guard]"; + mes "Always carry a map of where you are, ask the Guides in most towns to get one."; + close; +L_3: + mes "[Guard]"; + mes "When in a dungeon, monsters are more aggressive than if they were outside."; + close; +L_4: + mes "[Guard]"; + mes "When gambling for money in casino's, make sure you have enough emergency money."; + close; +L_5: + mes "[Guard]"; + mes "Never underestimate the enemy."; + close; +L_0: + mes "[Guard]"; + mes "Let me think of a few... Oh! Do NOT attack Red scorpions unless you can kill it for sure!"; + close; + +L_Info: + mes "[Guard]"; + mes "Sorry I have no information for you, try asking for a tip."; close; } @@ -22,6 +49,8 @@ new_3-1.gat,40,79,0 script SGuard 104,{ mes "[Soldier]"; mes "ZzzZzzZ..."; next; - mes "Heh, what? I wasn't sleeping, I just had my eyes closed!"; - close; + mes "[Soldier]"; + mes "Heh, what?"; + mes "I wasn't sleeping, I was just resting my eyes!"; +close; } diff --git a/npc/tulimshar/monsters.txt b/npc/tulimshar/monsters.txt index e838c1e2..0a03319c 100644 --- a/npc/tulimshar/monsters.txt +++ b/npc/tulimshar/monsters.txt @@ -1,7 +1,13 @@ -new_3-1.gat,0,0,0,0 monster Maggot 1002,20,0,0,0 -new_3-1.gat,0,0,0,0 monster Scorpion 1003,5,0,0,0 +new_3-1.gat,0,0,0,0 monster Maggot[Lv1] 1002,30,0,0,0 +new_3-1.gat,0,0,0,0 monster Scorpion[Lv5] 1003,5,0,0,0 -new_1-1.gat,0,0,0,0 monster GreenSlime 1005,50,0,0,0 -new_1-1.gat,0,0,0,0 monster GiantMaggot 1006,30,0,0,0 -new_1-1.gat,0,0,0,0 monster RedScorpion 1004,1,0,0,0 +new_1-1.gat,0,0,0,0 monster GreenSlime[Lv15] 1005,50,0,0,0 +new_1-1.gat,0,0,0,0 monster GiantMaggot[Lv20] 1006,30,0,0,0 +new_1-1.gat,0,0,0,0 monster RedScorpio[Lv35] 1004,1,0,0,0 +new_3-1.gat,0,0,0,0 monster Yslime[Lv5] 1007,25,0,0,0 +new_3-1.gat,0,0,0,0 monster Resident[Lv1] 1102,3,0,0,0 +new_3-1.gat,0,0,0,0 monster Resident[Lv1] 1103,2,0,0,0 +new_3-1.gat,0,0,0,0 monster Resident[Lv1] 1104,4,0,0,0 +new_3-1.gat,0,0,0,0 monster Resident[Lv1] 1105,5,0,0,0 +new_3-1.gat,0,0,0,0 monster Resident[Lv1] 1106,3,0,0,0 |