|
You last visited: Today at 22:45
Advertisement
Thrilling Spook Action !!
Discussion on Thrilling Spook Action !! within the CO2 Private Server forum part of the Conquer Online 2 category.
10/17/2011, 23:26
|
#16
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Quote:
Originally Posted by { Angelius }
nope it's not a skill or an effect type. its packet 1101 and it has more than 30 mixed type of effects . i dont remember its like 5 types of ground shakes mixed with screen darkness with different looping times depending on the Sub type you send/screen shifting.
|
Sorry if I have this backwards but 1101 is ground item/effect packet correct? If so then you're sending effect id's to certain screen locations correct?
I could have sworn certain skills did at least some of what he's talking about... I'm prob wrong though.
Best bet would be to just packet log it from real conquer :P
|
|
|
10/17/2011, 23:56
|
#17
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by pro4never
Sorry if I have this backwards but 1101 is ground item/effect packet correct? If so then you're sending effect id's to certain screen locations correct?
I could have sworn certain skills did at least some of what he's talking about... I'm prob wrong though.
Best bet would be to just packet log it from real conquer :P
|
DontSpeakeToMe sent me how to fix summon more than one monster , now can you help me with how to make monster if died chance to drop items ?
i tried with it , so here is my codes.
PHP Code:
if (this.Name == "ThrillingSpook")
{
if (killer.QQ1 == 0)
{
Random R = new Random();
int Nr = R.Next(1, 5);
if (Nr == 1) killer.Owner.Inventory.Add(800613, 0, 1);
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " + killer.Name + "Has Killed " + Owner.Name + " And Won Soul 1 Item!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
if (Nr == 2) killer.Owner.Inventory.Add(800415, 0, 1);
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " + killer.Name + "Has Killed " + Owner.Name + " And Won Soul 2 Item!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
if (Nr == 3) killer.Owner.Inventory.Add(800420, 0, 1);
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " + killer.Name + "Has Killed " + Owner.Name + " And Won Soul 3 Item!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
if (Nr == 4) killer.Owner.Inventory.Add(800513, 0, 1);
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " + killer.Name + "Has Killed " + Owner.Name + " And Won Soul 4 Item!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
if (Nr == 5) killer.Owner.Inventory.Add(800017, 0, 1);
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " + killer.Name + "Has Killed " + Owner.Name + " And Won Soul 5 Item!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
killer.QQ1 += 1;
}
else
{
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" you can only claim one a day, even if you kill more than one", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
}
but its always select
PHP Code:
if (Nr == 5) killer.Owner.Inventory.Add(800017, 0, 1);
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " + killer.Name + "Has Killed " + Owner.Name + " And Won Soul 5 Item!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
|
|
|
10/18/2011, 01:11
|
#18
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
the way you have that code written will print ALL of the text lines...
Are you sure it's actually passing the Nr == 5 check? Because you're using a string of if statements, it will check them all regardless of what Nr is.
Does it actually DO the killer.Owner.Inventory.Add(800017, 0, 1); line or does it just breakpoint at if (Nr == 5) ?
Honestly you just need to take some time and learn some basic programming...
Your entire problem here is just you not being familiar with BASIC programming knowledge and how C# works.
|
|
|
10/18/2011, 01:16
|
#19
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by pro4never
the way you have that code written will print ALL of the text lines...
Are you sure it's actually passing the Nr == 5 check? Because you're using a string of if statements, it will check them all regardless of what Nr is.
Does it actually DO the killer.Owner.Inventory.Add(800017, 0, 1); line or does it just breakpoint at if (Nr == 5) ?
Honestly you just need to take some time and learn some basic programming...
Your entire problem here is just you not being familiar with BASIC programming knowledge and how C# works.
|
i have coded it for 5 chances , and i made the message for each item with number , like :
someone has killed Abdeen, and won soul item 1
someone has killed Abdeen, and won soul item 2
someone has killed Abdeen, and won soul item 3
like that , and its always showing me the 5th message , but not always rewarding me the item .
|
|
|
10/18/2011, 05:29
|
#20
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Because those are not even part of your check... That's why i'm saying to take a few days>weeks learning BASIC C# syntax.
What you are writing is saying...
if I rolled a 1 give me one item with ID: 800613
Tell the server that they won one soul item
if I rolled a two give me an item with ID:X
tell the server they won two soul items.
They aren't connected statements.
You use { } to show things that belong together. If statements include ONE statement
if X is true then Y happens.
As you have it, Y is just the AddItem statement and does not include the send to server messages... use brackets to combine them into a multi part statement.
I think that's about the simplest way I can describe it.
|
|
|
10/18/2011, 08:44
|
#21
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
Quote:
Originally Posted by pro4never
Sorry if I have this backwards but 1101 is ground item/effect packet correct? If so then you're sending effect id's to certain screen locations correct?
|
exactly. but.....there is another use for it
you dont need any effect id's to show the effect.
data 4 = 1 - to whatever number of effects it has
data 12 = X
data 14 = Y
data 18 = 13
|
|
|
10/19/2011, 23:36
|
#22
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by { Angelius }
exactly. but.....there is another use for it
you dont need any effect id's to show the effect.
data 4 = 1 - to whatever number of effects it has
data 12 = X
data 14 = Y
data 18 = 13
|
can you post the code of it here please ?
|
|
|
09/17/2013, 00:09
|
#23
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
You mean that?
0 = 20
2 = 0x44D
4 = UID
8 = 1
12 = X
14 = Y
16 = 13
Have fun.
|
|
|
09/17/2013, 00:23
|
#24
|
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
|
Quote:
Originally Posted by Y u k i
You mean that?
0 = 20
2 = 0x44D
4 = UID
8 = 1
12 = X
14 = Y
16 = 13
Have fun.
|
Haha, you post the important thing! 
I think he can do it easily now!
|
|
|
09/17/2013, 00:30
|
#25
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
Well the thread is 2 years old, I kinda doubt they are still working on this issue.
|
|
|
09/17/2013, 00:34
|
#26
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by GameHacker-PM-
Haha, you post the important thing! 
I think he can do it easily now!
|
Betta be o___o xD
Quote:
Originally Posted by Aceking
Well the thread is 2 years old, I kinda doubt they are still working on this issue.
|
Im somewhat sure that he still needs that
|
|
|
09/17/2013, 01:02
|
#27
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
check ProjectX Source MapSkill or Map Effect
or just use this
PHP Code:
case "3": { Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true); // floorItem.Shake = true; // floorItem.Darkness = true; // floorItem.Zoom = true; // floorItem.AppendFlags(); floorItem.UID = uint.Parse(Data[2]); floorItem.Type = 0xd; client.Send(floorItem);
} break;
PHP Code:
public void AppendFlags() { WriteInt32((Shake ? 1 : 0) | (Zoom ? 2 : 0) | (Darkness ? 4 : 0), 8, Buffer); }
|
|
|
09/17/2013, 12:53
|
#28
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by Y u k i
Betta be o___o xD
I'm somewhat sure that he still needs that 
|
Actually i don't need this code anymore you know ... i left new co O.o
Thank you everybody for trying to help each other .. we all appreciate that .
|
|
|
09/19/2013, 03:34
|
#29
|
elite*gold: 0
Join Date: Apr 2012
Posts: 58
Received Thanks: 1
|
It's just a subtype effect = 13 in FloorPacket and effect number is 4 or 5 or 6 just trying to find it by your own
|
|
|
Similar Threads
|
i need help about thrilling spook!!!
09/14/2011 - Conquer Online 2 - 1 Replies
well... 4 days ago i kill the thrilling spook 2 times and i wait for 3 long long days... and still say i already kill it soo...
i cant kill more thrilling spook :<....
iam bugged?
how can i kiill iot againn plx anyone tellme i really need to kill it :<!!!!
|
need help to kill trilling spook
02/20/2011 - Conquer Online 2 - 0 Replies
any 1 have trick to kill trilling spook ?
|
Spook
12/26/2010 - Conquer Online 2 - 0 Replies
does anyone know where the file to the spook image is because i wanna replace or dele so i can see the rock atk better instead of always having to tab
|
All times are GMT +1. The time now is 22:46.
|
|