Wiki down + I'm dumb

12/07/2014 17:43 pro4never#1
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 x[t]c#2
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 pro4never#3
Pretty sure it's subtype 12 to remove
12/07/2014 19:04 x[t]c#4
Quote:
Originally Posted by pro4never View Post
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 pro4never#5
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 x[t]c#6
Quote:
Originally Posted by pro4never View Post
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 Yupmoh#7
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 Korvacs#8
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 Yupmoh#9
Just the way I've done it, no response from client so I've done the check on movements.
12/09/2014 12:31 Aceking#10
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 Korvacs#11
Quote:
Originally Posted by Aceking View Post
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?