PDA

View Full Version : Script open BP and waypoint stand



waderrtk
02-01-2016, 05:31 PM
Hello. I need better script lua for close all bps, open main bp, open blue bp, open red bp and minimize all of them.

I've got something like this and its not working


local MainBP = 10327
local ItemBP = 2869
local GoldBP = 2867


elseif (labelName == "ResetBp") then
Walker.Stop()

Container.Close(ItemBP)
wait(1000)
Container.Close(GoldBP)
wait(1000)
Container.Close(MainBP)
wait(1000)
Container.GetFirst():OpenChildren(MainBP)
wait(1000)
Container.GetFirst():OpenChildren(ItemBP)
wait(1000)
Container.GetFirst():OpenChildren(GoldBP)
wait(1000)
Container.GetByName(MainBP):Minimize()
wait(1000)
Container.GetByName(ItemBP):Minimize()
wait(1000)
Container.GetByName(GoldBP):Minimize()
wait(200)
if (HideEquipment) then
Client.HideEquipment()
wait(1000)
end
Walker.Start()
end

The second thing is about waypoints.
I am going to make script for Laguna Island. When i am standing on TORTOISE with teleport i use "Stand North" and he is walking into TP and TPing me to Island but after TP waypoints are stop. Why? How to repair it.


Ohh i almost forgot. Can some1 give me script to follow "nick npc" and then saynpc "hi, travel, yes"
I am usting something like this


elseif (labelName == "TravelGo") then
setWalkerEnabled(false)
delayWalker(5000)
Self.Say("hi")
sleep(math.random(700, 1400))
Self.SayToNpc("peg leg") -- Tutaj wpisz wyspe na ktora sie udajesz.
sleep(math.random(300, 1000))
Self.SayToNpc("yes")
setWalkerEnabled(true)
end

Please help me, thank you very much!
When i finish it i will share it after all.

waderrtk
02-01-2016, 06:53 PM
I found script to follow npc.
Share:


elseif (labelName == "Travel") then
print("TEXT ON SCREEN")
Walker.Stop()
Creature.Follow("NPC-NAME")
wait(2000,2500)
Self.SayToNpc({"hi", "TRAVEL-TO", "yes"}, 65)
wait(1000,1500)
Walker.Start()

Oscagi
02-01-2016, 07:09 PM
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "OpenAll") then
setWalkerEnabled(false)
Self.CloseContainers()
Self.OpenMainBackpack(true):OpenChildren({ItemBP, true}, {GoldBP, true})
Container.GetLast():Minimize()
setWalkerEnabled(true)
end
end


And about the teleport use advanced waypoints.

waderrtk
02-01-2016, 08:27 PM
Advanced waypoints using Enter Teleport - working 100%. Thank you very much. Now i'll test ur script with bps!
I think i have got a little problem with withdraw gold. Script isnt withdrawing all needed money to buy potions. He is doing it couple times in small parts and sometimes he took too much money. Ill check this later

#EDIT
So i checked your script with reset bps and its not working. I dont know why bro wanna see on priv whole script? Maybe i did wrong waypoints... i made "stand" and next laber with name "ResetBP" and i changed in ur script to this label name.

waderrtk
02-03-2016, 05:56 PM
Still problem with reopen bps!

Merre
02-04-2016, 01:45 AM
setWalkerEnabled(false)
Self.CloseContainers()
wait(Self.Ping()+850)
Self.OpenMainBackpack(true):OpenChildren({Item.Get ID(ItemBP),true},{Item.GetID(GoldBP),true})
wait(Self.Ping()+850)
setWalkerEnabled(true)

waderrtk
02-04-2016, 07:42 PM
Doesn't work ; /