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.


Topics - vanzelus

Pages: [1]
1
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
          }
      }

2
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

3
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.

4
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.

5
Hi Folks, my name is Van and I'm a certified UO addict.  I had tried many other MMOs out there but they all bored me after I've gone through my trial period and I always come back to UO.  Maybe because UO was my first MMO or maybe I have been playing the game since it first came out in 1997 when I was just a teenager.  This game gave and continue to give me good experiences and you could do anything you wanted in this game.  Needless to say, this will probably be the only MMO I'll play for the rest of my life just because it is so flexible.  You can do what you want when you have time, there's no need to log in and play 10 hours a day of raiding just to get the best gear; and with me working and will be in grad school soon, gaming time is limited.  One of my favorite memories playing this game was hearing the song "Stone" at the login screen; the song brings up an emotional and nostalgic feeling that I can't describe.  I think when it comes time for my funeral, that's the song I want my family to play.

Anyway, I think that's enough of me rambling about myself lol...I happened to stumble upon this site because a couple of script writers who wrote for EasyUO is also writing for this board I believe.  So I figure I'd check this board out to see how's the community here.  I'm a UO junkie but am not looking to get arthritis playing the game; as you know, there are too much clicking especially when it comes to crafting (and I love crafting).  So I've been on EasyUO board for a very long time now and kind of a novice scripter myself; although since I haven't play in UO for a little bit and haven't tinker with any scripts during my time away.  I think I've forgot most of what I learned  :'(.  I hope to get to know you fellow UO junkies and hopefully I can learn a thing or two being here on this board.  You all have a good day!

Van

P.S. I play on Catskills if there are any Catskillians on here...I think the population isn't the same as it was when I left it 3-4 years ago, which is kind of sad for me.  ATL apparently is the place to be but it's not my cup of tea; am always a Catskillian at heart  :P.

Pages: [1]