Ok, i have a script made of one-liners. And in the bank action i do have the following script:

Code:
Self.SayToNpc({'hi', 'ticket', 'yes', 'deposit all', 'yes'}, 65) wait(1700) Self.SayToNpc({'withdraw'.. ((BuyHP-Self.ItemCount(itemHP))*prieceHP)+((BuyMP-Self.ItemCount(itemMP))*prieceMP)}) wait(500) Self.SayToNpc({'yes'}, 65)

basically variables like itemHP, itemMP, buyHP... are stored on a .lua file called kazzsetup.lua
when the script runs i got an error

PHP Code:
05:35 XenoScript Error:
           
Script: [One-Liner executed by XenoBot Walker]
           
Line #: 1
           
Chunk: [string ?Self.SayToNpc({'hi''ticket''yes''depo..."]
           Error: attempt to perform arithmetic on global '
BuyHP' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot. 

already tried to put dofile('kazzsetup.lua') and dofile("kazzsetup.lua") in the oneliner and it still dont work:

PHP Code:
05:34 XenoScript Error:
           
Script: [One-Liner executed by XenoBot Walker]
           
Line #: 1
           
Chunk: [string ?dofile??kazzsetup.lua") Self.SayToNpc({'hi'..."]
           
Errorattempt to perform arithmetic on global 'BuyMP' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot
how do i make to import variables from a .lua file to use on the one liners?



btw how to wrap .lua code on the forum already tried [code=lua] and fail :/