Author Topic: Finding the Queen  (Read 5060 times)

0 Members and 1 Guest are viewing this topic.

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Finding the Queen
« on: March 10, 2015, 08:19:30 PM »
0
Ok, I am using EN's snippet for finding the queen

Code: [Select]
gosub ENs_findAntQueen
halt

sub ENs_FindAntQueen
  If %QueenLoopValueMax = N/A
    gosub SetupQueenLoopValues
  set !queenfound #False
  set !Loopvalue 0
  repeat
    gosub queenmove !loopvalue
    gosub findqueen
  until #result   ; queen found
  wait 5
Return

sub FindQueen
  set #result #false
  finditem OHB G_7
  If #Findcnt > 0
    {
    set !exit 15
    Repeat
      finditem OHB G_7
      Event Pathfind #findx #findy #findz  ; the queen
      wait 1
      set !exit !exit -1
      finditem OHB G_2
    Until !exit < 1 || #findcnt > 0
    set #result #findcnt > 0
    }
Return #Result

Sub QueenMove
    set !x %QueenLoopValuex . %1
    set !y %QueenLoopValuey . %1
    set !z %QueenLoopValuez . %1
    set !Exit 20
    Repeat
      set !Exit !exit - 1
      event pathfind !x !y !z
      wait 1
    Until ( #Charposx = !x && #charposy = !y ) || !exit < 1
    set !loopvalue !loopValue + 1
    If !loopvalue >= %QueenLoopValueMAx
      set !LoopValue 1
REturn

sub SetupQueenLoopValues
  gosub AddQueenloopvalue 5805 1908 3
  gosub AddQueenloopvalue 5803 1896 2
  gosub AddQueenloopvalue 5796 1889 2
  gosub AddQueenloopvalue 5788 1881 2
  gosub AddQueenloopvalue 5779 1872 0
  gosub AddQueenloopvalue 5770 1872 1
  gosub AddQueenloopvalue 5761 1876 0
  gosub AddQueenloopvalue 5755 1885 0
  gosub AddQueenloopvalue 5752 1895 2
  gosub AddQueenloopvalue 5756 1905 2
  gosub AddQueenloopvalue 5759 1910 5
  gosub AddQueenloopvalue 5769 1919 1
  gosub AddQueenloopvalue 5776 1924 3
  gosub AddQueenloopvalue 5780 1931 1
  gosub AddQueenloopvalue 5788 1933 4
  gosub AddQueenloopvalue 5796 1925 2
  gosub AddQueenloopvalue 5805 1915 3
  gosub AddQueenloopvalue 5810 1918 1
  gosub AddQueenloopvalue 5806 1925 3
  gosub AddQueenloopvalue 5799 1930 2
  gosub AddQueenloopvalue 5794 1926 4
  gosub AddQueenloopvalue 5797 1918 3
  gosub AddQueenloopvalue 5790 1913 3
  gosub AddQueenloopvalue 5781 1907 2
  gosub AddQueenloopvalue 5772 1904 1
  gosub AddQueenloopvalue 5764 1897 3
  gosub AddQueenloopvalue 5769 1889 1
  gosub AddQueenloopvalue 5775 1887 4
  gosub AddQueenloopvalue 5782 1894 1
  gosub AddQueenloopvalue 5777 1899 20
  gosub AddQueenloopvalue 5784 1900 0
  gosub AddQueenloopvalue 5789 1906 0
  gosub AddQueenloopvalue 5795 1912 4
  gosub AddQueenloopvalue 5801 1918 2
  gosub AddQueenloopvalue 5803 1916 5
  gosub AddQueenloopvalue 5807 1911 3
Return

sub AddQueenLoopValue
  if %QueenLoopValueMAx = N/A
     set %QueenLoopValueMax 0
  set %QueenLoopValueMAx %QueenLoopValueMax + 1
  set %QueenLoopValuex . %QueenLoopValueMax   %1
  set %QueenLoopValuey . %QueenLoopValueMax   %2
  set %QueenLoopValuez . %QueenLoopValueMax   %3
Return

I had to use goto commands to get to the hole that he uses as his starting point as mine recalls in and runs through the Trinsic hole and then related holes to get there but I have one other question. I need to drop the seed onto the matriarch. His snippet has it stop on the queen, does this snippet follow the queen if she moves or does it stop once it finds here? I cannot tell I need to add in another sub to drop the seed onto her to start the quest if his snippet stops there and if it doesn't I guess I need to add it in??

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Finding the Queen
« Reply #1 on: March 11, 2015, 10:45:49 AM »
0
IT stop at the queen,  You need to add a new gosub to follow and drop a seed.     It snippet is make to start front the hold at bottom right.   

Offline Ketchup

  • Full Member
  • ***
  • Posts: 138
  • Activity:
    0%
  • Reputation Power: 3
  • Ketchup has no influence.
  • Respect: +18
  • Referrals: 0
    • View Profile
Re: Finding the Queen
« Reply #2 on: March 11, 2015, 12:31:49 PM »
0
You working on a powder script Crisis?

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #3 on: March 11, 2015, 01:21:34 PM »
0
Yes, I am trying anyways lol.

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Finding the Queen
« Reply #4 on: March 11, 2015, 01:27:20 PM »
0
I started on one...  didn't get far.  I could always resurrect it or give you what i have. NOt sure what all i did on it though...
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #5 on: March 11, 2015, 03:36:52 PM »
0
I started on one...  didn't get far.  I could always resurrect it or give you what i have. NOt sure what all i did on it though...

That would be great!

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Finding the Queen
« Reply #6 on: March 11, 2015, 04:02:13 PM »
0
So I can't find my most recent of it.. but this is where I made it... looks to be as far as you did.. LOL

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Snow's BoS Quester.txt
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #7 on: March 11, 2015, 07:03:29 PM »
0
I am trying to drop a seed onto the matriarch queen. I know I am way off (yeah I tested it lol) so how far off am I?

Code: [Select]
sub dropseed
finditem %matriarch G_2
If #Findcnt > 0
{
exevent drag %seed
exevent dropc %matriarch
wait 5
gosub acceptquest
}
return

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Finding the Queen
« Reply #8 on: March 11, 2015, 07:58:45 PM »
0
i think it has to do with that the Queen is not a container.... I will have to think about this when I am lucid
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #9 on: March 12, 2015, 02:31:04 AM »
0
I thought about that but I also thought that since it was only dropped on the queen it might work. Well I guess I was more hoping it would work.

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #10 on: March 12, 2015, 05:58:45 PM »
0
Okay, this little snippet didn't work either but I think I am on the right path

Code: [Select]
set %seed PDF
set %matriarch OHB

wait 5
gosub feed

sub feed

   finditem %seed C_ , %container
   wait 10
   if #findkind > 0

   exevent drag #findid
   wait 20
   exevent dropc %matriarch
   wait 1s

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Finding the Queen
« Reply #11 on: March 12, 2015, 07:01:04 PM »
0
You need to get the matriarch's id before that


Finditem %Matriarch G_2
Exevent dropc #Findid
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #12 on: March 12, 2015, 07:17:55 PM »
0
I also found out that I had container instead of backpackid but unfortunately it is still not working :(

Code: [Select]
set %seed PDF
set %matriarch OHB

wait 5
gosub feed

sub feed

   finditem %seed C_ , %backpackid
   wait 10
   if #findkind > 0
   {
   exevent drag #findid
   wait 20
   Finditem %matriarch G_2
   Exevent dropc #Findid
   wait 1s
   }

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Finding the Queen
« Reply #13 on: March 12, 2015, 07:50:54 PM »
0
%backpackid should be #backpackid
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3025
  • Activity:
    2.2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Finding the Queen
« Reply #14 on: March 13, 2015, 02:49:38 AM »
0
Thanks Tidus And Manwinc, I made both of those changes and still had no luck. I knew there had to be something else I was missing in addition to those things.

I got looking at
Code: [Select]
if #Findkind > 0 and was wondering if it should be findcnt because it was looking for a count of the item so I changed it to
Code: [Select]
if #findcnt > 0 and it worked.

I had also added in
Code: [Select]
set %backpackid XXXXXX just in case it needed that. I didn't think it should but I wasn't sure. Do I need that in there or is that something that I can take out?

so my sub now looks like
Code: [Select]
sub dropseed

   Finditem %seed C_ , #backpackid
   wait 10
   if #Findcnt > 0
   {
   Exevent drag #Findid
   wait 10
   Finditem %matriarch G_2
   Exevent dropc #Findid
   wait 1s
   }
return

This will be set at the beginning of the script

Code: [Select]
set %seed PDF
set %matriarch OHB
set %backpackid QNVOUND

I am not sure why I named it feed originally other than when I was thinking about it not working because of the npc not being a container, I started thinking that dropping the seed on the queen would be similar to feeding a pet. I just caught it now that I had named the sub feed lol.

One more question along with the backpackid

Do I need the { } around the action of dropping the seed? I was not sure but it seemed like I should so I added them in there but on other drag and drop things I have looked at they are not there.
« Last Edit: March 13, 2015, 02:57:04 AM by Crisis »

Tags: