|
You last visited: Today at 03:20
Advertisement
[Release]Surgeon Miracle
Discussion on [Release]Surgeon Miracle within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
12/26/2009, 12:37
|
#1
|
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 ....
|
|
|
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
|
|
|
12/26/2009, 14:20
|
#3
|
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?
|
|
|
12/26/2009, 14:37
|
#4
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 16
|
it wont work as usual theres no map
|
|
|
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.
|
|
|
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
|
|
|
12/26/2009, 16:15
|
#7
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
ok..thanks for reply
|
|
|
12/26/2009, 16:21
|
#8
|
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.
|
|
|
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!
|
|
|
12/26/2009, 16:50
|
#10
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by .Rex
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?
|
|
|
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;
}
|
|
|
12/26/2009, 19:02
|
#12
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
good work alex nice rel
|
|
|
12/26/2009, 19:19
|
#13
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -impulse-
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
|
#14
|
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
|
Quote:
Originally Posted by Hepatitis C
impulse == alexbigfoot?
|
very true...how did u figure it out?
|
|
|
12/26/2009, 19:40
|
#15
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -impulse-
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.
|
|
|
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.
|
|