![]() |
Utterly lost on this one...
I am trying to make a 'potion' that the first time you use it, it sets that place as a warp, then subsequent uses causes you to warp there (up to 15 charges)
The problem is, it doesn't exactly warp you where you first used it... NPC Code: Example: oldx=10.1875 oldy=33.09375 x before use = 9.5 y before use = 32 x after use = 10.1875 y after use = 33.09375 adding int to the bolded parts above doesn't help either. Have tried everything...but now i'm going to ask another mind to help me out. Thanks, Gohan |
Here's that whole section of the clip:
NPC Code: Bleeeh...this is so irritating. I checked my x and y before i used it and then i use it and i get switched x+1 or something...It's really messed up :( Gohan |
setstring oldx,#v(x+1);
setstring oldy,#v(y); I assume you want to set those with the player x and y... setstring oldx,#v(playerx); setstring oldy,#v(playery); |
lolololololol
:grrr: :grrr: :grrr: meesa stupid :) Thanks Boco |
| All times are GMT +2. The time now is 04:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.