Register for your free account! | Forgot your password?

You last visited: Today at 21:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



simple fortune teller

Discussion on simple fortune teller within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
gulpi_de_gulat's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
simple fortune teller

this only very simple moonbox cuz i cant code the original moonbox quest, so i decide to a simple one,
Code:
#region fortune teller
                            case 302:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("did you hear of palace method?"));
                                        GC.AddSend(Packets.NPCLink("palace method?", 1));                                       
                                        GC.AddSend(Packets.NPCLink("just passing by", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        GC.AddSend(Packets.NPCSay("Are you interested? i would like to tell you more and hope you can work it out"));
                                        GC.AddSend(Packets.NPCLink("yeah, please go ahead", 2));
                                        GC.AddSend(Packets.NPCLink("sorry, im not interested", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                      
                                    }
                                    if (Control == 2)
                                    {
                                        GC.AddSend(Packets.NPCSay("I descover a mystic tactic a few days ago ,i tried to work it ou but im failed"));
                                        GC.AddSend(Packets.NPCSay(" and almost die from it"));
                                        GC.AddSend(Packets.NPCLink("id like to ha a try", 3));
                                        GC.AddSend(Packets.NPCLink("Too dangerous", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (Control == 3)
                                    {
                                        GC.AddSend(Packets.NPCSay("its very dangerous.are you sure you will try? if yes i will telepot you there"));
                                        GC.AddSend(Packets.NPCSay("Talk to magie to enter the Tactics."));
                                        GC.AddSend(Packets.NPCLink("yeah", 4));
                                        GC.AddSend(Packets.NPCLink("I change my ime", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());


                                    }
                                    if (Control == 4)
                                    {

                                        GC.MyChar.Teleport(1042, 028, 033);

                                 
                                    }
                                break;
                              }
                        #endregion
                            #region maggie the ghost
                            case 303:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("what are here for?Please do not go ahead, or you will enter the very dangerous tactics."));
                                        GC.AddSend(Packets.NPCLink("such tactic exist?", 1));
                                        GC.AddSend(Packets.NPCLink("I decide to try", 4));
                                        GC.AddSend(Packets.NPCLink("I had better leave here", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        GC.AddSend(Packets.NPCSay("The tactic is so changeful, I once thought highly of my self "));
                                        GC.AddSend(Packets.NPCSay("and died from the damned tactics."));
                                        GC.AddSend(Packets.NPCLink("how can break through?", 2));
                                        GC.AddSend(Packets.NPCLink("I do not beleave", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (Control == 2)
                                    {
                                        GC.AddSend(Packets.NPCSay("I have studied it for so may years, but fail to work it out. it si similar to the said"));
                                        GC.AddSend(Packets.NPCSay(" eight diaram tactics, do you want to try"));
                                        GC.AddSend(Packets.NPCLink("yeah i like the challenge", 3));
                                        GC.AddSend(Packets.NPCLink("i change my mine", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());


                                 
                                     }
                                    if (Control == 3)
                                     {
                                            GC.AddSend(Packets.NPCSay(" once you entered the tactics, its very defficult to leave. please think it over."));
                                            GC.AddSend(Packets.NPCSay(" I do not want you to die from there"));
                                            GC.AddSend(Packets.NPCLink("i made up my mine", 5));
                                            GC.AddSend(Packets.NPCLink("no.i change my mine", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        if (Control == 4)
                                        {
                                            GC.AddSend(Packets.NPCSay(" since you like the challenge i shall teleport you there.be careful and remember."));
                                            GC.AddSend(Packets.NPCSay(" to pic up the token drop by the monster"));
                                            GC.AddSend(Packets.NPCLink("ok", 5));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());

                                        }
                                        if (Control == 5)
                                        {
                                            {
                                                GC.MyChar.Teleport(1043, 210, 164);

                                        }

                                    }
                                    break;

                                }
                            #endregion
                            #region  ghost
                            case 313:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay(" I teleport you vagrant ghost if you have the 6 BlackToken"));
                                        GC.AddSend(Packets.NPCLink("yes i have", 1));
                                        GC.AddSend(Packets.NPCLink("not yet", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {

                                        if (GC.MyChar.InventoryContains(710564, 6))
                                        {
                                            GC.MyChar.Teleport(1050, 210, 164);
                                            
                                        

                                        }
                                        else
                                        {
                                        GC.AddSend(Packets.NPCSay("You don't have the token."));
                                        GC.AddSend(Packets.NPCLink("I see.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        
                                        }
                                    }
                                    break;
                        
                                }
                            #endregion
                            #region  vagrantghost
                            case 314:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("if you have 6 BlackToken i give you 1 moonbox"));
                                        GC.AddSend(Packets.NPCLink("yes i have", 1));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {

                                        if (GC.MyChar.InventoryContains(710564, 6))
                                        {
                                           
                                            for (byte i = 0; i < 6; i++)
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(710564));
                                            GC.MyChar.AddItem(721080);
                                            GC.MyChar.Teleport(1042, 028, 033);
                                           


                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have the token."));
                                            GC.AddSend(Packets.NPCLink("sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());

                                        }
                                    }
                                    break;

                                }
                            #endregion
                            #region  vagrantghost
                            case 315:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("if you have 6 BlackToken i give you 1 moonbox"));
                                        GC.AddSend(Packets.NPCLink("yes i have", 1));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {

                                        if (GC.MyChar.InventoryContains(710564, 6))
                                        {

                                            for (byte i = 0; i < 6; i++)
                                                GC.MyChar.RemoveItem(GC.MyChar.NextItem(710564));
                                            GC.MyChar.AddItem(721080);
                                            GC.MyChar.Teleport(1042, 028, 033);



                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have the token."));
                                            GC.AddSend(Packets.NPCLink("sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());

                                        }
                                    }
                                    break;

                                }
                            #endregion
                            #region  vagrantghost
                            case 316:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("if you have 6 BlackToken i give you 1 moonbox"));
                                        GC.AddSend(Packets.NPCLink("yes i have", 1));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {

                                        if (GC.MyChar.InventoryContains(710564, 6))
                                        {

                                            for (byte i = 0; i < 6; i++)
                                                GC.MyChar.RemoveItem(GC.MyChar.NextItem(710564));
                                            GC.MyChar.AddItem(721080);
                                            GC.MyChar.Teleport(1042, 028, 033);



                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You don't have the token."));
                                            GC.AddSend(Packets.NPCLink("sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());

                                        }
                                    }
                                    break;

                                }
                            #endregion
put this to NPc txt

Code:

301 6530 2 53 1351 478 377
302 6200 2 54 1002 337 721
303 6100 2 52 1042 019 019
304 6110 2 51 1043 203 149
305 6110 2 51 1044 203 149
306 6110 2 51 1045 203 149
307 6110 2 51 1046 203 149
308 6110 2 51 1047 203 149
309 6110 2 51 1048 203 149
310 6110 2 51 1049 203 149
311 1540 2 15 1002 430 243
312 1540 2 13 1002 436 243
313 6120 2 13 1043 006 067
314 6130 2 15 1050 125 114
315 6130 2 15 1050 138 102
316 6130 2 15 1050 176 139

now open drop cs, under SuperGem = 10,put this
Code:

BlackToken = 2,

and under PointCard = iNi.ReadDouble("Rates", "PointCard"); put this
Code:

BlackToken = iNi.ReadDouble("Rates", "BlackToken");

now go to Mob.cs under this
Code:

}
else if (MyMath.ChanceSuccess(DropRates.CPBag))
{
if (Char != null)
if (Char.VipLevel >= 3)
{
if (Char.Inventory.Count <= 39)
{
Char.AddItem(729911);
return;
}
}
DI2.Info.ID = 729911;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;

put this code
Code:

}
else if (MyMath.ChanceSuccess(DropRates.BlackToken))
{
if (Char != null)
{
if (Char.Inventory.Count <= 39)
{
Char.AddItem(710564);
return;
}
}
DI2.Info.ID = 710564;
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;

now go to OLDCODB droprates ini put this
Code:

BlackToken=50.5

open mobspwan add
100 50 1043 050 101 117 070

and mobsinfos add
100 toughGhost 1 200 82 11673 0 0 0 624 691 1 87 2 True 2 55 550 1000 12 True

my only problem here is all monster drop this token if any one knows how this token exclusively drop by specified monster, thxz i hope you like this.
its me yhudong
gulpi_de_gulat is offline  
Old 03/06/2010, 12:07   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
That looks very well done!

+Thanks!
Paralyzer[GM] is offline  
Reply


Similar Threads Similar Threads
[RSRO] Wheel of Fortune!
10/12/2010 - Silkroad Online - 36 Replies
P.S Google translate. Wheel of fortune I don't know what is the chance of winning.. Planning to spend there 100 silks. :) Happy gaming :)
[Help]Bank Teller
08/22/2010 - Shaiya Private Server - 2 Replies
Hey guys and Gals I know the stored Proc to send items to the Bank teller and it works great again thumbs up for the people who answered me. My problem is that when the person takes the item out it Dced them shortly after and the item is back the bank. This causes me problems as you can imagine. I have been messing around with it trying to figure out why it is doing that and can't find anything.. If anyone has any help in this matter that would be amazing:handsdown: Thank you!
WTS/WTT Neck Of Fortune
05/31/2009 - Archlord Trading - 5 Replies
WTSELL Neck Of Fortune {JudgementWi.LvL3} 25€ #Edit or WTTrade it for Flying Ring + offer send me /pm
[WTS] Pizza auf blauem Teller!
03/18/2008 - Off Topic - 1 Replies
Pizza liegt auf einem blauen Teller und ist Aufwärmbereit! 200Thanks'es VHB! http://imgnow.de/uploads/DSC000028fcJPG.jpg
Fortune manual
02/21/2008 - Archlord - 12 Replies
I've never tried this bug, but does it still work? =S thank you.



All times are GMT +1. The time now is 21:29.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.