[Release] Custom Quest

02/20/2010 14:19 Decker_#1
Hello.
This is a cool little quest I made.
Credits go to me and -Shunsui-.
I hope you like it!

Add these codes to NPCDialog.cs:
Code:
                            #region Ghost
                            case 67435:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("BOO!  Did I scare you?  I'm joking.  I am the ghost.  I got killed 2 years ago from someone.  Please take this apology letter to my killer, he will give you a prize if you make it safely there.?"));
                                        GC.AddSend(Packets.NPCLink("Ok", 1));
                                        GC.AddSend(Packets.NPCLink("Not Now", 4));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    { 
                                        {
                                            GC.MyChar.AddItem(710854, 0); //Letter
                                            GC.AddSend(Packets.NPCSay("Please find my killer!"));
                                            GC.AddSend(Packets.NPCLink("I will", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                }
                                break;
                                        #endregion
Code:
#region Killer
                            case 67436:
                                {
                                    if (Control == 0)
                                    {

                                        if (GC.MyChar.InventoryContains(710854, 1))
                                        {
                                            GC.AddSend(Packets.NPCSay("Hello.  A letter huh.  Well, I accidently killed ghost a while back.  Tell him his apology is accepted."));
                                            GC.AddSend(Packets.NPCLink("Sure Thing", 1));
                                            GC.AddSend(Packets.NPCLink("No", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have the required item"));
                                            GC.AddSend(Packets.NPCLink("Sorry", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.MyChar.CPs += 10000000;
                                        GC.AddSend(Packets.NPCSay("Here is your reward.!"));
                                        GC.AddSend(Packets.NPCLink("Thank you", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion
Add these at the bottom of OldCODB>NPCs.txt:
Code:
67435 6120 2 0 1100 134 103
67436 380 2 0 1015 705 580
Press thanks to me and -Shunsui- when you see him around!
Good bye.
02/20/2010 15:41 StarEvaAfta!~#2
Good job, but prize is 100kk cps , HOLY CRAP !
02/20/2010 15:43 Decker_#3
It is 10kk cps
02/20/2010 18:52 Arcо#4
Great, your learning how to use an npc.
02/20/2010 19:04 Decker_#5
Thanks guys!
02/20/2010 19:48 ~Yuki~#6
good work finally your posts start containing useful stuff
04/01/2010 04:46 Illiest#7
'GC.MyChar.CPs += 10000000'

it's 10,000,000 CPs
04/01/2010 06:34 -NewDawn-#8
Lol, I remember this. I remember looking at it and thinking "... wow ..." because the prize and how weird the quest was. "I'm a ghost- send this letter saying i'm sorry to my killer."
First, wtf. lol- why would I ghost be sorry that he died? and ghosts can write letters? o.O
Second, he says "And he will give you a prize if it is taken to him successfully." W.T.F. rofl. So now the killer and you can talk to the dead and the ghost is psychic?

Then on top of that "Well, I accidentally killed ghost a while back. Tell him his apology is accepted." << w...t...f... i'm so lost. Shouldn't the killer be saying sorry?

Yah. lol, I remember this quest =P
Funny stuff.
04/01/2010 11:46 Paralyzer[GM]#9
huh......Very nice quest...I am not going to use this as it is abit basic ( sorry ) nice to see people learning! here are some ideas you can do

See an NPC and the NPC will teleport you to a special map ( your choice ) and you kill the monster to obtain the letter and then you go back to an NPC but it turns out you need 5 letters so he teleports you to a diffrent special map ( your choice ) and there are 5 monsters, but they are all so easy to kill eccept 1 of them that one has 500k HP and you need a few trogans and ninjas to help you kill it, you then see the NPC again and you change the 5 letters for a Special item ( your choice, should be a item not in use so like a Cookie or something ) and then goto Killer and get your reward ?
Get me ??

Thanks, just an idea :D
04/14/2010 04:50 superplox#10
hey good job mate nice for learning :)
09/11/2010 10:53 ZeRo-ToLeRaNcE#11
Hello all,

this is an very nice little Quest :P
but i have edit a little bit, because if you get the price the letter is still
in your Inventory, so with this code it will remove the Letter, and i have set my price on 2500 CP's :P

Code:
#region Killer
    case 67436:
    {
        if (Control == 0)
        {

            if (GC.MyChar.InventoryContains(710854, 1))
            {
                GC.AddSend(Packets.NPCSay("Hello.  A letter huh.  Well, I accidently killed ghost a while back.  Tell him his apology is accepted."));
                GC.AddSend(Packets.NPCLink("Sure Thing", 1));
                GC.AddSend(Packets.NPCLink("No", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
            else
            {
                GC.AddSend(Packets.NPCSay("You don't have the required item"));
                GC.AddSend(Packets.NPCLink("Sorry", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
            }
        }
        else if (Control == 1)
        {
            GC.MyChar.CPs += 2500;
            GC.MyChar.RemoveItem(GC.MyChar.NextItem(710854));
            GC.AddSend(Packets.NPCSay("Here is your reward 2500 CPs!"));
            GC.AddSend(Packets.NPCLink("Thank you", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
        break;
    }
    #endregion
Best Regards,

ZeRo
09/11/2010 12:44 Basser#12
You could've made a different story.
The ghost wants revenge, so you have to kill some monsters to get a 'CursedLetter' and than give this letter to the killer to curse him or something, just do something that makes a little bit of sense at least.