Problem with bank use

  • Initiateur de la discussion yenyax
  • Date de début
  • Partenaires

Utilisateurs qui regardent le poste (Total: 0, Members: 0, Invité: 0)

Statut
La discussion n'est pas ouverte à d'autres réponses
Y

yenyax

Level 2
Level 1
12 Juil. 2019
16
0
202
30
Rejoignez MoonBot avec Cheat-Gam3, le bot pensé pour Dofus Retro !
im trying to implement the bank use with the script in the documentation.

function move()
return {
{ map = "191104002", changeMap = "288" },
{ map = "192415750", npcBank = true, changeMap = "409" },
}
end



but its seems it doesnt work. I tried too "npc.npc(NPCId,Option) ", but neither.

I'd like to deposite all my resources when i enter to the bank. can you help me?

Thanks
 
C

Certitude

V.I.P
Marchand
Level 5
Level 4
Level 3
Level 2
Level 1
23 Juin 2013
659
1,931
1,009
Île-de-France
Hello,

Unfortunately, you can only use npcBank = true in the bank function because it's the only time you go back to the bank.
 
Y

yenyax

Level 2
Level 1
12 Juil. 2019
16
0
202
30
Thanks for your response.

And how i use npcBank? The documentation says npcBank(npcId,indexReply) , and i get the npcid by the console of flatybot with the command, and i set the -1 in indexReply, but its not working. The script doesnt talk with the bank npc.

In this page of documentation , says that the use of npcBank is "npcBank = true ", but, in this page of the documentation , says that the use of npcBank is "npcBank(npcId,indexReply) ". Which one must i use?

Do you have an example script of the bank use?

Thank u very much!
 
C

Certitude

V.I.P
Marchand
Level 5
Level 4
Level 3
Level 2
Level 1
23 Juin 2013
659
1,931
1,009
Île-de-France
Hello !

Generally, you use the npcBank = true methods because it's the simplest method that doesn't require any custom functions.

Here is an example with the Bonta bank.
Code:
function move()
    return {
        { map = "2883593", changeMap = "424" }, -- exits the bank if you start the script in the bank
        -- actions..
    }

function bank()
    return {
        -- path to the bank
        { map = "147254", changeMap = "283" }, -- enters the bank
        { map = "2883593", npcBank = true, changeMap = "424" }, -- talks to the npc, and then exits the bank
    }
end
 
Statut
La discussion n'est pas ouverte à d'autres réponses