Page 12 of 14

Re: Ancient Treasures waypoint

Posted: Sat Feb 04, 2012 10:48 pm
by lisa
K tweaked some things, try V 3.3

Re: Ancient Treasures waypoint

Posted: Sun Feb 05, 2012 12:25 am
by kuripot
im lost... that is onload only that need to put in minitreasure waypoint???

at_model is enough for that??
"Model file to remove blue portals in Ancient Treasure"
or need other model file??

Re: Ancient Treasures waypoint

Posted: Sun Feb 05, 2012 12:27 am
by kuripot
or that onload is only for "juin's waypoint" to work??

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
   <!-- #  1 --><waypoint x="4230" z="4134" y="36">flyoff() teleportToWP()    </waypoint>
   <!-- #  2 --><waypoint x="4229" z="4135" y="36">teleportToWP() player:turnDirection(1);    </waypoint>
   <!-- #  3 --><waypoint x="4230" z="4136" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4231" z="4137" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4232" z="4138" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4233" z="4139" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4234" z="4140" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4235" z="4141" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4236" z="4142" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4237" z="4143" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4238" z="4144" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4239" z="4145" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4240" z="4146" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4241" z="4147" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4242" z="4148" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4243" z="4149" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4244" z="4150" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4245" z="4151" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4246" z="4152" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4247" z="4153" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4248" z="4154" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4249" z="4155" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4250" z="4156" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4251" z="4157" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4252" z="4158" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4253" z="4159" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  3 --><waypoint x="4254" z="4160" y="36">teleportToWP() player:turnDirection(1);   </waypoint>
   <!-- #  4 --><waypoint x="4191" z="4204" y="0">      keyboardPress(key.VK_SPACE);  </waypoint>
</waypoints>

??

Re: Ancient Treasures waypoint

Posted: Sun Feb 05, 2012 12:48 am
by lisa
You don't need any model files at all.

Just get to the minigame and start it, when it's finished it just goes to sleep.

This is still very much testing, so options to load other characters or load other WP can be added later.

Just get to the NPC and run it.

Re: Ancient Treasures waypoint

Posted: Sun Feb 05, 2012 11:51 am
by rock5
Here's an update to lisas version with a few fixes.
  • 1. It does come through the floor properly now.
    2. It doesn't come through the floor when collecting candles.
    3. Did a bit of work on chest collection but I'm still not 100% on it. It might sometimes get stuck. I did some last minute changes but ran out of characters to test with.

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 3:28 am
by Rickster
Hi, I tried v3.31 of AT.xml and here is my feedback:
  1. After entering the mini game, the character starts to fly in the air
  2. turning a little right in steps of 1 degree i think
  3. starts to port a little bit through the ini, outside the usual walls
  4. ports under the floor
  5. ports around the ini under the floor
  6. when reaching elementals it does not use them
  7. sticks its head out of the floor ;) ... got aggroed, but continued porting and lost aggro
  8. reached the inner room, without any candle buff, no chests are in the room
  9. moved above floor, in the inner ring, outside the inner room, got aggroed and .... finaly died ;)
I tried to understand what you are doing in the wp file, but I got lost ;)
So thanx for your work and go ahead. I hope the above can be a little helpful.

Ric

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 4:27 am
by lisa
Made me laugh =)

Some people have been having issues with the character popping its head up when clicking candle, not sure why. It has been working just fine for me.

Maybe a waypoint deviation in profile?
Mine is always set to 0

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 5:15 am
by Rickster
no, deviation set to 0

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 5:52 am
by silinky
yeah, i get that too, and not onkly with 1 char, but all. they just go back in the room, get aggroed and i have to continue manually.
when i will get home i will try to fix it. if the developers cannot get this error, they cannot fix it either, so it is up to us, users :lol:

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 6:28 am
by rock5
Before 3.31 it would go forward a bit just before clicking the candle. If facing up, it's possible it would go up. 3.31 goes left-right instead of forward. I don't see why it would go up unless the candles were out of range but they aren't at those coordinates, unless you get different coordinates than everyone else.

Glad to hear no one had issues going through the floor when it's supposed to.

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 6:51 am
by rock5
I just reread the above post. Sounds like it worked correctly except for not clicking the candles.

Are you guys using German clients by any chance?

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 7:21 am
by Germangold
i never tried this "undergoing" version
i use the german client and a specific modified version for AT, but since 495 it wont work for my anymore

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 7:29 am
by lisa
we use

Code: Select all

	local elemental = GetIdName(113614) -- Elemental Candstick
that should work in german, hmm or haven't we done the arg4 to string.find yet ?

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 8:24 am
by rock5
lisa wrote:we use

Code: Select all

	local elemental = GetIdName(113614) -- Elemental Candstick
that should work in german, hmm or haven't we done the arg4 to string.find yet ?
I have it as not being committed yet.

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 8:39 am
by Rickster
rock5 wrote:I just reread the above post. Sounds like it worked correctly except for not clicking the candles.

Are you guys using German clients by any chance?
yes, its not clicking the candels and yes, german client here.

Sine now I used this to get item names:

Code: Select all

itemname = RoMScript("TEXT('Sys[itemid]_name')");
whats the difference to the method you use?

Code: Select all

itemname = GetIdName([itemid])

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 8:51 am
by rock5
Rickster wrote:whats the difference to the method you use?
RoMScripts can take as much as 500ms to run. GetIdName is one of the memory functions and gets ids names from memory so is nearly instantanious.

Back to your problem, as a german user you have to keep aware of all the names that have hyphens in them "-". Hyphens have a special meaning when using "string.find" or "string.match" functions and causes them to not work.

We are about to commit a change to the bot so this wont be a problem anymore with target_object and target_NPC etc.

In the mean time try just changing it to

Code: Select all

local elemental = "Elementar.Kerzenleuchter"
In "string.find" and "string.match" functions "." means any character.

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 10:00 am
by Germangold
the "-" is causing problems with german client also in
AcceptByQuestname..
had do sort out some of my dailys routines

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 11:09 am
by rock5
Germangold wrote:the "-" is causing problems with german client also in
AcceptByQuestname..
had do sort out some of my dailys routines
That's strange. It shouldn't.

I even tested.

Code: Select all

Command> print(FindNormalisedString("Keiler-Hauer sammeln","Keiler-Hauer sammeln
"))
true
As you can see it returned true. This is the function that the QuestByName functions use.

The only thing I can think of is the names are gotten 2 different ways. Is it possible the GetIdName doesn't match the RoMScript("GetQuestNameByIndex(1, "..i..")")?

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 11:28 am
by rock5
Did some testing in german. Turns out selecting the quests was not the problem. It was when it went to check the quest status. I actually fixed this when I first tidied up the code for commiting but when I went to commit something else first, this little change got lost.

Just have to change line 1215 of functions to.

Code: Select all

		return RoMScript("igf_questStatus(\""..NormaliseString(_questname).."\")")
I'll add it to my next commit.

Re: Ancient Treasures waypoint

Posted: Mon Feb 06, 2012 3:34 pm
by Germangold
Great :D

Danke schön