PDA

View Full Version : >>>>>>>>....help please....<<<<<<<<



janildo88
06-29-2017, 02:32 AM
I'm trying to make a script where the char writes (!Go) press enter,
Then open a travel box and need it to go until the name of the city (Thais) press in between.
How do I write that script ????

14032

HjugO
06-29-2017, 05:18 AM
I'm trying to make a script where the char writes (!Go) press enter,
Then open a travel box and need it to go until the name of the city (Thais) press in between.
How do I write that script ????

14032

You have to open notepad, sublime text or other text editor, next step is open XenoBot library from XenoBot/Data/xb.0027.(YourXBVersion).lua and find function which responsible is for using FYI Box. You can do it in two ways, maybe three:
* external LUA file with module or with while do loop
* external LUA file with walker labels
* using Walker function - one-liner scripts.

I hope I helped you :)
Cheers.

janildo88
06-30-2017, 12:03 AM
You have to open notepad, sublime text or other text editor, next step is open XenoBot library from XenoBot/Data/xb.0027.(YourXBVersion).lua and find function which responsible is for using FYI Box. You can do it in two ways, maybe three:
* external LUA file with module or with while do loop
* external LUA file with walker labels
* using Walker function - one-liner scripts.

I hope I helped you :)
Cheers.


How to do this using walker function?
Talk! Go
Then select Thais

janildo88
06-30-2017, 01:32 AM
Estou montando um script para poder viajar através do comando "!go" mas não consigo fazer com que o char selecione a cidade desejada quando abre a caixa Box. Como fazer isso?
observação: segue abaixo foto da caixa que abre quando faço o comando "!go"

Segue comando que estou usando:

function onWalkerSelectLabel(labelName)

if (labelName == '!go') then
Walker.Stop()
wait(800,1400)
Self.SayToNpc("!go")
wait(800,1400)
Self.box("Thais")
wait(800,1400)
Walker.Start()

end

end

Segue foto da caixa que abre com o comando !go:

Click image for larger version.

Name: Travel.png
Views: 0
Size: 225.7 KB
ID: 14033

__________________________________________________ __________________________________________________ _____________

I'm setting up a script to be able to travel through the "! Go" command but I can not get the char to select the desired city when the Box box opens. How do I do this?
Note: Below is a photo of the box that opens when I do the "! Go"

Here is the command I am using:

function onWalkerSelectLabel(labelName)

if (labelName == '!go') then
Walker.Stop()
wait(800,1400)
Self.SayToNpc("!go")
wait(800,1400)
Self.box("Thais")
wait(800,1400)
Walker.Start()

end

end

Here is a photo of the box that opens with the! Go command:

Click image for larger version.

Name: Travel.png
Views: 0
Size: 225.7 KB
ID: 14033