[Scripts] OTClient


Gugu - Karin Uzumaki

Recommended Posts

  • 2 months later...

ou se não manja fazer um de SUBIR SOFT  no tibia auto não ?? eu agradeceria bastante *_*

Eu não to com tibia auto mais... Mas manda a script pra mim, via PM aki no forum, que eu dou uma olhada e vejo se tem algo errado.

Pode ser que o id da soft tenha mudado, ou o endereço de memoria onde localiza a parte da bota...

 

e de ring, amuleto, soft, essas coisas? tem?

Ring já tem no cavebot, na aba de suporte...

Amuleto eu fiz um script, só baixar e colocar la na pasta do modulo correto.

 

O DA SOFT NAUM TA SUBINDO

Não tem script de soft aki, amigo...

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

eu coloquei ela no dentro do arquivo init.lua,  e funcionou perfeitamente.

só copiei e coloquei o código, coloquei no fim do arquivo e pronto.

O arquivo init.lua fica na pasta principal do otclient, onde fica o executável, as dll e talz.

 

o arquivo ficou assim:

-- this is the first file executed when the application starts
-- we have to load the first modules form here

-- setup logger
g_logger.setLogFile(g_resources.getWorkDir() .. g_app.getCompactName() .. ".log")
g_logger.info(os.date("== application started at %b %d %Y %X"))

-- print first terminal message
g_logger.info(g_app.getName() .. ' ' .. g_app.getVersion() .. ' rev ' .. g_app.getBuildRevision() .. ' (' .. g_app.getBuildCommit() .. ') built on ' .. g_app.getBuildDate() .. ' for arch ' .. g_app.getBuildArch())

-- add data directory to the search path
if not g_resources.addSearchPath(g_resources.getWorkDir() .. "data", true) then
  g_logger.fatal("Unable to add data directory to the search path.")
end

-- add modules directory to the search path
if not g_resources.addSearchPath(g_resources.getWorkDir() .. "modules", true) then
  g_logger.fatal("Unable to add modules directory to the search path.")
end

-- try to add mods path too
g_resources.addSearchPath(g_resources.getWorkDir() .. "mods", true)

-- setup directory for saving configurations
g_resources.setupUserWriteDir(g_app.getCompactName())

-- search all packages
g_resources.searchAndAddPackages('/', '.otpkg', true)

-- load settings
g_configs.loadSettings("/config.otml")

g_modules.discoverModules()

-- libraries modules 0-99
g_modules.autoLoadModules(99)
g_modules.ensureModuleLoaded("corelib")
g_modules.ensureModuleLoaded("gamelib")

-- client modules 100-499
g_modules.autoLoadModules(499)
g_modules.ensureModuleLoaded("client")

-- game modules 500-999
g_modules.autoLoadModules(999)
g_modules.ensureModuleLoaded("game_interface")

-- mods 1000-9999
g_modules.autoLoadModules(9999)

local script = '/' .. g_app.getCompactName() .. 'rc.lua'

if g_resources.fileExists(script) then
  dofile(script)
end

g_keyboard.bindKeyPress('End', function()
	local player = g_game.getLocalPlayer()
	local mypos = player:getPosition()
	local tile = g_map.getTile(mypos)
	local bp = player:getInventoryItem(InventorySlotBack)
	local GP = 3031
	local Plat = 3035
	local GPNABP = player:getItem(GP)
	local PlatNaBP = player:getItem(Plat)
	local verificaSQM = tile:getTopMoveThing():getId()
	
	if GPNABP == nil then
		g_game.use(PlatNaBP)
	elseif verificaSQM ~= GP then
		g_game.move(GPNABP, mypos, 2)
	end
end)   
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...