Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Crisis

Pages: 1 ... 182 183 [184] 185 186 ... 199
2746
New member introductions / Re: Intro
« on: December 27, 2013, 11:33:57 AM »
Welcome!  :D

2747
Scripting Chat / Re: A couple of questions about hiding
« on: December 27, 2013, 10:35:06 AM »
1. How script a check to see if your character is hidden? Only thing that I could really find is doing a check for a hidden flag on EUO. I want to add a hide option on a craft script but this would be used at a bank and hiding is low.

Code: [Select]
event macro 13 21
wait 11000

if H in #charStatus
{
gosub startcraft
}
return

Will this continue to try and hide until character is hidden and then move onto the crafting sub? If not, what am I doing wrong? Is there a better way to do this?
I do this in a number of scripts, here is an example using the mainloop from my Cart trainer:

Code: [Select]
;Start Mainloop
repeat
   gosub XIIxSkillCheck Cart %StartSkill
   set %CurrentSkill #RESULT
   gosub SetMap %CurrentSkill
   set %CurrentMap #RESULT
   gosub XIIxMaxWeight 0
   set %ScrollAmount #RESULT - #WEIGHT
   
   while %ToHide = yes && H notin #CHARSTATUS
      {
      event macro 13 21
      wait 11s ;<------ you can skip this if you don't plan to use another skill afterward
      }

   gosub CartCraft
   gosub TrashMap

   if #menubutton = Pause
      gosub XIIxPause
until #FALSE
; End Mainloop

In this particular example I set a veriable %ToHide in the setup portion but you should still get the point. The idea is to deal with hiding before moving on to the rest of the logic (in the setup subs I don't even give the user the option to try hiding if the skill is less than 20 unless they are human). Ok so the script will continue to try while h is not in the character status? What does the && do?

Quote
Code: [Select]
2. Using this meditation sub, where would I put in a hide event so that the character hides when meditation is done?

Don't do it in the sub, do it after you return from the sub. I tried doing it at the beginning of my crafting sub but I did it worng or something because it would try and hide after each craft attempt

X


I replied in your quote usung red  :D

2748
Scripting Chat / A couple of questions about hiding
« on: December 27, 2013, 10:05:30 AM »
1. How script a check to see if your character is hidden? Only thing that I could really find is doing a check for a hidden flag on EUO. I want to add a hide option on a craft script but this would be used at a bank and hiding is low.

Code: [Select]
event macro 13 21
wait 11000

if H in #charStatus
{
gosub startcraft
}
return

Will this continue to try and hide until character is hidden and then move onto the crafting sub? If not, what am I doing wrong? Is there a better way to do this?

2. Using this meditation sub, where would I put in a hide event so that the character hides when meditation is done?

Code: [Select]
sub CheckMana
  menu delete scriptstatus
  Menu Font BGColor Black
  menu Font Color Lime
  menu text scriptstatus 95 100 Checking Mana
  set %_test ( 100 * #mana ) / #maxmana
  if ( %_test < 35 ) || ( #mana < %mana )
  {
    gosub actionblock
    menu delete scriptstatus
    Menu Font BGColor Black
    menu Font Color Lime
    menu text scriptstatus 95 100 Meditating
    event macro 13 46 ; meditate
    set %_tlastskill #systime + 10100
    while #mana < ( 95 * #maxmana / 100 )
    {
      gosub hardwait 1
      if %_tlastskill < #systime
      {
        gosub actionblock
        event macro 13 46 ; meditate
        set %_tlastskill #systime + 10200
      }
    }
    set %_diff #systime - %_tlastskill - 9000
    if %_diff > 0
    {
      set %_diff ( %_diff / 50 ) + 1
      gosub hardwait %_diff
    }
  }
return

2749
Character skill advancement / Re: Paulonius Bowcraft Trainer 0-100 + ROT
« on: December 27, 2013, 09:49:22 AM »
Well done then! :)

I ditched everything after "set %trashbarrel #ltargetID" simply because you don't need to open the trashcan to use it but either way, problem solved!

I never thought about that, I am so use to needing containers open lol.

2750
Character skill advancement / Re: Paulonius Bowcraft Trainer 0-100 + ROT
« on: December 27, 2013, 07:11:46 AM »
I see that Paulo is searching for any container within a 2-tile radius that has a type value of BKF. Are you saying that your trash barrel has a type of BKF when you mention the "ID" being the same that the script is looking for?

I would do something like this -

Replace:

Code: [Select]
Finditem BKF G_2
For %TrashSearch 1 #FindCnt
   {
   Set #Findindex %TrashSearch
   Event Property #FindID
   If Trash in #Property && Secure in #Property
      {
      Set %TrashBarrel #FindID
      Set %TrashSearchSuccess Yes
      }
   }
If %TrashSearchSuccess <> Yes
   {
   Display A secure trash barrel was not found within reach.  Correct this and restart
   pause
   }

with:

Code: [Select]
Display Ok Select the trash barrel.
  set #targcurs 1
      while #targcurs = 1
         wait 1
      set %Trashbarrel #ltargetID

Then it will specifically use your targeted container instead of automatically looking for all containers and checking #property to see if its a trash barrel. Just another way to do the same thing without the automation.

X

That's exactly what I ended up doing so I could use the script. I mainly posted so that the author knows that it is still happening so he can edit his script. A year ago I wouldn't have known how to fix it. I added this to it.

Code: [Select]
Display Ok Select your trash barrel.
  set #targcurs 1
      while #targcurs = 1
         wait 1
      set %trashbarrel #ltargetID
      set #lobjectID #ltargetID
      set #nextcposx 800
      set #nextcposy 0
      event macro 17
      wait 20

2751
Character skill advancement / Re: Paulonius Bowcraft Trainer 0-100 + ROT
« on: December 27, 2013, 06:06:15 AM »
I am having the same problem as Spankin.

I have moved the trash barrel many times and it cannot find it. I made sure that it had the same ID as what the script was looking for which matched. I really don't know why it isn't seeing it.


2752
New member introductions / Re: Back once again
« on: September 28, 2013, 06:06:03 AM »
Welcome to SUO!

2753
Scripting Chat / Re: Question on grabbing amounts
« on: September 15, 2013, 12:32:39 PM »
That's how I have it set up now, just thinking it mat be faster to pull out exact amounts.

2754
Scripting Chat / Question on grabbing amounts
« on: September 15, 2013, 09:08:02 AM »
I am working on an inscription script and am wondering on the best way to grab an amount of regs based on the amount of something that I am making. My menu has the combo box where a spell can be chosen and there is an edit box where you can edit how many of the scroll to make. I have never coded anything that multiplies the amount of regs needed by the amount that is being made so not sure how to code it.

Here is an example of the Clumsy Scroll
Code: [Select]
sub Item1ma  ; Clumsy Scroll
    set %mana 4
    set %regs %bm , _ , %ns
    set %current QXL
    set %clumsy QXL
    set %makestr Clumsy
    set %XClick1 27    ; First Circle
    set %YClick1 90
    set %XClick2 230   ; Clumsy
    set %YClick2 70
    set %numclick 2
return

Any suggestions?

2755
Cool Links! / Re: Raptor Prank
« on: September 02, 2013, 07:52:36 AM »
That was awesome!

2756
I have the S4 and my wife has the S3, both through Sprint. We have always had good luck with Samsung phones and no problems with Sprint. We have the family plan with unlimited data and 1500 minutes a month but to be honest we rarely use more than 500 minutes. Sprint calls are free between cell phones of any carrier so you actually only pay minuted when calling landline phones. I hope this helps. :)

2757
Questing / Re: vDk's Automatic Naturalist Quest
« on: September 02, 2013, 07:37:41 AM »
P.S. I can always post my rebuild version here.

That would be awesome!

2758
Cool Links! / Re: Pretty Amazing pictures of RL Castles..
« on: August 18, 2013, 07:45:07 AM »
Aberdeen City and Shire in Scotland has perhaps the highest concentration of castles in any one place.. known as the Castles of the Mar .. with over 300 castles in a relatively small area

I bet Ice Island gives it a good run for the most castles  :P

2759
Gold Farming / Re: TrailMyx's Full Auto Fisherman
« on: August 09, 2013, 06:54:52 AM »
ROT is not the only difference - how about poles, daggers, scissors with usages etc

I kind of thought that was a given being that it was Siege. Maybe I misunderstood his question. I thought he was asking about the difference between using FAF to train on prodo shards and Siege.

I kept 5 poles on me and extra ones in the hold. I had already added extra bags and the high seas fish to the script so cutting fish wasn't a big deal cause the only ones that got cut up were the legacy fish until 90 and the big fish under a certain weight. Daggers lasted me a while on Siege. I never looked at the scissors and didn't realize that they had uses on them but I don't remember it being a problem. Poles were the only things that I went through a lot.

2760
It miss and match,  you need to be careful of where you recall. Lot populated area help.

Exaxtly, a guy on Chessy is uses the zento bank for his mining and lj scripts and it is completely obvious that he is scripting. He is gone from time to time so wondering if he has been caught here and there. I personally like T2A banks and the RC bank since there are rarely people there. Zento is used more than people think.

Pages: 1 ... 182 183 [184] 185 186 ... 199