PDA

View Full Version : On relog open bp automatically



drwill
06-08-2020, 04:16 AM
Someone can make this simple script for me please :D I do know how to code, but dont have idea on the commands :] Thanks in advance!

must be on relog and log actually, much aprecciatted.

+

Script to follow chars, if there is not char one on screen then follow char two, or char three.

drwill
06-10-2020, 04:59 PM
[QUOTE=drwill;510410]


FOLLOW DOWN:

local MainBPname = "backpack"
local Itemname = "blue backpack"
local Goldname = "beach backpack"

function openBP()
local backpack3 = Container.GetByName(Goldname)
local backpack2 = Container.GetByName(Itemname)
local backpack1 = Container.GetByName(MainBPname)
if (backpack1:isOpen() == false) then
delayWalker(1000)
wait(500)
Self.UseItem(Self.Backpack().id)
Container.Close(Itemname)
wait(1000)
Container.GetFirst():OpenChildren(Itemname)
wait(1000)
Container.GetByName(Itemname):Minimize()
Container.Close(Goldname)
wait(1000)
Container.GetFirst():OpenChildren(Goldname)
wait(1000)
Container.GetByName(Goldname):Minimize()
wait(2000)
end
end

while(true) do
openBP()
wait(500,1000)
end




++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++

local player = "Manhood"
Module.New("AutoFollow", function (module)
for i = CREATURES_LOW, CREATURES_HIGH do
local creature = Creature.GetFromIndex(i)
if creature:isValid() and creature:ID() ~= Self.ID() then
if creature:isOnScreen() and creature:isVisible() and creature:isAlive() and creature:isReachable() then
local name = creature:Name()
if creature:isPlayer() and creature:Name():lower() == player:lower() and not creature:isFollowed() then
creature:Follow()
end
end
end
end
module:Delay(3000)
end)