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

Pages: [1] 2 3
1
Script Debug / Re: New issue. Need help
« on: September 12, 2014, 03:49:08 PM »
That was the first thing I though, but even if i set a 5 second wait time before executing the disarm, it still doesn't do it  :-[

2
Script Debug / New issue. Need help
« on: September 12, 2014, 08:14:08 AM »
So im writing a pot chugging script. The issue im having is when my character is holding a two handed weapon, the script will not disarm. However, when i step through the script line-by-line, the disarm works. I dont know where the error is.

Code: [Select]
  sub ConsumeItem
    while h in #charstatus || #LLIFTEDKIND = 1
    {
      wait 0
    }
    Finditem %1 C_ , #backpackid
    retry:
    if %1 = ZLF
    {
      event macro 58 0
      goto skip
    }
    gosub TM_AdvJournalSync Apple
    set #lobjectid #findid
    event macro 17 0
    if %1 = CBS
    {
      gosub TM_AdvJournalScan Apple VALID not_strong_enough
      wait 10
      if #result = #TRUE
      {
        goto retry
      }
    }
    if %1 = NUF
    {
     gosub TM_AdvJournalScan Apple VALID free_hand
     wait 10
     if #result = #TRUE && %Disarm = #true
     {
      gosub Disarm
      goto retry
     }
     if %disarm = #false
     {
      event ExMsg #charid 0 2498 Can't use cure pot with two handed weapon!
     }
    if %Disarmed = #true
    {
     set %Disarmed #false
     event macro 37 0
     wait 10
    }
skip:
    wait 10
  return
Code: [Select]
  sub Disarm
  finditem %weapon C_ , #charid
  set %CurWep #findid
  exevent drag %CurWep
  wait 10
  exevent dropc #backpackid
  wait 10
  return

3
Script Debug / Script jumps around randomly
« on: September 11, 2014, 05:03:53 PM »
Hey all, I havent posted here in a long time as I've been on a hiatus. Recently I've been working on a personal script that'll chug pots/tbox/confidence/evasion/aids for me. I've been writing it off and on for a week and have it pretty much done.

My problem is, it doesnt seem to work as intended. When i step through the script line by line, sometimes it'll jump to random points in the script. I feel like it has a lot to with the call ScanBuffBar.txt but im uncertain. Can anyone take a look at see if you see something that I'm over looking? Thanks


4
Submit your Script / Re: Raz's (almost) Auto-Snake Charmer
« on: August 29, 2012, 07:12:52 PM »
Raz,

I could swear the same thing.  I think the snakes give you the best chance at getting eggs and don't collapse th nest as often.  That would make sense as we use a 'Snake Charming Flute' and a serpent is not necessarily a snake, but they still respond to the flute like a slayer weapon.  The Snake Charmer Flute is a Super Slayer for Snakes.

If that makes any sense...

Agreed  :D

5
Script development tools / Raz's Time Getter Sub
« on: August 27, 2012, 06:39:24 PM »
Hey all. I wrote this up to teach myself how to play with separating and combining strings. I'm sure there are subs out there that do this already, but figured I'd share this anyways.

Code: [Select]
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; Script Name: Raz's Time Getter Sub
; Author: Razeial
; Version: 1.0
; Purpose: Gives a value of time in the format of 00:00 AM/PM
;
;Instructions: Place this sub in your script. The variable %time is used for the return value.
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SUB GetTime
set %time #time
if #time < 130000
{
  if #time >= 120000 && #time < 130000
  {
     str left %time 4
     set %time #strres
     str left %time 2
     set %time1 #strres
     str right %time 2
     set %time2 #strres
     set %time %time1 , : , %time2 , #spc , PM
  }
  if #time >= 000000 && #time < 010000
  {
     str right %time 4
     set %time1 #strres
     str left %time1 2
     set %time2 #strres
     set %time 12 , : , %time2 , #spc , AM
     display %time
  }
  if #time < 100000 && #time >= 010000
  {
     str left %time 4
     set %time #strres
     str mid %time 2 3 4
     set %time #strres
     str left %time 1
     set %time1 #strres
     str right %time 2
     set %time2 #strres
     set %time %time1 , : , %time2 , #spc , AM
  }
 if #time < 120000 && #time >= 100000
 {
     str left %time 4
     set %time #strRes
     str left %time 2
     set %time1 #strres
     str right %time 2
     set %time2 #strres
     set %time %time1 , : , %time2 , #spc , AM
 }
}
if #time > 130000
{
  if #time > 195959
  {
    str left %time 4
    set %time #strRes
    str left %time 2
    set %time1 #strres - 12
    str right %time 2
    set %time2 #strres
    set %time %time1 , : , %time2 , #spc , PM
  }
 if #time < 095959 && #time > 120000
  {
    set %time #time - 120000
    str left %time 3
    set %time #strres
    display %time
    str left %time 1
    set %time1 #strres
    str right %time 2
    set %time2 #strres
    set %time %time1 , : , %time2 , #spc , PM
  }
}
return

6
Submit your Script / Re: Raz's (almost) Auto-Snake Charmer
« on: August 27, 2012, 01:33:46 PM »
Here is a simple script for getting Medusa keys a little easier. As many know by now, there seems to be an issue targeting the snake nests, so this script relies on you to do so, but does everything else by itself, except move your character. :) Enjoy

This is great.  I am going to give it a whirl today and see what happens.  There has to be a way of identifying the Serpent's Nest.  They are clickable.  Has anyone found out whether you have a beter chance of getting the eggs if you charm the snakes or he serpents?



I've been doing them rather heavily recently and it doesn't much seem to matter. From my personal experience, regular Snakes seem to get me keys more often. I've also noticed that the nests that dont collapse after the 2nd or 3rd try typically yield a key. I dont know if there is any merit to this, but that is my observation. Let me know how this script works!

7
Scripting Chat / Re: Targetting Serpents Nests
« on: August 26, 2012, 10:03:03 PM »
I've been working on my own script for this and like so many others, ran in to the same problem with the nests. The nests have itemid, item types, and return a location, but for some reason event macro 22 0 does not work to target these.

Here's what I was able to come up with though: http://www.scriptuo.com/index.php?topic=10246.0

8
Submit your Script / Raz's (almost) Auto-Snake Charmer
« on: August 26, 2012, 09:58:10 PM »
Here is a simple script for getting Medusa keys a little easier. As many know by now, there seems to be an issue targeting the snake nests, so this script relies on you to do so, but does everything else by itself, except move your character. :) Enjoy

Code: [Select]
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; Script Name: Raz's (almost) Auto Snake Charmer
; Author: Razeial
; Version: 1.0
; Client Tested with: 7.0.27.5
; EUO version tested with: 1.5 v218
; Shard OSI / FS: EA/OSI
; Revision Date: 8/29/2012
; Public Release: 8/26/2012
; Global Variables Used: none
; Purpose: Automates the process for obtaining Keys for the Medusa Peerless
; Instructions: Press Play. You will have to manually target the snake nest as there is an
;               issue with EUO not being able to target them.
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
;======================================================
; Setup
;======================================================
if %setup <> #true
{
set %snake QE_JD
set %hole PBN
set %flute RGP_PGP
set #sysmsgcol 32
set %setup #true
}
;======================================================
; Mainloop
;======================================================
mainloop:
finditem %snake G_8
if #findcnt < 1
   goto mainloop
set %targsnake #findid
wait 10
finditem %hole G_8
if #findcnt < 1
   goto mainloop
gosub FindFlute
gosub TargSnake
gosub TargHole
if #result = #false
   goto mainloop
wait 10s
goto mainloop
return
;======================================================
; Sub TargHole
;======================================================
Sub TargHole
if #targcurs = 1
{
 event SysMessage Target the hole
 repeat
 wait 0
 until #targcurs <> 1
)
else
    return #false
return
;======================================================
; Sub TargSnake
;======================================================
Sub TargSnake
set #lobjectid %useflute
set %js #jindex
event macro 17 0
target
set #ltargetid %targsnake
set #ltargetkind 1
event macro 22 0
set %je #jindex
wait 10
for %cantPersuade %js %je
{
 scanjournal %cantPersuade
 if you_dont't_seem in #journal
    gosub TargSnake
 if
}
target
return
;======================================================
; Sub FindFlute
;======================================================
SUB FindFlute
finditem %flute C_ , #backpackid
event Property #findid
if charmer in #property
   set %useflute #findid
else
   {
    ignoreitem #findid
    gosub FindFlute
   }
if #findcnt < 1
   {
    display You have no flutes! Halting!
    halt
   }
return

9
Script Debug / Trouble targeting a ground item
« on: August 24, 2012, 11:13:29 AM »
Hey guys, I wrote this script to make it a bit easier to get keys for Medusa. Everything works perfectly except when it goes to target the snake nest on the ground. I either get a message that target cannot be seen, or it targets a random tile. I cannot get the script to actually target the nest. I've tried to set the #ltargetkind to 1, 2, and 3 to no avail. Anyone have any suggestions?
Code: [Select]
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; Script Name: Raz's Auto-Snake Charmer
; Author: Razeial
; Version: 1.0
; Purpose: Makes getting keys for Medusa easy!
;
;Instructions: Press Play
;
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
;======================================================
; Setup
;======================================================
if %setup <> #true
{
set %snake QE_JD
set %hole PBN
set %flute RGP_PGP
set %maxDist 8
set %setup #true
}
;======================================================
; Mainloop
;======================================================
mainloop:
finditem %snake G_8
if #findcnt < 1
   goto mainloop
set %targsnake #findid
wait 10
for %i 0 %maxDist
{
 finditem %hole G_ , %i
 if #findkind <> -1
 {
    event Property #findid
 }
 if nest in #property
 {
    set %targholeid #findid
    break
 }
}
wait 10
gosub FindFlute
gosub TargSnake
gosub TargHole
if #result = #false
   goto mainloop
wait 10s
goto mainloop
return
;======================================================
; Sub TargHole
;======================================================
Sub TargHole
if #targcurs = 1
{
 set %ltargetkind 2
 set #ltargetid %targholeid
 wait 10
 event macro 22 0
)
else
    return #false
return
;======================================================
; Sub TargSnake
;======================================================
Sub TargSnake
set #lobjectid %useflute
set %js #jindex
event macro 17 0
target
set #ltargetid %targsnake
set #ltargetkind 1
event macro 22 0
set %je #jindex
wait 10
for %cantPersuade %js %je
{
 scanjournal %cantPersuade
 if you_dont't_seem in #journal
    gosub TargSnake
 if
}
target
return
;======================================================
; Sub FindFlute
;======================================================
SUB FindFlute
finditem %flute C_ , #backpackid
event Property #findid
if charmer in #property
   set %useflute #findid
else
   {
    ignoreitem #findid
    gosub FindFlute
   }
if #findcnt < 1
   {
    display You have no flutes! Halting!
    halt
   }
return

10
Script Debug / Re: Quick response help needed!
« on: August 21, 2012, 11:05:50 AM »
Pretty much. Im unfamiliar with STR commands and how they work.

11
Script Debug / Quick response help needed!
« on: August 20, 2012, 10:40:34 PM »
Hey all. I'm trying to write a script that will buy a particular item from a player vendor but only if it meets a few requirements such as price or charges left. I can't seem to figure out how to make those last two work. I tried maybe using the information in #property but it wont work.

Right now I'm testing this with a barbed kit and this is the code i've come up with

Code: [Select]
mainloop:
finditem %Rkit c_ , %bag
if #findkind = -1
   {
    goto mainloop
   }

if #findcnt => 1
{
 event Property #findid
 if #findcol = 2129
     if Barbed_Runic_Sewing_Kit in #property
         if Uses_Remaining: , #spc , >= 15 in #property
             if Price:_ , #spc , >= %price in #property
                {
                 msg Vendor buy$
                 target 2s
                 set #ltargetid #findid
                 event macro 22 0
                 wait 5
                 click 239 336
                 wait 5
                }
RETURN

Im stuck. Can anyone lend a hand!

12
Character skill advancement / Raz's Disco Trainer
« on: August 13, 2012, 12:18:37 AM »
Quote
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;
; Script Name: Raz's Disco Trainer                                                          ;
; Author: Razeial                                                                           ;
; Version: 1.51                                                                              ;
; Purpose: Trains discordance on animals                                                    ;
; Instructions: Get a bunch of animals and release them where you'd like to train.          ;
;               Make sure you have instruments in your pack!                                ;
;               Script is det by default to stop training at 90 skill                       ;
;               This script assumes you'll be using a 40LMC suit and full FC/FCR            ;
; Credits: Paladin for his ScriptTimer Sub                                                  ;
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;

v1.0 8-13-2012
-Release

v1.5 8-14-2012
-Added the ability to train using Spell Song from 90 to 120.
-Ability to actively meditate


v1.51 8-15-2012
-Minor Tweaks, now checks for log in status

This script will train discordance using two methods. The first can train Discordance up to 120 from 30 simply by discording animals (which you will need to add in the %animal variable). The second method will use Spell Song to train to 120 from 90. It will also ask you if you would like to use Meditation for Spell Song training. YOU MUST have done the Spell Song quest in order to use this method.

13
Character skill advancement / Raz's Chivalry Trainer
« on: August 13, 2012, 12:14:20 AM »
Code: [Select]
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;
; Script Name: Raz's Chivalry Trainer                                                       ;
; Author: Razeial                                                                           ;
; Version: 1.0                                                                              ;
; Purpose: Trains Chivalry                                                                  ;
; Instructions: Adjust where you'd like the script to stop training                         ;                                        ;
; Credits: Paladin for his ScriptTimer Sub
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;

Just a simple script i recently wrote to train Chivalry.

14
Script Debug / Re: Need pathfinding help!
« on: August 08, 2012, 02:00:53 PM »
Makes sense. I recorded the rail using RoadKill's Rail Recorder. I would run to one spot, stop, hit record on his script, then run the the next, stop, hit record, etc etc. If I ran that rail in despise with no spawn, it will run perfectly every time, its only when the spawn is actually going that I get the message.

15
Script Debug / Need pathfinding help!
« on: August 08, 2012, 01:31:53 PM »
Removed by request

Pages: [1] 2 3