Thrilling Spook Action !!

10/17/2011 23:26 pro4never#16
Quote:
Originally Posted by { Angelius } View Post
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 abdeen#17
Quote:
Originally Posted by pro4never View Post
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(15);
                    if (
Nr == 1killer.Owner.Inventory.Add(80061301);
                    
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " killer.Name "Has Killed " Owner.Name " And Won Soul 1 Item!"System.Drawing.Color.Yellow2011), ServerBase.Kernel.GamePool.Values);
                    if (
Nr == 2killer.Owner.Inventory.Add(80041501);
                    
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " killer.Name "Has Killed " Owner.Name " And Won Soul 2 Item!"System.Drawing.Color.Yellow2011), ServerBase.Kernel.GamePool.Values);
                    if (
Nr == 3killer.Owner.Inventory.Add(80042001);
                    
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " killer.Name "Has Killed " Owner.Name " And Won Soul 3 Item!"System.Drawing.Color.Yellow2011), ServerBase.Kernel.GamePool.Values);
                    if (
Nr == 4killer.Owner.Inventory.Add(80051301);
                    
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " killer.Name "Has Killed " Owner.Name " And Won Soul 4 Item!"System.Drawing.Color.Yellow2011), ServerBase.Kernel.GamePool.Values);
                    if (
Nr == 5killer.Owner.Inventory.Add(80001701);
                    
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " killer.Name "Has Killed " Owner.Name " And Won Soul 5 Item!"System.Drawing.Color.Yellow2011), 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.Yellow2011), ServerBase.Kernel.GamePool.Values);
                } 
but its always select

PHP Code:
 if (Nr == 5killer.Owner.Inventory.Add(80001701);
                    
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" Congratulations " killer.Name "Has Killed " Owner.Name " And Won Soul 5 Item!"System.Drawing.Color.Yellow2011), ServerBase.Kernel.GamePool.Values); 
10/18/2011 01:11 pro4never#18
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 abdeen#19
Quote:
Originally Posted by pro4never View Post
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 pro4never#20
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 { Angelius }#21
Quote:
Originally Posted by pro4never View Post
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 abdeen#22
Quote:
Originally Posted by { Angelius } View Post
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 Y u k i#23

You mean that?

0 = 20
2 = 0x44D
4 = UID
8 = 1
12 = X
14 = Y
16 = 13

Have fun.
09/17/2013 00:23 GameHackerPM#24
Quote:
Originally Posted by Y u k i View Post

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 Aceking#25
Well the thread is 2 years old, I kinda doubt they are still working on this issue.
09/17/2013 00:34 Y u k i#26
Quote:
Originally Posted by GameHacker-PM- View Post
Haha, you post the important thing! :)
I think he can do it easily now!
Betta be o___o xD

Quote:
Originally Posted by Aceking View Post
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 abdoumatrix#27
check ProjectX Source MapSkill or Map Effect

or just use this
09/17/2013 12:53 abdeen#28
Quote:
Originally Posted by Y u k i View Post
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 Mero.El.Omda#29
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