lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 05-11-2020, 10:22 PM
Marobs Marobs is offline
The Wary
 
Join Date: May 2020
Posts: 4
how to shorten coordinates ???

hi,

I have in mine craftbuild a gps service.
Now i have the problem with the coordinates.
If i ask them trought the gps i get like x = 159.357 y = 65.349 z = 469.248.
now i want to shorten them so i only have left what is infront the dot.
like this x = 159 y = 65 z = 469.

how can i do this in lua code, i try to learn all i can from lua.
but some times need help. cant do it all alone.
its as they say, only together we can do it all.

thnx alot already for the help.

and btw im dutch so dont lock at type errors.

greets.

Last edited by Marobs : 05-11-2020 at 10:22 PM. Reason: typo
Reply With Quote
  #2  
Unread 05-12-2020, 03:58 AM
Hyoss's Avatar
Hyoss Hyoss is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jan 2011
Posts: 150
What you want to do is described here:

https://www.programming-idioms.org/i...teger/1678/lua

Also please understand that you are asking your questions in a forum dedicated to Lord of the Rings Online, not a general LUA forum.
Reply With Quote
  #3  
Unread 05-12-2020, 05:59 PM
Marobs Marobs is offline
The Wary
 
Join Date: May 2020
Posts: 4
Sorry

Oh sorry my fault, didnt know that, but thnx alot for the help
Reply With Quote
  #4  
Unread 05-13-2020, 03:02 AM
Hyoss's Avatar
Hyoss Hyoss is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jan 2011
Posts: 150
No need to apologize. I recommend https://stackoverflow.com/ as a general programming questions site - all kinds of programming questions are asked and answered there.

For example, here are the 17000 questions tagged with "Lua" and a lot of them answered: https://stackoverflow.com/questions/tagged/lua
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Main Map coordinates ElronSilvermoon Interface Requests (L) 11 02-16-2009 05:55 AM


All times are GMT -5. The time now is 06:46 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui