|
You last visited: Today at 05:39
Advertisement
Wiki down + I'm dumb
Discussion on Wiki down + I'm dumb within the CO2 Private Server forum part of the Conquer Online 2 category.
12/07/2014, 17:43
|
#1
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Wiki down + I'm dumb
Does anyone have information on the packet structure for Traps? I'm drawing a blank on them and don't seem to see them implemented in public sources.
Traps are ingame objects that trigger an effect when the player steps on them. This includes things like mine shafts to go deeper into mines, squama spots and a few other things.
They're an awesome system I just don't see them used often and I'm drawing a blank on pulling out any packet structures.
<edit>
Nvm I'm dumb. it appears to be a ground item subtype...
|
|
|
12/07/2014, 18:15
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 33
Received Thanks: 6
|
Your right, it is a ground item subtype. I can spawn them properly, but have never been able to remove them with a packet on v5017 haha.
|
|
|
12/07/2014, 18:36
|
#3
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Pretty sure it's subtype 12 to remove
|
|
|
12/07/2014, 19:04
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 33
Received Thanks: 6
|
Quote:
Originally Posted by pro4never
Pretty sure it's subtype 12 to remove
|
Hmm, its been a while since ive tried to mess with it, can't remember everything i've tried. But thanks a lot, i'll have to give it a go.
|
|
|
12/07/2014, 20:42
|
#5
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Am I correct in assuming that mine shafts/ladders are server side traps? Seems as though I don't trigger any packets Client>Server when I step on a trap I spawn.
I was under the impression it was like portals where the client would send a request when they were triggered.
|
|
|
12/07/2014, 20:58
|
#6
|
elite*gold: 0
Join Date: Mar 2009
Posts: 33
Received Thanks: 6
|
Quote:
Originally Posted by pro4never
Am I correct in assuming that mine shafts/ladders are server side traps? Seems as though I don't trigger any packets Client>Server when I step on a trap I spawn.
I was under the impression it was like portals where the client would send a request when they were triggered.
|
I could never get anything to be received by the client. I tried changing the map status etc and never did. I suppose you could try to add a portal into the client there to receive a packet, but I just handled it as if it was a trap (squama etc)
|
|
|
12/08/2014, 08:33
|
#7
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
I haven't got to do them yet, but as far as I know it doesn't trigger a response from client when trap activated... I could be wrong but someone told me it has to be handled source sided.
|
|
|
12/08/2014, 11:30
|
#8
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
It'll be a trap which the client isn't aware of, you check for a trap on every movement and when a client lands on it you activate the relevant ActionID, or script which moves the client to the new map.
|
|
|
12/09/2014, 11:39
|
#9
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
Just the way I've done it, no response from client so I've done the check on movements.
|
|
|
12/09/2014, 12:31
|
#10
|
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
|
As Korvacs said, it's completely server sided.
On top of that, TQ didn't implement a way to remove them until somewhere near 5500~.
That, or it was just bugged and broken and wasn't fixed until then.
The old days of conquer, once you stood on a squama the only way it would disappear was if you jumped off screen.
|
|
|
12/09/2014, 13:05
|
#11
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by Aceking
On top of that, TQ didn't implement a way to remove them until somewhere near 5500~.
That, or it was just bugged and broken and wasn't fixed until then.
|
I'm pretty sure this isn't true, I have code that says otherwise but I'm unable to test it currently, there is a dropid/groundobjectid specifically for the removal of a trap from the screen in 4267.
Maybe it's bugged like you say and actually this doesn't do anything, hmm.
Just to confirm it's 12/0x0C to remove in my code. Is this not working?
|
|
|
Similar Threads
|
Dumb question, dumb answer game!
04/25/2008 - Off Topic - 3 Replies
Thought that this forum could use some chatting games:
Sooo lt's goo i will give a totally pointless question and you will give a more pointless answer!
:D
Soo why am I so cool?
|
All times are GMT +1. The time now is 05:39.
|
|