From: rickhunley
Hi @Davi,
I found this https://villavu.com/forum/showthread.php?t=113032&page=3.
You could add Zalmoxius's code to this script as if you disconnect (quite high frequency now), then the pathway sometimes gets corrupted. Looks like this should fix it.
Another addition could be to allow for PlayerManager, so user details don't always have to be entered :)
Keep up the good work
Why don't you add it to your own version hunley? :) It looks complicated but it's basically an if statement that checks if your inventory is full - if it is, it goes back to the bank, if not it goes to the altar.
In terms of my script it would look something like
if not player.isLoggedIn then
begin
loginPlayer(False);
if outofMats(itemList) then
begin
if checkDoor then
begin
RSW.WalkPath(ellisToDoor);
openDoor;
RSW.WalkPath(doorToBank);
end else
RSW.WalkPath(ellisToBank);
end else
begin
if checkDoor then
begin
RSW.WalkPath(bankToDoor);
openDoor;
RSW.WalkPath(doorToEllis);
end else
RSW.WalkPath(bankToEllis);
end;
end;
As to why I'm not just adding that to the script and calling it an update- It's because this was the last of what I will call my '1st generation' scripts. Since writing this I have updated the way I do certain things and until I have time to update the whole script I don't want to push an update.
Edit: Actually since my script is not modular like Flight's the full version you would need to use would be:
if not player.isLoggedIn then
begin
loginPlayer(False);
if outofMats(itemList) then
begin
draw('Walking to bank');
if checkDoor then
begin
RSW.WalkPath(ellisToDoor);
openDoor;
RSW.WalkPath(doorToBank);
end else
RSW.WalkPath(ellisToBank);
end else
begin
draw('Walking to Ellis');
if checkDoor then
begin
RSW.WalkPath(bankToDoor);
openDoor;
RSW.WalkPath(doorToEllis);
end else
RSW.WalkPath(bankToEllis);
tanHides;
customAnti;
draw('Walking to bank');
if checkDoor then
begin
RSW.WalkPath(ellisToDoor);
openDoor;
RSW.WalkPath(doorToBank);
end else
RSW.WalkPath(ellisToBank);
end;
end;