Is there a way to do maths with PickupRange and FloorCoordinate ? menu

User Tag List

Results 1 to 5 of 5
  1. #1
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there a way to do maths with PickupRange and FloorCoordinate ?

    Can we do maths with these and how ?
    Hud.Game.Me.Stats.PickupRange = number (float)
    Hud.Game.Me.FloorCoordinate same as item.FloorCoordinate = xxx.xxx, xxx.xxx, xx.x (Lat. Long. Altitude ?)

    (I need to know if an item is in pickup range)

    Thanks

    Is there a way to do maths with PickupRange and FloorCoordinate ?
  2. #2
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
                var itemsInPickupRange Hud.Game.Items.Where(item => item.Location == ItemLocation.Floor && item.NormalizedXyDistanceToMe <= Hud.Game.Me.Stats.PickupRange); 
    Hide the Rum! --> Default theme customization 101 <--

  3. Thanks User5981 (1 members gave Thanks to JackCeparou for this useful post)
  4. #3
    prrovoss's Avatar Contributor
    Reputation
    152
    Join Date
    Jan 2013
    Posts
    420
    Thanks G/R
    23/130
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just out of curiosity: why do you need to know if an item is within your pickup range? the pickup range is only for globes and gold, isnt it?^^

  5. #4
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by prrovoss View Post
    just out of curiosity: why do you need to know if an item is within your pickup range? the pickup range is only for globes and gold, isnt it?^^
    When you have, let's say 4 separate veiled crystals on the floor, you pick one up and you get indeed the 4.
    Does this have to do with pickup range, "is on screen" or something else?
    I don't think it's "is on screen" so it's probably related to pickup range.

  6. #5
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tested it and the items show "in pickup range" when you walk on them, interesting, but not what I'm looking for.
    I try to know the perimeter into which a distant similar craft item will be picked up with the one that you pick up to find out which items are inside the perimeter.
    Maybe it is a fixed value in the game ?

    Edit 1:
    - Not "is on screen" for sure
    - Modified opacity of PickupRangePlugin shows the perimeter for "group pickup" is bigger.
    Edit 2:
    - It is apparently a fixed value of 40 (same units as Hud.Game.Me.Stats.PickupRange) so I will replace Hud.Game.Me.Stats.PickupRange by 40 in the code provided by Jack :-)
    Last edited by User5981; 09-01-2017 at 03:29 PM.

Similar Threads

  1. Is there a way to fake ID with newspaper
    By m3rk1 in forum World of Warcraft General
    Replies: 5
    Last Post: 05-09-2011, 07:13 AM
  2. Is there a way to do this?
    By Garneth in forum World of Warcraft General
    Replies: 2
    Last Post: 04-07-2011, 08:14 PM
  3. [Question] Is there a way to have Nibbit compatable with the latest expansion/patch?
    By DavidTwo2009 in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 09-05-2009, 07:41 PM
  4. Is there any way to do .... :)
    By zsolt333 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 02-05-2009, 06:21 PM
  5. Is there a way to get players to start with gold?
    By Wow Raiders in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-22-2008, 02:15 PM
All times are GMT -5. The time now is 04:42 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search