![]() |
Location gate (src.go) - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Location gate (src.go) (/Thread-Location-gate-src-go) |
Location gate (src.go) - Snaigel - 01-30-2017 10:31 PM I'm trying to do a gate that teleports players to a specific location, but I want it to don't let harmed people travel, and only players, no npcs. But it lets npc to travel and harmed people aswell. My script looks like this: Quote:[ITEMDEF i_gate_cemen] RE: Location gate (src.go) - Coruja - 01-31-2017 01:11 AM NPCs can't dclick on items, so maybe it's better change the item to use only @Step instead @DClick Code: [ITEMDEF i_gate_cemen] RE: Location gate (src.go) - Snaigel - 01-31-2017 01:51 AM Thank you it works perfect. And another thing, when you stay on the gate, you keep traveling repeated times, it's annoying, is there a way to don't let it happen?, maybe a simple delay? RE: Location gate (src.go) - Leonidas - 01-31-2017 09:49 AM If they teleport once they shouldn't teleport again, unless you have another gate at 5225,1726. RE: Location gate (src.go) - Snaigel - 01-31-2017 09:54 AM Ah yes, I've forgot to mention that, I've placed a teleport in the other side, so I'm stupid and I only have to move it xd |