[ReRelease]Scissor,Rock & Paper Game

04/27/2010 12:39 ©Hyperlink#1
Okay im back to E.pvp.
Well, i will repost my old npc for lotf 5017.
Wich also include it for the:

There is 33,33% Chance to win.

NPC Talk:
Code:
if (CurrentNPC == 28944) //Fortuneteller
                            {
                                SendPacket(General.MyPackets.NPCSay("Hey there, Want to make a little gambling?"));
                                SendPacket(General.MyPackets.NPCLink("What kind of gambling?", 1));
                                SendPacket(General.MyPackets.NPCLink("No sorry, im not gonna gamble", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
NPC Control:
Code:
 if (CurrentNPC == 28944) //Fortuneteller
                              {        
                                if (Control == 1)
                                {
                                    SendPacket(General.MyPackets.NPCSay("You give me 10000CP's and we make scissor,rock and paper, if you win i give you double back,if you loose I keep your cps"));
                                    SendPacket(General.MyPackets.NPCLink("Thats a good deal, lets go.", 2));
                                    SendPacket(General.MyPackets.NPCLink("Sorry i don't want to.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 2)
                                {
                                    if (MyChar.CPs >= 10000)
                                    {
                                    SendPacket(General.MyPackets.NPCSay("I see you have enough CP's, are you stills sure."));
                                    SendPacket(General.MyPackets.NPCLink("Yeah im sure, lets go.", 3));
                                    SendPacket(General.MyPackets.NPCLink("I have changed my mind.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                              }
                                if (Control == 3)
                                    {
                                        MyChar.CPs -= 10000;
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                        Random FT = new Random();
                                        int Nr = FT.Next(1, 9);
                                        if (Nr == 1) //Scissor vs scissor
                                        {
                                        MyChar.CPs += 10000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Scissor, Fortuneteller also got Scissor. No one wins.", 2000));
                                        }
                                        if (Nr == 2) //Scissor vs rock
                                        {
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Scissor, Fortuneteller got Rock. Fortuneteller wins.", 2000));
                                        }
                                        if (Nr == 3) //Scissor vs paper
                                        {
                                        MyChar.CPs += 20000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Scissor, Fortuneteller got Paper. You win.", 2000));
                                        }
                                        if (Nr == 4) //Rock vs scissor
                                        {
                                        MyChar.CPs += 20000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Rock, Fortuneteller got Scissor. You win.", 2000));
                                        }
                                        if (Nr == 5) //Rock vs rock
                                        {
                                        MyChar.CPs += 10000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Rock, Fortuneteller also got Rock. No one wins.", 2000));
                                        }
                                        if (Nr == 6) //Rock vs paper
                                        {
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Rock, Fortuneteller got Paper. Fortuneteller wins.", 2000));
                                        }
                                        if (Nr == 7) //Paper vs scissor
                                        {
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Paper, Fortuneteller got Scissor. Fortuneteller wins.", 2000));
                                        }
                                        if (Nr == 8) //Paper vs rock
                                        {
                                        MyChar.CPs += 20000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Paper, Fortuneteller got Rock. You win.", 2000));
                                        }
                                        if (Nr == 9) //Paper vs paper
                                        {
                                        MyChar.CPs += 10000;
                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You got Paper, Fortuneteller also got Paper. No one wins.", 2000));
                                        }
                                }
                            }
The original thread is so long away, but here is the rerelease.
I won't release much for 5017 more, since im not working at any sources or servers. Just trying to help out peoples.
Thanks :)
Hope is still useful for those that still use 5017.
05/05/2010 12:33 pintser#2
uhhm lol...
did u get it from me, to re-release it "^^"
05/05/2010 23:07 herekorvac#3
It is kind of sad you still do your npcs THIS way for LOTF 5017...Even though you SAY you are a C# coder and a C++ coder...
05/06/2010 00:07 TheGuyWithTheCodes#4
this npc is like a half year old.
and pintser, he was the first that made it.
[Only registered and activated users can see links. Click Here To Register...]
05/06/2010 17:44 pintser#5
Quote:
Originally Posted by TheGuyWithTheCodes View Post
this npc is like a half year old.
and pintser, he was the first that made it.
[Only registered and activated users can see links. Click Here To Register...]
lol, dont mea that...
he started a thread named:
fortuneTeller..
Request:

some 1 has the Gamble npc etc etc...
Then i prelied hinm with my gamble npc..
and now, he re-release xd...
(i dont mind, was just joking ;))
05/11/2010 07:18 Huseby#6
Dont rerelease stuffs,

#Closed