|
You last visited: Today at 18:47
Advertisement
Traps
Discussion on Traps within the CO2 Private Server forum part of the Conquer Online 2 category.
03/07/2014, 02:14
|
#16
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
Alright. I will definitely test it out.
Only thing I could possibly be missing is the type of trap.
Which is the offset that controls item color, at least I assume.
So no idea what those types would be?
Just gonna hafta guess them I suppose
Edit.
I just tried a bunch of different ways, still nothing....
Just dont understand why it works on later patches, can't see why it would change...
|
|
|
09/26/2023, 14:05
|
#17
|
elite*gold: 0
Join Date: May 2012
Posts: 4
Received Thanks: 0
|
So 9 years later, did you manage to find a solution for this? XD
I am trying to implement the same feature and stuck with the same weird behavior.
i even tried reverse engineering the client using Ghidra, but i got lost and could not manage to get to the function that is triggered.
|
|
|
09/27/2023, 18:31
|
#18
|
elite*gold: 0
Join Date: Oct 2022
Posts: 34
Received Thanks: 2
|
Quote:
Originally Posted by chetos20123
So 9 years later, did you manage to find a solution for this? XD
I am trying to implement the same feature and stuck with the same weird behavior.
i even tried reverse engineering the client using Ghidra, but i got lost and could not manage to get to the function that is triggered.
|
I think you can remove the traps starting somewhere around 5065-5165. On older clients, the remove subtype is ignored. Also the client never sends a packet when you step on a trap, you have to check that server side
|
|
|
09/29/2023, 01:57
|
#19
|
elite*gold: 0
Join Date: May 2012
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by .Nostalgia
I think you can remove the traps starting somewhere around 5065-5165. On older clients, the remove subtype is ignored. Also the client never sends a packet when you step on a trap, you have to check that server side
|
I tried it on 5065 but still same issue, guess i have to look for another workaround, i tried to attach role effect using MsgName to the dropped item but it did not show anything on the field, guess it works only on characters.
|
|
|
09/29/2023, 21:37
|
#20
|
elite*gold: 0
Join Date: Feb 2009
Posts: 259
Received Thanks: 159
|
I use in my 5017 to remove trap:
Code:
stream.CreateMapItem(UID, 17, X, Y, MsgMapItem.GroundItemAction.DropTrap, 0)
I don't remember the reason for 17(for id).. this source is old.
DropTrap = 12
The packet is: The cast is:
The UID is: 994454+
|
|
|
09/30/2023, 02:36
|
#21
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by teroareboss1
I use in my 5017 to remove trap:
Code:
stream.CreateMapItem(UID, 17, X, Y, MsgMapItem.GroundItemAction.DropTrap, 0)
I don't remember the reason for 17(for id).. this source is old.
DropTrap = 12
The packet is: The cast is:
The UID is: 994454+
|
Tero, how many **** databases do you need?
|
|
|
10/02/2023, 23:52
|
#22
|
elite*gold: 0
Join Date: May 2012
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by teroareboss1
I use in my 5017 to remove trap:
Code:
stream.CreateMapItem(UID, 17, X, Y, MsgMapItem.GroundItemAction.DropTrap, 0)
I don't remember the reason for 17(for id).. this source is old.
DropTrap = 12
The packet is: The cast is:
The UID is: 994454+
|
ok, so i tried what you have proposed but still no luck.
here is how i sent the message to cast trap:
Code:
await user.Client.SendAsync(new MsgMapItem
{
Identity = 994464,
MapX = user.X,
MapY = user.Y,
Itemtype = type,
Mode = DropType.LayTrap,
Color = 1
});
Here is how i sent the message to drop trap
Code:
await user.Client.SendAsync(new MsgMapItem
{
Identity = 994464,
MapX = user.X,
MapY = user.Y,
Itemtype = 17,
Mode = DropType.DropTrap,
Color = 0
});
here is how the message is encoded:
Code:
public override byte[] Encode()
{
using var writer = new PacketWriter();
writer.Write((ushort)PacketType.MsgMapItem);
writer.Write(Identity); // 4
writer.Write(Itemtype); // 8
writer.Write(MapX); // 12
writer.Write(MapY); // 14
writer.Write((ushort)Mode); // 16
writer.Write((ushort)Color); // 18
return writer.ToArray();
}
i tested on the bomb trap (itemType 23), on stigma effect (itemType 22) and on itemtype 17
the trap appears below the character but it never disappears until i go off screen or until default period finishes (in case of item types 22 and 17)
can you spot where the issue is? :/
|
|
|
10/09/2023, 17:49
|
#23
|
elite*gold: 0
Join Date: Oct 2022
Posts: 34
Received Thanks: 2
|
He is using an edited client with type 17 set to not loop in 3DEffect.ini iirc, so it looks like it gets removed instantly. That's the only explanation i got because that was my workaround too, although with a different Id.
|
|
|
10/09/2023, 20:32
|
#24
|
elite*gold: 0
Join Date: May 2012
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by .Nostalgia
He is using an edited client with type 17 set to not loop in 3DEffect.ini iirc, so it looks like it gets removed instantly. That's the only explanation i got because that was my workaround too, although with a different Id.
|
can you explain that workaround? maybe i will try to follow it as well
|
|
|
10/10/2023, 07:49
|
#25
|
elite*gold: 0
Join Date: Oct 2022
Posts: 34
Received Thanks: 2
|
I'm sorry, I misremembered, I used packet 1015 (MsgName) and i keep sending the effect packet if players are in range once a second, i set the LoopTime to 2 and the FrameInterval to 30 in 3DEffect.ini in the client.
Once a player steps on it, I simply stop sending the MsgName packet that displays it.
|
|
|
|
|
Similar Threads
|
[ BOT TRAPS ] In Jangan
04/23/2014 - Silkroad Online - 8 Replies
Wtf , people gone crazy or what ? why are you doing bot traps in jangan ? there is only few gold bots lvl 80+ . Yesterday i came home high as a cow and gone to bed. i woke up and WTF -20 % ?? I got breakdown lol :D . In future , people , please dont do bot traps in jangan , cause in jangan 98 % = player bots ;) Bye
|
Request codes traps
07/25/2013 - Facebook - 1 Replies
you can have the codes of the traps WOM thanks
|
[Sammeltherad] Mob Traps
01/21/2011 - Minecraft - 11 Replies
Hier könnt ihr
- eure mob traps posten (mit bau einleitung)
- gegen seitig mob traps tauschen
- Oder Fragen zu mob traps stellen
Viel Spaß
Mfg
|
Be able to put infinite traps?
02/06/2009 - RF Online - 0 Replies
is there a way to be able to put more traps like 30 , 40 etc on a same spot?
|
Nid Help How to murder x-traps from p servers...
09/17/2008 - Cabal Online - 1 Replies
as the topic says any existing threads has been posted here just asking lame on click the search button...
|
All times are GMT +2. The time now is 18:47.
|
|