Problem with bank use

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Status
Not open for further replies.

yenyax

Membre
Jul 12, 2019
16
0
202
28
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
 

yenyax

Membre
Jul 12, 2019
16
0
202
28
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 Ce lien n'est pas visible, veuillez vous connecter pour l'afficher. Je m'inscris! , says that the use of npcBank is "npcBank = true ", but, in this page of the documentation Ce lien n'est pas visible, veuillez vous connecter pour l'afficher. Je m'inscris!, 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!
 

TomLaVachette

V.I.P
Marchand
Partenaire
V
Jun 23, 2013
682
1,939
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
 
Status
Not open for further replies.