XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Need Help With Screenshots Saver Script

  1. #1
    Storm70's Avatar
    Join Date
    Jun 2014
    Location
    United States
    Posts
    117
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Need Help With Screenshots Saver Script

    Well, I have had my own life thread for a little while, and had to stop updating it because; I noticed when xenobot had that error that one day and no one could login, It was this error (e06: Error in WinHttpReceiveResponse()!), anyways ever since that day happened, I never modified, edited, deleted, I did nothing at all, but for some reason none of the screenshot saving scripts I'm attempting work, none of the scripts save the level advancement anymore, and the script I was using from level 1-85 on all my characters doesn't work now and it's the screenshot saver from Examples on the bot.
    Any one have any clue why my screenshots aren't saving anymore?! I seen another guy having same issue @Adrax 13

    Scripts I been using:
    Code:
    GenericTextMessageProxy.OnReceive("Skill Level Screenshotter", function(_, msg)
        -- Skills
    	local skill, level = msg:match("You advanced to (.*) level (%d+)")
    	if skill and level then
    	    wait(1000)
    	    screenshot(Self.Name().."_"..skill.."_"..level)
    		return
    	end
    	
    	-- Regular levels
    	level = msg:match("You advanced from Level .- to Level (%d+)")
    	if level then
    	    wait(1000)
    		screenshot(Self.Name().."_"..level)
    	end
    end)
    &

    Code:
    --		//////////////////////////////////
    --		//    ___                   _ 	//
    --		//   / _ \                 (_)	//
    --		//  / /_\ \_   ____ _ _ __  _ 	//
    --		//  |  _  \ \ / / _` | '_ \| |	//
    --		//  | | | |\ V / (_| | | | | |	//
    --		//  \_| |_/ \_/ \__,_|_| |_|_|	//
    --		//                            	//
    --		//////////////////////////////////
    ---------------------------------------------------------------
    ------------------------  SETTINGS  ---------------------------
    ---------------------------------------------------------------
    	LevelUp   	= true -- Will take a screenshot when leveling up
    	Death		= false -- Will take a screenshot upon death
    	Stamina		= false -- Will take a screenshot if below 14:00 stamina
    	Skull		= false -- Will take a screenshot when you get a skull
    ---------------------------------------------------------------
    -------------  DO NOT CHANGE ANYTHING BELOW  ------------------
    ---------------------------------------------------------------
    Level = Self.Level()
    Name = Self.Name()
    
    function takeScreenshot()
    	if Name ~= Self.Name() then
    		Level = Self.Level()
    		Name = Self.Name()
    	end
    	if (LevelUp == true) then
    		if Self.Level() > Level then
    			wait(200)
    			screenshot(Self.Name() ..  "_level_" .. Self.Level())
    			wait(1000)
    			Level = Self.Level()
    		end
    	end
    	if (Death == true) then
    		if Self.Health() == 0 then
    			screenshot(Self.Name() .. "_death_" .. os.date("%H.%M"))
    			wait(1000)
    			Death = false
    		end
    	end
    	if (Stamina == true) then
    		if Self.Stamina() < 840 then
    			screenshot(Self.Name() .. "_LowStamina_" .. os.date("%H.%M"))
    			wait(1000)
    			Stamina = false
    		end
    	end
    	if (Skull == true) then
    		if (Self.Skull() ~= 0) and (activeSkull == false) then
    			screenshot(Self.Name() .. "_Skull_" .. os.date("%H.%M"))
    			wait(1000)
    			activeSkull = true
    		elseif (Self.Skull() == 0) and (activeSkull == true) then
    			activeSkull = false
    		end
    	end
    end
    
    while true do 
    	takeScreenshot()
    end
    &

    Code:
    --[[
    	This is a XenoBot example script, intended to
    	teach new users about the scripting API and 
    	act as script that is usable in actual play.
    	
    	levelupScreenshot.lua - takes a screenshot upon level up
    
    	** DO NOT EDIT THIS FILE. INSTEAD, COPY IT TO
    	"Documents\XenoBot\Scripts" AND EDIT THE COPY. **
    ]]--
    
    
    --this continuously loops, executing the code inside over and over again
    while (true) do
    	local name = Self.Name() --stores our name at the start
    	local level = Self.Level() --stores our level at the start
    	
    	--this loops until our name changes (meaning we switched characters)
    	while (name == Self.Name()) do
    		--this checks if our level has increased, and screenshots if so
    		if (Self.Level() > level) then
    			level = Self.Level() --updates the stored level
    			screenshot(name .. " level " .. level) --filename is "{name} level {level}
    		end
    		
    		--this causes the loop to wait between 1 and 2 seconds before retrying
    		wait(1500, 2500)
    	end
    end


    With Avani's script If I activate death, stamina, and skull all on "true" then the script will take advances on skills, my world is non pvp so not sure if it takes screenshot when skull; So I'm really unsure how the script is working, cause it does take skills advance screenshots and saves to my folder, but it will not take screenshot advances of my characters's level, and I have no advances from my characters all screenshots stopped in the level 80s and only thing I can think of is that one day xenobot stopped working for majority people, I know my screenshot script has been broken since atleast then, I would like to get it working so I can continue to update my life thread considering I am still running strong but I have no advances to update with, so my project is dead until I get this resolved.
    Last edited by Storm70; 01-19-2016 at 04:11 PM.

  2. #2
    Storm70's Avatar
    Join Date
    Jun 2014
    Location
    United States
    Posts
    117
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Here's the other guy with issue, or similar issue.
    http://forums.xenobot.net/showthread...s-arent-saving

Posting Permissions

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