Author Topic: Casca's Fisher and Trainer  (Read 26464 times)

0 Members and 1 Guest are viewing this topic.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #15 on: April 11, 2011, 11:19:19 AM »
+1
Fixed it up a bit, try the one you just posted again tgambit65.

Lemme know if it's working.

Did you mean you edited the code in my post? I did a copy and paste of it again but, no change. Pause button comes up fine but, when pushed it does not pause the script.

Thanks for taking the time to help out though. Let me know what else we can do.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #16 on: April 11, 2011, 11:22:09 AM »
+1
Does the Pause button change color?
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #17 on: April 11, 2011, 11:23:08 AM »
+1
Well I see it depress but no it remains the same color

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
And while I got you looking at this thread Cerveza
« Reply #18 on: April 11, 2011, 11:41:34 AM »
+1
I know this is not your script and nor is it mine. But, could you take a look and tell me if you see any reason why I can't get the script to accept the new trash container I listed? I put the correct Item ID for the trash container where my "Trash Rune" is located but it doesn't see it. I have looked for a trash container that matches the one listed in the script but, couldn't find one to test if it works with that one.

Any help here would be awesome too!

Thanks man

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #19 on: April 11, 2011, 11:47:07 AM »
+1
Does the rune have the word "Trash" in it?

What "TYPE" is it? Not what is the ID from it, what TYPE? It'll be a 3 letter code. Use THIS SCRIPT if your unsure how to get the TYPE.

XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #20 on: April 11, 2011, 12:00:36 PM »
+1
Does the rune have the word "Trash" in it?

What "TYPE" is it? Not what is the ID from it, what TYPE? It'll be a 3 letter code. Use THIS SCRIPT if your unsure how to get the TYPE.



Yes the run does have the word trash on it. The script recalls to the trash/bank location find. I recall in right next to the container. The "TYPE" was changed to the one I am trying to use in the code I posted. IKF is the Type. I used both XIIxOveR's SuperStuff Info stuff utility and also looked in Last Action Objecttype in easy uo itself when opening the container. Both methods show the same item type.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #21 on: April 11, 2011, 12:10:18 PM »
+1
You can ditch the underscore after the trash IKF, you only need that if you are going to join more then one into a variable.

If his works with "BUD" then yours should work with "IKF", should be the same thing. Do you have to actually open your trash container to deposit something into it or can you just drop it on the container? How about his "BUD" item, is it the same way?

For the pause issue... start a new tab in EUO and put in this:

Code: [Select]
gosub showEUOMenu1

repeat
if #MENUBUTTON = pause
  gosub pause_script
wait 1
until #false

sub pause_script
  set %script paused
  set #MENUBUTTON N/A
  menu delete pause
  menu Font BGColor Red
  menu Button pause 0 0 115 45 UnPause
  while %script = paused
  {
    if #MENUBUTTON = pause
    {
      set %script unpaused
      menu delete pause
      menu Font BGColor Lime
      menu Button pause 0 0 115 45 Pause
      set #MENUBUTTON N/A
    }   
  }
return

;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title CP
menu Window Color BtnFace
menu Window Size 113 44
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 16
menu Font Style
menu Font Color WindowText
menu Font BGColor Lime
menu Button pause 0 0 115 45 Pause
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------

See if that toggles.

XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
For the pause issue... start a new tab in EUO and put in this:
« Reply #22 on: April 11, 2011, 12:15:18 PM »
+1
Yes when run on it's own it toggles fine from paused to unpause and back again.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Item type BUD
« Reply #23 on: April 11, 2011, 12:22:29 PM »
+1
I could never find a trash container with that item TYPE. So I could not test it myself and thus have no idea if it worked in the first place.

The container is one you can just drop stuff on.

It makes sense that if it worked with BUD it should work with the new Item Type. I was thinking the same thing so spent some time to find a similar item type. My guess is that it does not work correctly. Although Outlaw Wales said he tested the script and never mentioned anything about it not working.

After recalling in it puts up a message about not near the container.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #24 on: April 11, 2011, 12:29:35 PM »
+1
Ok, try your version again, put in a couple waits and increased the range to find your trash... Are you recalling within 2 steps of it? Is it on your steps?

Try it again and give the pause button a try, you may have to wait for the "cycle" to finish before it will pause. That might have been the issue the whole time with the pause.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #25 on: April 11, 2011, 12:44:20 PM »
+1
Ok, try your version again, put in a couple waits and increased the range to find your trash... Are you recalling within 2 steps of it? Is it on your steps?

Try it again and give the pause button a try, you may have to wait for the "cycle" to finish before it will pause. That might have been the issue the whole time with the pause.

Ok tried again. Now the recall is broken though. Stops at the targeting cusor for the rune. I noticed there is a message for not seeing the rune in the script but, that does not show. If you target the rune manually it recalls to the bank/container and still gives this message. "you are either not near a bank trash bin or it's the wrong type, add the type up top"

Offline Outlaw Josey Wales

  • Full Moon Rising!
  • Hero Member
  • *
  • Posts: 595
  • Activity:
    0%
  • Reputation Power: 7
  • Outlaw Josey Wales has no influence.
  • Gender: Male
  • Respect: +59
  • Referrals: 2
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #26 on: April 11, 2011, 12:45:31 PM »
+1
I could never find a trash container with that item TYPE. So I could not test it myself and thus have no idea if it worked in the first place.

The container is one you can just drop stuff on.

It makes sense that if it worked with BUD it should work with the new Item Type. I was thinking the same thing so spent some time to find a similar item type. My guess is that it does not work correctly. Although Outlaw Wales said he tested the script and never mentioned anything about it not working.

After recalling in it puts up a message about not near the container.
Mate i used the trash barrel in tokuno i set my id for it worked like charm had no issues except the ones i expressed about pause button or either haveing it kill the serps

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Pause
« Reply #27 on: April 11, 2011, 12:58:17 PM »
+1
When I tested again he pause menu still pops up but, does not toggle. I have waited a while to see if it would end a cycle. For this to be helpful though we would need to pause the script right away or it loses it's purpose.


Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Casca's Fisher and Trainer
« Reply #28 on: April 11, 2011, 01:05:17 PM »
+1
Ok, well, good luck. I don't fish and won't ever, so no way for me to test it further.

The toggle sub works. It appears to be setup correctly. I made no changes to your script other then to include a couple waits (one before trying to find the trash barrel) so there was nothing that would alter anything to do with recalling.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline tgambit65

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • tgambit65 has no influence.
  • Respect: +20
  • Referrals: 5
    • View Profile
Finally paused
« Reply #29 on: April 11, 2011, 01:07:09 PM »
+1
The scriipt finally paused when it had to move the boat for fish not biting.

Tags: Fishing  training