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 - vanzelus

Pages: [1] 2
1
Hi C2,

First, thanks for an awesome script.

Second, I have a question. I ran into a minor problem when running the script. The timer between bandy is not long enough for the char to successfully applying the current bandy before he's applying the next one. So basically the character is just wasting bandy and not gaining skill. How do I adjust the wait time so that the current bandy is applied before the next one is used?

Thanks

2
Scripting Chat / Re: Please help with my auto discord script snippet.
« on: June 05, 2014, 08:41:37 AM »
Quote
I know you weren't asking about this but, for starters, you should consider changing your healing to targeting self instead of click location. I was also unsure about your use of cmppix, totally unnecessary.

Thanks for your respond 12x.  The cmppix snippet is actually for pet healing; i know i can set #ltargetid as pet id and use last target to heal but was lazy and decided to just use the click location instead lol.  But since you're touching on this topic as well, I want to ask a tangent question.  How do you write a simple script that would drag pet's healthbar to a predetermined x y coordinate?  I looked at a lot of script on easyuo on how to do this and they all don't seem to have a concrete answer or just a bit too much code.  Would this example work?

Code: [Select]
set %pet #ltargetid
execevent drag #ltargetid
conposx 1412
contposy 715

Don't dock me too much for this, I just pulled this out of my head without looking up all necessary codes.  I just want a simple code, not anything complex, to pull pet's healthbar to a predetermined location without having to drag it by hand every time.  Thanks again for your input.

3
Scripting Chat / Please help with my auto discord script snippet.
« on: June 04, 2014, 11:21:46 AM »
Hi,

Am trying to get this script snippet to scan the journal so that when disco fails it'll loop back and try again but if disco succeeds it'll stop trying to disco the target.  I got the first part to work but the second part when disco succeeds the script won't stop and continue to disco the target even though the target is already discorded.  I'm not well versed in scanjournal so maybe that's where my problem is.  Please advise; again the goal is to keep looping when disco failed but stop looping when disco succeeds.  Thanks.

Code: [Select]
Set %discord #false
heal:
If #FINDCNT > 0 && #HITS > 81 && #MANA > 50 && %PETS_KILL = #TRUE && %Cast_Wait_Timer <= #sCnt2
      {
        cmppix 1 f
        {
          Event macro 15 28 ; cast Greater Heal
          Target 5s
          click 1412 736
          wait 10
        }
      }
If #FINDCNT > 0 && %PETS_KILL = #TRUE && %DISCORD = #FALSE
      {
        SET #LTARGETID %TARGET_FOUND
        Event macro 13 15 ; use skill Discordance
        Target 5s
        Event macro 22 0 ; last target
        scanjournal 1
          if fail in #journal
          {
            deleteJournal
            wait 2s
            goto heal
          }
          if another_skill in #journal
          {
            deleteJournal
            wait 2s
            goto heal
          }
          if your_target's_strength in #journal
          {
            deleteJournal
            Set %DISCORD #TRUE
            wait 1s
            goto heal
          }
          if that_creature_is_already_in_discord in #journal
          {
            deleteJournal
            Set %DISCORD #TRUE
            wait 1s
            goto heal
          }
      }

4
Scripting Chat / Re: How to exit out of a cure sub when mob is found.
« on: January 09, 2014, 06:29:40 AM »
Some other things that always helped me figure out what was going on in a script...

1) Set up your own variable list...   aka...  Select Tools --> Manage Variable list   or simply Variable Dump if you want to see the state of your variables at the time of the dump...  I often insert a pause at the appropriate place and then do a Var dump to check a certain variable.   With "Manage Variable list"   I'll do something like

\USER      which creates your own little "USER" section on the right panel of EUO window where all the variables are..   and then I'll simply add what variables I'm interested in...

\USER
%A
%B
%TEST

etc.....

2)  F7   !!!  Single stepping through a script.  I'll use a pause so that in longer scripts I can simply click play and it will pause at the right spot and then I can single step through stuff with F7 to see what's going on.   Hope that helps some if you already didn't know.

Now I do, thanks :)

5
Scripting Chat / Re: How to exit out of a cure sub when mob is found.
« on: January 08, 2014, 06:10:17 PM »
 :o ah that's what it is, no wonder why it was not working when I test it.  Thanks alpha  :).

6
Scripting Chat / How to exit out of a cure sub when mob is found.
« on: January 08, 2014, 05:56:03 PM »
Hi,

This is my followup from the last thread on the cure sub but it's a different issue so I went ahead and make a new thread.  Thank you to all those who helped me in that thread.

Anyway, I have my cure sub as follow, which is called from the health check sub:

Code: [Select]
Sub Cast_Cure
  Repeat
    If C In #Charstatus && G Notin #Charstatus && #Mana >= 25 && %Cast_Wait_Timer <= #sCnt2
    {
      Event macro 15 201 ; cast Chiv spell cleanse by fire
      Target 5s
      Event macro 23 0 ; target self
      Set %Cast_Wait_Timer #sCnt2 + 20
    }
  Until C Notin #Charstatus || Finditem %KILLS G_8
Return

So the gist of it is that once the char is out of combat and is poisoned, the sub will try to cure repeatedly (especially if it's deadly poison or failed, but I have protection on so the second issue is not a problem).  Now, what am trying to do is have the sub exit out when the script scans and finds a mob, which is defined by Finditem %kills G_8 where %kills is the variable where all the mob types are defined.  My question is, is the last part written as it is will allow me to exit out of the sub when the mob is found even if my char is not cured?:

Code: [Select]
Until C Notin #Charstatus || Finditem %KILLS G_8
Return

He's a sampire and I only worry about cure poison (deadly specifically because vampire form doesn't auto cure) when he's out of combat and not leeching health, hence the cure sub and the need to exit out of the cure sub when mob respawns.  Thank you for your inputs

7
Wow, awesome; yea i'd want to have the config saved so i won't need to input the pixel color every time running the script.  Thanks for showing me the options available.  Didn't think of pixel scanning as a method, learn something every time I try to implement new stuffs :)

8
if that's the only way to do it, then that means I'd have to write a "gosub setpix" and implement the pixel scanning?

9
Hi,

I currently have this in my attack sub,

Code: [Select]
If #mana >= 45 && %cast_wait_timer <= #scnt2
{
  Event Macro 36 0 ; secondary weapon ability
  Set %cast_wait_timer #scnt2 + 20
}

My question is, what do I need to input besides that code so that when my sampire misses, the ability is still on until it hits the mob?  Currently, it toggles on, if he hits then everything's fine but if he misses, then it'll toggle off, and then back on in a few seconds.  It's not really a problem, just more or less I want it to be as efficient as possible.  Am currently learning how to script properly so any inputs will be of great help.  Thanks.

10
Scripting Chat / Re: Please help with an "OR" action code line.
« on: January 05, 2014, 07:43:08 AM »
Thank you guys for your inputs  :), it's clearer now what the code should be

11
Scripting Chat / Re: Please help with an "OR" action code line.
« on: January 04, 2014, 10:02:55 PM »
You don't need the parens () unless you're grouping multiple criteria together:

for example
Code: [Select]
IF G Notin #charstatus && C In #charstatus && ( #mana >= 10 || %cast_wait_timer <= #scnt2 )
This treats whatever is within the () as a single qualifier for IF.

X

That || symbol you used, can that be used to change the last line in my snippet

Code: [Select]
Until C Notin #charstatus Or G In #charstatus

to

Code: [Select]
Until C Notin #charstatus || G In #charstatus

Does that still accomplish the purpose that the char only casts cure when out of combat and if a new mob spawns, he'll stop casting even if still poisoned and attack the mob?  The char has protection on so am not accounting for failure due to poison interruption.

12
Scripting Chat / Please help with an "OR" action code line.
« on: January 04, 2014, 05:28:02 PM »
Hi,

Am trying to implement the chivalry cure poison spell into a script that I currently run for my sampire; I only want to use this spell when my character is not in combat and is poisoned.  Is this the correct way to write it?

Code: [Select]
IF ( G Notin #charstatus ) && ( C In #charstatus ) && ( #mana >= 10) && ( %cast_wait_timer <= #scnt2 )
{
    Event Macro 15 201
    Target 5s
    Event Macro 23 0
    Set %cast_wait_timer #scnt2 + 20
    Repeat
    Until C Notin #charstatus Or G in #charstatus
}
Return

Thanks for the inputs.

13
Crafting / Re: Snow's Bolt Maker
« on: January 02, 2014, 10:02:47 AM »
Ah I see what I have to do now, thank you Crisis and 12X for your inputs  :)

14
Crafting / Re: Snow's Bolt Maker
« on: January 01, 2014, 06:08:26 PM »
Hi, am testing this out and it's only making one shaft at a time?  Seems time consuming to do so...is there anyway to adjust where it'll drag, say 200 boards at a time, and make them all?  I know the craft menu allows to turn a stack of board into shafts so i don't know if this is an oversight?

15
You might have some lag issue.  Try to chop only 3 to 4 trees per rune to see if the problem persist.

;======= chop sub =======
line 936  wait 20 ;  you can always change the wait 40  

I tried what you suggested, it doesn't work...lag doesn't seem to be the issue; once the tree runs out of wood, it'll try to chop the next tree in the path before path find it to the tree which resulted in the "that is too far away" and thus the script will skip it then jump to the next tree before it even gets to the previous tree; and as you can see resulting in a cycle of "that is too far away" and it eventually skips all the tree and recall to the next rune.  I really don't know what's going on; tried to set up 4 trees and have them close to each other and still get the same problem.

Edit 1:  Okay I figured out what the problem is, man am such a noob, which is fittingly my title at the moment under my user name lol.  Am sure this probably was mentioned in the instruction but I just grazed over it; there is one minor detail that is extremely important for the setup to work properly:

YOU MUST PATH FIND TO THE TREE THAT YOU WANT TO CHOP FIRST BEFORE YOU CLICK ADD

As this turns out to be extremely crucial, so if any newbies come in here and use this script and couldn't get it to work, you may probably tried to add the tree first without standing next to it.

Big shout out to Neo for this awesome awesome script!

Pages: [1] 2