Hi,
I have tried to make a chain so my all the daily stuff would be done by the bot with one single script.
I didnt find any post that is enough detailled so I could succeed..
I would like my character to do: survival game, then course of terror, then Ancient treasure, then goblins and then he would go to xaviera to do butterflies.
I wanted to use the teleport function so my character would automatically go to the nearest npc portal and get near the other NPC to do the next script.
I was wondering I someone could help me so I could begin this projet.. ?
thanks !
Script chains with teleport function...
Re: Script chains with teleport function...
Look inside the script files for malatina etc.
You will find an option: "When_Finished" in all of the mini game scripts.
You can specify a script name that will be executed after finishing this mini game.
Build your own script that will go to AT and put the name for it into "cot_tele".
Again build your own script that will go from AT to goblin and put this name into "AT",
and finally the script that will go to Xaviera.
I will help you with the first step, a script that will go from malatina to AT:
You will find an option: "When_Finished" in all of the mini game scripts.
You can specify a script name that will be executed after finishing this mini game.
Build your own script that will go to AT and put the name for it into "cot_tele".
Again build your own script that will go from AT to goblin and put this name into "AT",
and finally the script that will go to Xaviera.
I will help you with the first step, a script that will go from malatina to AT:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
local empties = inventory:itemTotalCount(0)
if 10 > empties then
-- Wait for user to make some space in inventory.
cprintf(cli.yellow,"Not much space left in inventory. Are you sure you want to continue with only %d spaces left?\n",empties)
player:sleep()
end
if 30 > inventory:itemTotalCount(203038) then
print("Not enough Phirius Token Coins.")
logentry = "Not enough Phirius Token Coins."
player:sleep()
end
startGMDetect()
</onLoad>
<!-- # 1 --><waypoint x="4867" z="-1895" y="109"> </waypoint>
<!-- # 2 --><waypoint x="5001" z="-1911" y="103"> </waypoint>
<!-- # 3 --><waypoint x="5220" z="-2208" y="103"> </waypoint>
<!-- # 4 --><waypoint x="5281" z="-2207" y="103">
player:target_NPC("Kat Rojo");
AcceptQuestByName("Proceed to the Scar of Despair Camp",114087); yrest(300);
player:target_NPC("Kat Rojo");
sendMacro("ChoiceOption(2);");
yrest(300);
waitForLoadingScreen();
loadPaths("at");
</waypoint>
</waypoints>
-
- Posts: 17
- Joined: Sat Nov 10, 2012 5:29 pm
Re: Script chains with teleport function...
Thank you very much Jandrana!
Now got the AT to gob working
P.S. When I use worldtraveler function, I can't directly put takemeto("Silverfall"); because my character would just tp to obsidian, then back to ayen, then back to obsidian then back to ayen... Solution was to write it in a sequence. But might be a bug in worldtraveler function.
I use it like this now:
For the gob to dailies script, I was not sure of what I was doing...
As I did not find any Goblin script with the whenfinished option, I took another gob script and I added loadPaths("gobdailies"); at the end...should work. I will test when I'll get home.
Now got the AT to gob working
P.S. When I use worldtraveler function, I can't directly put takemeto("Silverfall"); because my character would just tp to obsidian, then back to ayen, then back to obsidian then back to ayen... Solution was to write it in a sequence. But might be a bug in worldtraveler function.
I use it like this now:
Code: Select all
takemeto("ObsidianStronghold");
takemeto("VaranasSnoop");
takemeto("Silverfall");
</waypoint>
<!-- # 1 --><waypoint x="-5892" z="3042" y="572"> </waypoint>
<!-- # 2 --><waypoint x="-5762" z="3367" y="571"> </waypoint>
<!-- # 3 --><waypoint x="-5860" z="3325" y="572">
loadPaths("Malatinas_Goblins_Wp");
</waypoint>
</waypoints>
As I did not find any Goblin script with the whenfinished option, I took another gob script and I added loadPaths("gobdailies"); at the end...should work. I will test when I'll get home.
-
- Posts: 17
- Joined: Sat Nov 10, 2012 5:29 pm
Re: Script chains with teleport function...
Almost done !!
Now got a little bug.
Player teleports to the right place, but won't move after tp (supposed to go to wp 3)...
Now got a little bug.
Player teleports to the right place, but won't move after tp (supposed to go to wp 3)...
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
startGMDetect()
</onLoad>
<!-- # 1 --><waypoint x="-5762" z="3367" y="571"> </waypoint>
<!-- # 2 --><waypoint x="-5892" z="3042" y="572">
takemeto("Rorazan");
NPCTeleport("Snoop the Stubborn",1)
yrest(300);
waitForLoadingScreen();
player:mount();
</waypoint>
<!-- # 3 --><waypoint x="-7803" z="-16368" y="742"> </waypoint>
<!-- # 4 --><waypoint x="-7834" z="-15453" y="757"> </waypoint>
<!-- # 5 --><waypoint x="-7599" z="-15301" y="750"> </waypoint>
<!-- # 6 --><waypoint x="-6923" z="-15299" y="695"> </waypoint>
<!-- # 7 --><waypoint x="-6283" z="-15209" y="613"> </waypoint>
<!-- # 8 --><waypoint x="-5775" z="-15152" y="628"> </waypoint>
<!-- # 9 --><waypoint x="-5461" z="-15837" y="667"> </waypoint>
<!-- # 10 --><waypoint x="-5474" z="-16313" y="673"> </waypoint>
<!-- # 11 --><waypoint x="-5800" z="-16814" y="674"> </waypoint>
<!-- # 12 --><waypoint x="-5689" z="-17556" y="673"> </waypoint>
<!-- # 13 --><waypoint x="-5642" z="-17622" y="672"> </waypoint>
<!-- # 14 --><waypoint x="-5617" z="-17735" y="673"> </waypoint>
<!-- # 15 --><waypoint x="-5055" z="-18038" y="676"> </waypoint>
<!-- # 16 --><waypoint x="-3832" z="-17779" y="679"> </waypoint>
<!-- # 17 --><waypoint x="-3562" z="-17425" y="770"> </waypoint>
<!-- # 18 --><waypoint x="-3157" z="-17898" y="834"> </waypoint>
<!-- # 19 --><waypoint x="-3116" z="-18030" y="836"> </waypoint>
<!-- # 20 --><waypoint x="-2935" z="-18026" y="836" type="RUN"></waypoint>
<!-- # 21 --><waypoint x="-2826" z="-18149" y="835"> </waypoint>
<!-- # 22 --><waypoint x="-2657" z="-17959" y="836">
loadPaths("dailies");
</waypoint>
</waypoints>
Re: Script chains with teleport function...
Delete the . Rock's NPC teleport already does a waitForLoadingScreen() .
In your script your char waits at the teleporter for a loading screen after your char has already ported
Code: Select all
waitForLoadingScreen()
In your script your char waits at the teleporter for a loading screen after your char has already ported
-
- Posts: 17
- Joined: Sat Nov 10, 2012 5:29 pm
Re: Script chains with teleport function...
Waaa thanks
Seems to work perfectly
Seems to work perfectly
Who is online
Users browsing this forum: Google [Bot] and 0 guests