XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 6 of 6

Thread: Alarm when in spawn ONLY

  1. #1
    Banned
    Join Date
    May 2013
    Posts
    167
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Alarm when in spawn ONLY

    There may already be a feature and i apologise if there is, but i was wondering if it was possible to enable alarms only between certain waypoints. Example:

    Enable alarms between waypoints 'Hunt' and 'Leave'

  2. #2
    Banned
    Join Date
    May 2013
    Posts
    167
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    bump#

  3. #3

    Join Date
    Oct 2014
    Posts
    57
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    sighned

  4. #4
    Travis E's Avatar
    Join Date
    Aug 2012
    Location
    USA
    Posts
    86
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Would be nice!

  5. #5
    Banned
    Join Date
    Jan 2013
    Location
    Buenos Aires, Argentina
    Posts
    4,785
    Mentioned
    329 Post(s)
    Tagged
    1 Thread(s)
    ye broski

    you just need the following:

    - 2 labels
    - 2 xbst
    - a few lua lines
    - a brain

    good luck!

  6. #6

    Join Date
    Oct 2013
    Posts
    90
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Y2Quakepc2 View Post
    ye broski

    you just need the following:

    - 2 labels
    - 2 xbst
    - a few lua lines
    - a brain

    good luck!
    Suggestions board.... :P

    Anyway @Furpan (Pretty sure it was him :P) done a little one up awhile ago, you just need a bit of knowledge to set it up :P Basically you need to add 2 labels to your .xbst then add this code to your .lua config as a function.

    Code:
    if (labelName == "EnablePlayerDetection")
    	DetectPlayer(1)
    elseif (labelName == "DisablePlayerDetection")
    	DetectPlayer(0)
    end
    
    
    function DetectPlayer(type)
    	local file = io.open("..\\Settings\\tmp-detect.xbst", "w")
    	if type then
    		file:write('<panel name="Alarms">\n	<control name="playerAlarm" value="'..type..'"/>\n</panel>')
    	else
    		file:write('<panel name="Alarms">\n	<control name="playerAlarm" value="'..type..'"/>\n</panel>')
    	end
    	file:flush()
    	file:close()
    	loadSettings("tmp-detect", "Alarms")
    end

Posting Permissions

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