chryxt Posted November 4, 2015 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 05/06/15 Last Seen: September 13, 2019 Share Posted November 4, 2015 (edited) Hello guys, i need some help to make script npc like this1. Choose Quest Name 2. Description3. Edit enable/disable Required Mob with kill count 4. Required Items 5. Limitations (repeatable/not, max level, char job) 6. Rewards (items,exp,zeny,points) Example: Quest Name :Costume Goblin Leader MaskDescription :Customize your Goblin Leader Mask!Required Mob Kill Count : NoneRequired Items :1 Goblin Leader Mask 5 Goblin Leader Egg 3 Goblin Leader Card 2 iRO TokenLimitations : Can Do Only Once Base Lv: 80-99Rewards :1 Costume Goblin Leader Mask ======================================================================== Quest Name : Archer Wolf Killing Spree!Description : Please tend to my cows! Desert Wolves have been eating them! Kill them all!Required Mob Kill Count : 100 Desert WolfRequired Items : NoneLimitations : ArcherRewards :1 Bag of nuts =========================================================================== Quest Name : Contact Lens - CrimsonDescription : Be unique! Accessorize with a Crimson contact lens!<3Required Mob Kill Count : 100 Beholder Master 100 Soldier Skeleton 100 Isis 100 Anacondaq 100 VeritRequired Items : 1 Fang of Hatii 100 Sticky Mucus 100 Empty Bottle 2 Scarlet DyestuffsLimitations : Can Only Do Once Base Level 99-150Rewards : 1 Cash Point 1 Contacts Crimson inspiration from intenseROThanks before Edited November 4, 2015 by chryxt Quote Link to comment Share on other sites More sharing options...
Rain408 Posted November 4, 2015 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 77 Reputation: 0 Joined: 05/23/15 Last Seen: June 4, 2017 Share Posted November 4, 2015 If you want to set a a kill count. I'm pretty sure you need to set a quest number, I.E go into your quest.db, Scroll to the bottom and add in a quest (0, " mosnter id", " # of monster",0,0,0,0) " Name of quest ". Afterwards you can take that quest number & use it. I.E setquest XXXX. Hmm, I'll update a script later i guess. Quote Link to comment Share on other sites More sharing options...
chryxt Posted November 4, 2015 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 05/06/15 Last Seen: September 13, 2019 Author Share Posted November 4, 2015 If you want to set a a kill count. I'm pretty sure you need to set a quest number, I.E go into your quest.db, Scroll to the bottom and add in a quest (0, " mosnter id", " # of monster",0,0,0,0) " Name of quest ". Afterwards you can take that quest number & use it. I.E setquest XXXX. Hmm, I'll update a script later i guess. Thank you rain, ill waiting for it Quote Link to comment Share on other sites More sharing options...
Rain408 Posted November 4, 2015 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 77 Reputation: 0 Joined: 05/23/15 Last Seen: June 4, 2017 Share Posted November 4, 2015 This is my own personal script that a 2 part quest. The first part check if your lvl 80+, if so it set a quest where you need to kill vesper to proceed on. If you happen to kill vesper, it reveal location of 2nd npc and set your 2nd quest. When you talk to the 2nd npc, if you don't have 2nd set quest. The npc wont talk to you. But if you do have the 2nd quest set, than you will be able to craft the item. So overall the script covers how to set limitations on What lvl range you need to be to do the quest. How to set a hunting quest, on the quest.db side, & then using it in the npc script. And a basic format for a npc that craft an item if material are present. Now for the part where you want the npc to check if the quest is done & if items are gathered. I would suppose you make a npc where it first set a quest to hunt the monsters. Once the monsters are hunting, the Npc ask player to gather these items. Once Items are gather, craft the items and also delete the set quest. There many way you can script it so best of luck. My Npc script. jupe_core,153,153,4 script Professor X#Vesper_Hunt 933,{ if (checkquest(60511) != -1) { mes "^FF0000[Professor X]^000000"; mes "I can't believe you pull it off."; mes "The Man that can craft ^FF0000Robo Eyes^000000."; mes "Is my nephew, Cyclops."; mes "He's located in at the central tower in einbroch"; close; } else { if (checkquest(60510) != -1) { if (checkquest(60510,HUNTING) != 2 ) { mes "^FF0000[Professor X]^000000"; mes "Have you defeated the ^FF0000Vesper^000000?"; next; switch(select("Yes:No:I want to quit")) { case 1: mes "^FF0000[Professor X]^000000"; mes "My database says he's still a live"; close; case 2: mes "^FF0000[Professor X]^000000"; mes "Please stop his rampage."; close; case 3: mes "^FF0000[Professor X]^000000"; mes "So value your life...."; mes "Let me ask you again, do you wish to continue"; mes "Remember any progress that you've made will be erased"; next; switch(select("Yes:No")) { case 1: mes "^FF0000[Professor X]^000000"; mes "Ok then, well come back here if you change your mind."; erasequest 60510; close; case 2: mes "^FF0000[Professor X]^000000"; mes "Best of Luck."; close; } } } else { mes "^FF0000[Professor X]^000000"; mes "I can't believe you pull it off."; mes "The Man that can craft ^FF0000Robo Eyes^000000."; mes "Is my nephew, Cyclops."; mes "He's located in at the central tower in einbroch"; erasequest 60510; setquest 60511; close; } } } //for minimum level if (BaseLevel > 80) { mes "^FF0000[Professor X]^000000"; mes "Youngster why would you venture to such a place."; next; mes "^FF0000[Professor X]^000000"; mes "Haha... "; mes "Brave aren't you or just a fool."; mes "But fools are my kind of people."; next; mes "^FF0000[Professor X]^000000"; mes "Will you listen to my story?"; next; switch(select("Yes:No")) { case 1: // Kill Count Quest mes "^FF0000[Professor X]^000000"; mes "When I was a young man, I was consume by robotics."; mes "I work endless"; mes "everyday for 50 years."; mes "And finally created ^FF0000^FF0000Vesper^000000^000000."; next; mes "^FF0000[Professor X]^000000"; mes "^FF0000Vesper^000000 was an excellent machine, with an one of kind AI."; mes "Soon ^FF0000Vesper^000000 began to learn & with amazing speed. But..."; mes "^FF0000Vesper^000000 came to a conclusion that I was no longer needed."; mes "And humans were below him."; next; mes "^FF0000[Professor X]^000000"; mes "Vesper started to produce machines"; mes "so that he could rule over humans."; mes "^FF0000Vesper^000000 is now very dangerous!"; mes "Will you please stop him?"; next; switch(select("Yes:No")) { case 1: mes "^FF0000[Professor X]^000000"; mes "Thank you"; mes "If you defeat him."; mes "I will tell you the location of where to craft ^FF0000Robo Eyes^000000"; setquest 60510; close; case2: mes "^FF0000[Professor X]^000000"; mes "So you choose your life"; mes " I guess your Not a fool afterall"; close; } case 2: mes "^FF0000[Professor X]^000000"; mes "It's okay"; mes "Please be careful"; close; } } else { mes "^FF0000[Professor X]^000000"; mes "I am not here by my own will."; mes "Please run before your a slave too!"; close; } } einbroch,169,198,3 script Robo Cyclops 107,{ if (checkquest(60511) != -1) { mes "^FF0000[Cyclops]^000000"; mes "So my uncle refer you to me"; mes "Many called him insane, but the man is a genius"; mes "He inspired me to be great."; next; mes "^FF0000[Cyclops]^000000"; mes "But enough of those stories"; mes "You must of came here for"; mes "^FF0000Robo Eyes^000000."; mes"Then bring my these items"; next; menu "Requirements",L_Bl, "Make Item",-,"Cancel",L_Cancel; mes "^FF0000[Cyclops]^000000"; mes "Good good, let me just check"; next; if(countitem(7317)<30 || countitem(7352)<5 || countitem(7353)<5|| countitem(7354)<5|| countitem(7355)<5|| countitem(7095)<30|| countitem(7093)<10) goto L_NoMake; delitem 7317,30; delitem 7352,5; delitem 7353,5; delitem 7354,5; delitem 7355,5; delitem 7095,30; delitem 7093,10; mes "^FF0000[Cyclops]^000000"; mes "Give me a second....."; next; getitem 5325,1; erasequest 60511; mes "^FF0000[Cyclops]^000000"; mes "Ok done!"; close; L_NoMake: mes "^FF0000[Cyclops]^000000"; mes "You don't have the requirements."; mes "Please come back another time..."; close; L_Bl: mes "^FF0000[Cyclops]^000000"; mes "Ok all you have to do is collect:"; mes "^FF0000 30 Rusty Screw^000000"; mes "^FF0000 5 Blue Transparent Plate^000000"; mes "^FF0000 5 Red Transparent Plate^000000"; mes "^FF0000 5 Yellow Transparent Plate^000000"; mes "^FF0000 5 Green Transparent Plate^000000"; mes "^FF0000 30 Metal Fragment^000000"; mes "& ^FF0000 10 Cogwheel^000000"; close; L_Leave: mes "^FF0000[Ginger]^000000"; mes "Maybe another time?"; close; L_Cancel: mes "^FF0000[Cyclops]^000000"; mes "Aw, what a shame"; close; } else { mes "^FF0000[Cyclops]^000000"; mes "I have nothing to do with you."; mes "Please go away"; close; } } If you want to make like a hunting quest your gonna need to set it in your quest.db txt. 60511,0,0,0,0,0,0,0,"Robo Eyes Craft" 60512,0,0,0,0,0,0,0,"Finding Bolt" 60513,0,1630,1,0,0,0,0,"Hunting Kaguya" 60514,0,0,0,0,0,0,0,"Crafting Ramen hat" 60515,0,1088,1,0,0,0,0,"Hunting Vocal" the how to set it goes like this, " unique # for quest" , " time limit i believe" , " Monster ID", " # of monster need to be killed" , " idk", "idk"....... then you name your quest. I.E what players see as the quest is set to them. Commands your gonna need to know is setquest "unique #" & erasequest "unique #". Pretty much self explanatory. You can use my npc script as an example to set your If, Else, & checkquest. This part of the quest, Can be used as an template for you to make a npc where it check if players have X item or not. If they have the item, the npc than makes the item you set. mes "^FF0000[Cyclops]^000000"; mes "So my uncle refer you to me"; mes "Many called him insane, but the man is a genius"; mes "He inspired me to be great."; next; mes "^FF0000[Cyclops]^000000"; mes "But enough of those stories"; mes "You must of came here for"; mes "^FF0000Robo Eyes^000000."; mes"Then bring my these items"; next; menu "Requirements",L_Bl, "Make Item",-,"Cancel",L_Cancel; mes "^FF0000[Cyclops]^000000"; mes "Good good, let me just check"; next; if(countitem(7317)<30 || countitem(7352)<5 || countitem(7353)<5|| countitem(7354)<5|| countitem(7355)<5|| countitem(7095)<30|| countitem(7093)<10) goto L_NoMake; delitem 7317,30; delitem 7352,5; delitem 7353,5; delitem 7354,5; delitem 7355,5; delitem 7095,30; delitem 7093,10; mes "^FF0000[Cyclops]^000000"; mes "Give me a second....."; next; getitem 5325,1; erasequest 60511; mes "^FF0000[Cyclops]^000000"; mes "Ok done!"; close; L_NoMake: mes "^FF0000[Cyclops]^000000"; mes "You don't have the requirements."; mes "Please come back another time..."; close; L_Bl: mes "^FF0000[Cyclops]^000000"; mes "Ok all you have to do is collect:"; mes "^FF0000 30 Rusty Screw^000000"; mes "^FF0000 5 Blue Transparent Plate^000000"; mes "^FF0000 5 Red Transparent Plate^000000"; mes "^FF0000 5 Yellow Transparent Plate^000000"; mes "^FF0000 5 Green Transparent Plate^000000"; mes "^FF0000 30 Metal Fragment^000000"; mes "& ^FF0000 10 Cogwheel^000000"; close; L_Leave: mes "^FF0000[Ginger]^000000"; mes "Maybe another time?"; close; L_Cancel: mes "^FF0000[Cyclops]^000000"; mes "Aw, what a shame"; close; Quote Link to comment Share on other sites More sharing options...
Question
chryxt
Hello guys, i need some help to make script npc like this
1. Choose Quest Name
2. Description
3. Edit enable/disable Required Mob with kill count
4. Required Items
5. Limitations (repeatable/not, max level, char job)
6. Rewards (items,exp,zeny,points)
Example:
Quest Name :Costume Goblin Leader Mask
Description :Customize your Goblin Leader Mask!
Required Mob Kill Count : None
Required Items :1 Goblin Leader Mask
5 Goblin Leader Egg
3 Goblin Leader Card
2 iRO Token
Limitations : Can Do Only Once
Base Lv: 80-99
Rewards :1 Costume Goblin Leader Mask
========================================================================
Quest Name : Archer Wolf Killing Spree!
Description : Please tend to my cows! Desert Wolves have been eating them! Kill them all!
Required Mob Kill Count : 100 Desert Wolf
Required Items : None
Limitations : Archer
Rewards :1 Bag of nuts
===========================================================================
Quest Name : Contact Lens - Crimson
Description : Be unique! Accessorize with a Crimson contact lens!<3
Required Mob Kill Count : 100 Beholder Master
100 Soldier Skeleton
100 Isis
100 Anacondaq
100 Verit
Required Items : 1 Fang of Hatii
100 Sticky Mucus
100 Empty Bottle
2 Scarlet Dyestuffs
Limitations : Can Only Do Once
Base Level 99-150
Rewards : 1 Cash Point
1 Contacts Crimson
inspiration from intenseRO
Edited by chryxtThanks before
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.