[Release]Surgeon Miracle

12/26/2009 12:37 Sp!!ke#1
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 ....
12/26/2009 14:14 LookBehindYou#2
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
12/26/2009 14:20 _Emme_#3
You both fail. Why the heck are you doing a loop when you just going to cast it once?
12/26/2009 14:37 Speedie123#4
it wont work as usual theres no map
12/26/2009 14:58 Fleaman#5
Daniel, give me back your MSN, I need to talk to you.
12/26/2009 15:31 Fleaman#6
I gotta agree with Daniel on this one. Sorry Tweety. Emme was a dick 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
12/26/2009 16:15 Sp!!ke#7
ok..thanks for reply
12/26/2009 16:21 ImmuneOne#8
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.
12/26/2009 16:25 ~Yuki~#9
Stay on topic now -_-

loops are just useless shit in this code leave em!
12/26/2009 16:50 Arcо#10
Quote:
Originally Posted by .Rex View Post
I gotta agree with Daniel on this one. Sorry Tweety. Emme was a dick 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?
12/26/2009 19:00 -impulse-#11
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;
                                }
12/26/2009 19:02 Sp!!ke#12
good work alex nice rel :)
12/26/2009 19:19 Arcо#13
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?
12/26/2009 19:34 -impulse-#14
Quote:
Originally Posted by Hepatitis C View Post

impulse == alexbigfoot?
very true...how did u figure it out?
12/26/2009 19:40 Arcо#15
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.