![]() |
Warping while standing at a specific location
Hi. I have recently taken to making my graal kingdoms house levels, and after reading the guides online, it has been going fairly well. I've come to a point where I can't find the info I need to do exactly what I want to do, so I've come here to ask.
Essentially I have an NPC that looks like this: PHP Code:
top left corner : x= 28.5 y=48.5 top right corner: x=32.5 y=48.5 bottom left corner: x=28.5 y=52 Bottom right corner: x= 32.5 y=52 Essentially I would like it to be so that my warp command only works when standing within these coordinates. Any help and comments appreciated :) |
Checking if a player is between the top left and bottom right corner should work.
PHP Code:
|
I have it looking like this now
PHP Code:
|
I find it hard to work simple maths problems out, so I'll explain how to do it. Work out the distance from top left corner to top right and then the bottom left to the top left. I think that'll give me the numbers I need.
|
Quote:
edit: you entered the wrong coordinates PHP Code:
|
1 Attachment(s)
I've put a picture of the grey 'carpet' I want to be able to warp on with the measures around it. Top left to top right is 4, top left to bottom left is 3.5
|
Quote:
|
| All times are GMT +2. The time now is 04:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.