Results 1 to 3 of 3

Thread: [Script] Easier get ID's Script

  1. #1
    Spider
    Join Date
    Mar 2017
    Location
    England
    Posts
    29

    [Script] Easier get ID's Script

    This script will allow you to get the ID's of anything North, East, South or West of yourself by entering your character name.

    Example: saying "n" will send yourself the ID of the item North of yourself in a PM.
    the same applies for "e" = east, "s" = south and "w" = west.

    Update: Added "u" for Under yourself.

    Code:
    -- Script by Jasonrox
    local Name  = "name" -- Your Name here
    
    local North = "n" -- Get North ID
    local East  = "e" -- Get East ID
    local South = "s" -- Get South ID
    local West  = "w" -- Get West ID
    local Under = "u" -- Get Under ID
    
    auto(100)
    for _, m in ipairs(getnewmessages()) do
    	if m.sender == Name and m.text == North then 
    	pm(Name, gettopuseitem(posx(),posy() -1,posz()).id)
    	elseif m.sender == Name and m.text == East then 
    	pm(Name, gettopuseitem(posx() +1,posy(),posz()).id)
    	elseif m.sender == Name and m.text == South then 
    	pm(Name, gettopuseitem(posx(),posy() +1,posz()).id)
    	elseif m.sender == Name and m.text == West then 
    	pm(Name, gettopuseitem(posx() -1,posy(),posz()).id)
    	elseif m.sender == Name and m.text == Under then 
    	pm(Name, gettopuseitem(posx(),posy(),posz()).id)
    	end
    end
    Last edited by jasonrox; 06-10-2017 at 12:17 AM. Reason: Updated Script

  2. #2
    Gonna test it, Ty

  3. #3
    Spider
    Join Date
    Mar 2017
    Location
    England
    Posts
    29
    your welcome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •