I NEED CODE FOR LOVE STONE

12/08/2009 20:50 slavenacev#1
pls some one to make release for love stone !! i need fast
12/08/2009 21:02 sawickas#2
Wrong secion,yuo can trai code it,but yuo need make sponse date.
12/08/2009 21:37 airborne.#3
#Reported.
Wrong section.
12/08/2009 21:59 Die Schnittstelle#4
#moved
12/09/2009 18:43 Z3RX#5
What source?
12/09/2009 19:47 ~*NewDuuDe*~#6
5165 probably.
All you have to do is a normal NPC with the lovestone ID.
And make a function which checks if you are blessed, and if so, let them have double exp once a day(this can be done by doing a loop).
12/09/2009 23:20 Arcо#7
Here is my LoveStone code.
Works 100%
Code:
                            #region LoveStone
                            case 390:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello my friend! What I can do for you?"));
                                        GC.AddSend(Packets.NPCLink("I wanna get married.", 1));
                                        GC.AddSend(Packets.NPCLink("I want double exp time.", 2));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.AddSend(Packets.NPCSay("Are you sure?"));
                                        GC.AddSend(Packets.NPCLink("Yes!", 3));
                                        GC.AddSend(Packets.NPCLink("Let me think.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 3)
                                    {
                                        GC.AddSend(Packets.NPCSay("Okay then... Get the flower and click in your love to marry."));
                                        GC.AddSend(Packets.NPCLink("Okay", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 1067, 0, 0, 116));
                                    }
                                    else if (Control == 2)
                                    {
                                        if (GC.MyChar.BlessingLasts >= 1)
                                        {
                                            GC.AddSend(Packets.NPCSay("There you now have one hour's double exp time"));
                                            GC.AddSend(Packets.NPCLink("Thanks", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());

                                            GC.MyChar.DoubleExp = true;
                                            GC.MyChar.DoubleExpLeft = 3600;
                                            GC.MyChar.MyClient.AddSend(Packets.Status(GC.MyChar.EntityID, Status.DoubleExpTime, (ulong)GC.MyChar.DoubleExpLeft));
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You're not blessed by a PrayingStone."));
                                            GC.AddSend(Packets.NPCLink("Damn", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
12/11/2009 19:47 ~jochemke~#8
tested and didn't gave any errors
12/14/2009 16:04 oneblud#9
Quote:
Originally Posted by Tiku View Post
Here is my LoveStone code.
Works 100%
Code:
                            #region LoveStone
                            case 390:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello my friend! What I can do for you?"));
                                        GC.AddSend(Packets.NPCLink("I wanna get married.", 1));
                                        GC.AddSend(Packets.NPCLink("I want double exp time.", 2));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.AddSend(Packets.NPCSay("Are you sure?"));
                                        GC.AddSend(Packets.NPCLink("Yes!", 3));
                                        GC.AddSend(Packets.NPCLink("Let me think.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 3)
                                    {
                                        GC.AddSend(Packets.NPCSay("Okay then... Get the flower and click in your love to marry."));
                                        GC.AddSend(Packets.NPCLink("Okay", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 1067, 0, 0, 116));
                                    }
                                    else if (Control == 2)
                                    {
                                        if (GC.MyChar.BlessingLasts >= 1)
                                        {
                                            GC.AddSend(Packets.NPCSay("There you now have one hour's double exp time"));
                                            GC.AddSend(Packets.NPCLink("Thanks", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());

                                            GC.MyChar.DoubleExp = true;
                                            GC.MyChar.DoubleExpLeft = 3600;
                                            GC.MyChar.MyClient.AddSend(Packets.Status(GC.MyChar.EntityID, Status.DoubleExpTime, (ulong)GC.MyChar.DoubleExpLeft));
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You're not blessed by a PrayingStone."));
                                            GC.AddSend(Packets.NPCLink("Damn", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
ive pasted this into my compiler and compiled it, I also had to make the lovestone npc and put it into the correct position..so why isnt it talking to me? "Hi, I dont do anything yet my ID is 1600"
what else do i have to do?
12/14/2009 18:10 ImmuneOne#10
Quote:
Originally Posted by oneblud View Post
ive pasted this into my compiler and compiled it, I also had to make the lovestone npc and put it into the correct position..so why isnt it talking to me? "Hi, I dont do anything yet my ID is 1600"
what else do i have to do?
Obvious, change the npc id from 390 to 1600?
So it would be case 1600: instead of case 390:
Jesus, e*pvpers these days.
01/24/2010 23:48 comp_new2006#11
can you give me all code that i inserted in NPCs.txt for this my NPCs no have case 390 or give me the file
thnx
01/25/2010 05:47 Arcо#12
Quote:
Originally Posted by comp_new2006 View Post
can you give me all code that i inserted in NPCs.txt for this my NPCs no have case 390 or give me the file
thnx
Go into NPC.txt and make a npc with the id 390.
01/26/2010 22:21 renetjuuh#13
npcs is

390 1600 2 6 1036 192 193
01/26/2010 22:23 Arcо#14
Quote:
Originally Posted by renetjuuh View Post
npcs is

390 1600 2 6 1036 192 193
Then go to those coordinates and it should work.
01/30/2010 21:40 renetjuuh#15
taht not the only thing because now you neet to code for making your maried