Register for your free account! | Forgot your password?

You last visited: Today at 03:20

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

Advertisement



[Release]Surgeon Miracle

Discussion on [Release]Surgeon Miracle within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
[Release]Surgeon Miracle

Quote:
#region Size Change
case 3381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hey Guy , I'm Size Changer NPC ! You give me 1 db And I can change you size ! "));
GC.AddSend(Packets.NPCLink("Yea..Sounds Like", 9));
GC.AddSend(Packets.NPCLink("Good Day..", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 9)
{

if (GC.MyChar.InventoryContains(1088000, 1))
{
for (byte i = 0; i < 1; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
{
if (GC.MyChar.Body == 1004)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 1003)
GC.MyChar.Body += 1;
if (GC.MyChar.Body == 2002)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 2001)
GC.MyChar.Body += 1;

}
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, you do not have a DragonBall."));
GC.AddSend(Packets.NPCLink("OK, I gotta buy one now >_>.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion

Good Luck Guys ....
Sp!!ke is offline  
Thanks
1 User
Old 12/26/2009, 14:14   #2
 
elite*gold: 20
Join Date: Aug 2009
Posts: 254
Received Thanks: 28
Here is the same code but more english, understandable

Code:
#region Size Change
case 3381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello There, I Can Change You're Body Size, I Charge 1 DragonBall, Would You Like To Change? "));
GC.AddSend(Packets.NPCLink("Yes Please", 9));
GC.AddSend(Packets.NPCLink("No Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 9)
{

if (GC.MyChar.InventoryContains(1088000, 1))
{
for (byte i = 0; i < 1; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
{
if (GC.MyChar.Body == 1004)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 1003)
GC.MyChar.Body += 1;
if (GC.MyChar.Body == 2002)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 2001)
GC.MyChar.Body += 1;

}
}
else
{
GC.AddSend(Packets.NPCSay("Sorry, You Don't Have A DragonBall"));
GC.AddSend(Packets.NPCLink("Ok, Sorry About That.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
LookBehindYou is offline  
Thanks
2 Users
Old 12/26/2009, 14:20   #3
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
You both fail. Why the heck are you doing a loop when you just going to cast it once?
_Emme_ is offline  
Thanks
3 Users
Old 12/26/2009, 14:37   #4
 
Speedie123's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 16
it wont work as usual theres no map
Speedie123 is offline  
Old 12/26/2009, 14:58   #5
 
elite*gold: 188
Join Date: Dec 2009
Posts: 79
Received Thanks: 36
Daniel, give me back your MSN, I need to talk to you.
Fleaman is offline  
Old 12/26/2009, 15:31   #6
 
elite*gold: 188
Join Date: Dec 2009
Posts: 79
Received Thanks: 36
I gotta agree with Daniel on this one. Sorry Tweety. Emme was a **** to me on MSN.

#edit

Here is my version:
Code:
#region Size Change
case 3381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello.  I Can Change Your Body Size For 1 Dragonball.  Would You Like To Change? "));
GC.AddSend(Packets.NPCLink("Yes", 9));
GC.AddSend(Packets.NPCLink("No", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 9)
{

if (GC.MyChar.InventoryContains(1088000, 1))
{
for (byte i = 0; i < 1; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
{
if (GC.MyChar.Body == 1004)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 1003)
GC.MyChar.Body += 1;
if (GC.MyChar.Body == 2002)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 2001)
GC.MyChar.Body += 1;

}
}
else
{
GC.AddSend(Packets.NPCSay("You Don't Have A Dragonball."));
GC.AddSend(Packets.NPCLink("Maybe Next Time", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
Fleaman is offline  
Old 12/26/2009, 16:15   #7
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
ok..thanks for reply
Sp!!ke is offline  
Old 12/26/2009, 16:21   #8
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Seriously,

Why all the fuss about what happened long time ago, people can change.

1- Why the hell are you guys using control 9 .. ?
2- Emme is right.

There is no need to flame eachother all over again, who will continue will be infractioned and reported and maby even worse banned.
ImmuneOne is offline  
Old 12/26/2009, 16:25   #9
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Stay on topic now -_-

loops are just useless **** in this code leave em!
~Yuki~ is offline  
Old 12/26/2009, 16:50   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by .Rex View Post
I gotta agree with Daniel on this one. Sorry Tweety. Emme was a **** to me on MSN.

#edit

Here is my version:
Code:
#region Size Change
case 3381:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello.  I Can Change Your Body Size For 1 Dragonball.  Would You Like To Change? "));
GC.AddSend(Packets.NPCLink("Yes", 9));
GC.AddSend(Packets.NPCLink("No", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 9)
{

if (GC.MyChar.InventoryContains(1088000, 1))
{
for (byte i = 0; i < 1; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
{
if (GC.MyChar.Body == 1004)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 1003)
GC.MyChar.Body += 1;
if (GC.MyChar.Body == 2002)
GC.MyChar.Body -= 1;
else if (GC.MyChar.Body == 2001)
GC.MyChar.Body += 1;

}
}
else
{
GC.AddSend(Packets.NPCSay("You Don't Have A Dragonball."));
GC.AddSend(Packets.NPCLink("Maybe Next Time", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion

What so different from yours than the other ones?
Arcо is offline  
Old 12/26/2009, 19:00   #11
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Code:
case 3381:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello. I know how to change the body size, from small to big and from big to small. If you want a change, I'll need an DragonBall. Do you want to continue?"));
                                        GC.AddSend(Packets.NPCLink("Yes", 1));
                                        GC.AddSend(Packets.NPCLink("No, get lost.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(1088000, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
                                            switch (GC.MyChar.Body)
                                            {
                                                case 1004: GC.MyChar.Body = 1003; break;
                                                case 1003: GC.MyChar.Body = 1004; break;
                                                case 2002: GC.MyChar.Body = 2001; break;
                                                case 2001: GC.MyChar.Body = 2002; break;
                                            }
                                            GC.AddSend(Packets.NPCSay("This is an miracle, isn't it?"));
                                            GC.AddSend(Packets.NPCLink("Indeed.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Are you trying to fool me? Come back when you have a DragonBall in your inventory."));
                                            GC.AddSend(Packets.NPCLink("Ah...sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
-impulse- is offline  
Thanks
1 User
Old 12/26/2009, 19:02   #12
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
good work alex nice rel
Sp!!ke is offline  
Old 12/26/2009, 19:19   #13
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -impulse- View Post
Code:
case 3381:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello. I know how to change the body size, from small to big and from big to small. If you want a change, I'll need an DragonBall. Do you want to continue?"));
                                        GC.AddSend(Packets.NPCLink("Yes", 1));
                                        GC.AddSend(Packets.NPCLink("No, get lost.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(1088000, 1))
                                        {
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
                                            switch (GC.MyChar.Body)
                                            {
                                                case 1004: GC.MyChar.Body = 1003; break;
                                                case 1003: GC.MyChar.Body = 1004; break;
                                                case 2002: GC.MyChar.Body = 2001; break;
                                                case 2001: GC.MyChar.Body = 2002; break;
                                            }
                                            GC.AddSend(Packets.NPCSay("This is an miracle, isn't it?"));
                                            GC.AddSend(Packets.NPCLink("Indeed.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Are you trying to fool me? Come back when you have a DragonBall in your inventory."));
                                            GC.AddSend(Packets.NPCLink("Ah...sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }

impulse == alexbigfoot?
Arcо is offline  
Old 12/26/2009, 19:34   #14
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by Hepatitis C View Post

impulse == alexbigfoot?
very true...how did u figure it out?
-impulse- is offline  
Old 12/26/2009, 19:40   #15
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -impulse- View Post
very true...how did u figure it out?

Lol are you being sarcastic?
If not, then because tweety called you alex and then I see you're a pro coder.
So I put 2 and 2 together.
Arcо is offline  
Reply


Similar Threads Similar Threads
[Release] MU_1.05H miracle of a single button to install package
08/23/2009 - General Gaming Discussion - 0 Replies
Miracle Mu_1.05h server version of a key installation that you have previously installed other versions of the miracle of server NOTE: Make sure the original server directory D: \ MUserver delete or rename, but also to use the downloaded client 1.A preliminary test are no major BUG 2.The perfect support for refining Mirage 3.Adding new equipment and new tasks four new maps 4.To support the master skills 5.Props new activity to add a new game Treasure Bay 6.To support the call of...



All times are GMT +2. The time now is 03:20.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.