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

Pages: 1 ... 3 4 [5]
61
Off Topic / Programming Basix
« on: November 28, 2011, 12:37:53 PM »
Check the placement of your brackets. Also, although you CAN use them, you don't HAVE to use brackets with if/else if there is only 1 line to process:

What 12X is bringing up is one of a 100 little syntactical formatting annoyances you'll run into when you script in EUO.  Best thing you can do is look at how other people have their code formatted and try and follow that convention.  Also, code in small bits and test as you go.  If you try and code a huge block of code and you have a syntactical error, you'll spend countless hours trying to find it since EUO doesn't fail execution when it runs into a syntax error.  

I've been seeing things along this manner for awhile now, and it's completely understandable. Some people join the forums with little to no experience with EUO/SUO or even fundamental programming knowledge (IE: General work flow and structuring of a program).

Now I am no expert in any of the aforementioned areas, in the slightest. I am still a beginner, however I believe that I have something to help fellow neophytes in this area. About a year ago I completed a general programming class that taught us the basic logic of how all programming languages function, and from this class I attained a PDF that has helped me greatly and I would like to share it here, and leave it for membership discussion in hopes of assisting the community.

Also, I did not know where an appropriate place to put this would be, so I just stuck it in General Offtopic, however I  am sure one of our suave moderators can find a more appropriate home for this post. :>

http://www.mediafire.com/?rxs1q4057v5bk4h

(Too large to upload in post)

62
Scripting Chat / Arrays?
« on: November 06, 2011, 10:43:20 AM »
Is it possible to store data to arrays with EUO? I've always been really shape at arrays in general (have a hard time understanding their logic in recording data). However it is something that I want to add to my LAME script...

Basically what I want to do is this: Advanced mana management for the sampire... basically, do two armor ignores, then a lightning strike, and repeat. If I remember correctly, the lightning strike will reset the double mana requirement for the armor ignores. The only way I can think of doing this, is recording the armor ignores to an array of some sort. Unless there is a variable that records the mana of the next armor ignore. Because there could be issues with such an array, given that it might not be able to calculate misses and would record misses at hits, thus lightning striking at the wrong time. Maybe a journal scanner could be used as a means of recording hits? "Your attack pierces their armor!" or whatever AI says when it hits.

63
Script Debug / algorithms
« on: July 05, 2011, 10:53:25 AM »
So I want this script to use divine fury when my stamina is less then 40%...

Code: [Select]
set stamPercMod 40
set stamPerc ( ( #MAXSTAM / 100 ) * %stamPercMod )

if #STAMINA < %stamPerc
   gosub dFury

sub dFury
   event macro 15 205
   wait 5
return

I have 153 stamina, and following that algorithm, %stamPerc should be set to 61.2, so it should use divine fury at around 61 stamina, however instead it does it at 40 stamina. Is this an integer issue?

64
Combat/Healing/Looting / LAME 3.0 - Le (semi)Automated Mob Eradicator
« on: April 29, 2011, 04:38:16 AM »
If you're a member of EasyUO.com, and you find this script useful then please take a moment to rate it! Visit http://www.easyuo.com/forum/viewtopic.php?p=393352 to do so.
This script will no longer be updated. I no longer play OSI, nor do I use EUO (Or any variation of it) anymore.
Code: [Select]
; A lame script written for lame stuff
; Script Name: LAME
; Author: dxrom
; Version: 3.0
; Client Tested with: EA 7.0.18.1
; EUO version tested with: 1.5 Version 201
; Shard OSI / FS: OSI
; Public Release: 5-29-2011
; Revision Date: 9-18-2011
; Purpose: A semi-automated sampire assitance utility.

; REQUIRES EN's ScanBuffBar script!
; Downloaded at http://www.scriptuo.com/index.php?topic=1508.0

Code: [Select]
; How2:
;  1. Login to sampire
;  2. Load script and hit Play (Make sure ScanBuffBar.txt is located in the same folder)
;  3. Follow onscreen instructions
;  4. ???
;  5. PROFIT! :D

; NOTES: I find that the best place in which to hold my
;        cursor during the setup, is on the EDGES of the spell icons, I switch
;        weapons, so it allows the special abilities to be interchangeable.
;        ALSO! This script will use LIGHTNING STRIKE AS A MEANS OF REGERNATING
;        MANA! It assumes that you have a MANALEECH WEAPON (Which you SHOULD)
;        and when you reach 25 mana (an amount that is superceded in chain
;        special abilities against single target victims) and will switch back
;        to your special abilities once your mana has been replenished!
Code: [Select]
;\\\\\\\\\\\\\\\\\\\\\\\\\
;\\\\\\\\\\\\\\\\\\\\\\\\\
;THE FOLLOWING MODIFIES HOW
;THE SCRIPT WORKS, SEE BELOW
;%manaLvl changes when LS is
;used, I use LS to regen mana.
;****************************
;%stamPercMod is the stamina
;percentage modifier. Change
;this to represent at what
;percentage your stamina must
;be before the script uses
;Divine Fury.
;****************************
;%safety is works basically as
;an FCR timer to prevent over-
;casting, or the script from
;trying to cast two or more
;spells at the same time.
;****************************
;%L0GOUT set this false if you
;do not want this script to
;automatically log you out on
;death, it is implemented to
;save mounts, 100% of sampires
;should have this set #true
;because 100% of sampires
;should be riding swampies.
;****************************
set %manaLvl 20
set %stamPercMod 40
set %safety 2
set %L0GOUT #true
;\\\\\\\\\\\\\\\\\\\\\\\\\
;\\\\\\\\\\\\\\\\\\\\\\\\\

I wrote this for some guildmates of mine. This will be my first release of any script, it is also one of the first scripts I have ever made. Please note that the basic structure and idea of this utility derived from Maddog's Medic, so credit goes to him. This is a actually a fairly primitive version (and script in general, I understand) of one the I actually use, which does much more; however I do not feel comfortable releasing that one publicly yet.

Let me know how this works for you, please understand that I am still fairly new to programming in general, however I will help in any way I can and do my utmost best to resolve any issues encountered!

Cheerz

.dx

UPDATES:
Apparently some people close their status bars, and easyuo doesn't like that! Some folks were having an issue with abilities not working, this is because I have them setup to be used against checks, for example if #mana > X... The script wasn't able to actually determine what your mana was at, so it just skipped over it, using Cerveza's advice (thank you for this!) I was able to fix this issue. Now, try and close your status bars, I dare you!  ;D

6/1/2011
Major changes to how EOO is timed (now uses EN's ScanBuffbar, instead of relying a timer)

6/2/2011
No longer need to pause when relogging or losing connection, it hit me in the middle of the night, I wrote a loop that the script only enters when #clilogged = 0 and doesn't leave that loop until you're logged back in.

7/5/2011
Major revamp of multiple functions. Added Raziel's logout sub (Thanx b@ndito) so when the sampire dies, it will be logged out in order to save the mount. I understand that the percentage check for enemy of one isn't working correctly, at the moment I am trying to figure out how to make easyuo set a variable by performing an algorithm. Edited the LS function a little bit, it should now check for weapons that have Whirlwind abilities, and be sent to their correct abilities. I did this because I really hated when I was doing a spawn, get mana vamped while trying to aoe things down, and the script would LS instead of whirlwind to get mana back.

9/18/2011
Completely updated how the attack loop functions. Script will no longer spam abilities and spells unless mobs classified under %target are near. Also updated to work with  new ScanBuffBar.
Code: [Select]
Thanx:
UOMaddog
Endless Night
*loser*
Cerveza
b@ndito
(Seriously, without any of you guys, this script wouldn't be where it is right now.)

65
Script Debug / You are not holding anything.
« on: January 17, 2011, 12:03:30 AM »
Alright... So I have been noticing with a few older scripts, that I will get a message onscreen telling me "You are not holding anything."

I just started noticing it big time, with CEO's Rail Runner. Whenever my character follows a rail east, it spams my screen with that message, anyone else noticing this with any other scripts?

66
General UO Chat / Leaving OSI. Off to the freeservers!
« on: January 15, 2011, 01:04:27 PM »
So, I came back to OSI, about a week ago too play with two friends of mine in an old guild I used to be in. However things went south with a couple of different members and I was excommunicated from the guild basically. I was wondering if there was free server that a majority of the members here played on. I still want to play the game, being as I am getting into scripting now, and scripting is making it easier for me to pickup programming :)

67
Script Debug / Primary Ability
« on: January 09, 2011, 08:58:08 PM »
I'm adding onto a script of mine, which is a sampire assist script. I want to add a sub to use primary abilities though (IE: Armor ignore) However I don't want it to simply spam the ability. How can I insert a check for it?

I thought I might be able to do it the same way I do lightning strike.
Code: [Select]
Journal Scanner:
if You_prepare_to_strike_quickly in #journal ;LS prepped
        set !lstrikeOn #true
if You_attack_with_lightning_precision in #journal ;hit with LS
        set !lstrikeOn #false

if #mana > 24
        set !usePrimary #true
        wait 1
        set !useLstrike #false
     else
         set !usePrimary #false
         wait 1
         set !useLstrike #true
Code: [Select]
Main Script:
if ( %useLS = #true ) && ( !useLstrike = #true ) && ( !lstrikeOn = #false )
     gosub LStrike

sub LStrike
    if !lstrikeOn = #false
       event macro 15 149
       wait 5
    else
        return
return

Although I quickly learned that I could not do it the same way. Because Primaries don't work the same way as LS.

How can I make a script use a primary ability, without spamming it?

68
Misc. Scripts / dxrom's muffin maker (Rename and release; Taming)
« on: April 23, 2010, 09:18:41 PM »
Code: [Select]
;===================================================
; Script Name:  Muffin Oven
; Author:  dxrom
; Version: 1.0.0
; Client Tested with: 7.0.6.5
; EUO version tested with: 1.5
; Shard OSI / FS:  OSI / FS
; Revision Date:  4/23/10
; Public Release:  4/23/10
; Global Variables Used: yes (i think?)
; Purpose:  Simple script for those people who can't trust a taming script to run around safely... Just a way to help the process of taming.
;====================================================
 
while #true
{
onhotkey F1
         gosub RenameRelease
onhotkey F3
         gosub Tame
}

sub RenameRelease
exevent renamepet #LTARGETID muffin
msg muffin release$
return

sub Tame
event macro 13 35
return

I cant really trust a taming script to run around the freeserver I play on, so I thought I would put something small together to help with the daunting task of taming and I figured someone else might have a bit of use for it aswell.
I know its small, infact I think the description has more characters used then the actual script, but it does its job well! xD
Also note, this is my first actual script I have written. o_o

EDIT: Added event macro 13 35 (Use skill taming) to hotkey

69
Scripting Chat / While I look around.
« on: January 16, 2010, 07:59:09 AM »
Hey everyone! ^^
So I am working on my first script, and was wondering is there a Menu Designer?
Just figured I would ask while I look around for one on my own, two birds with one stone yeh know. xD

70
New member introductions / Hi hi! ^^
« on: January 08, 2010, 07:19:32 PM »
Hello everyone! I am dxrom, and uhm, well lets see...

I have been playing UO since late September early October 1997, I was 9 then, I played on my fathers acc way back then. Anways, Baja is my home server, although I play across various other servers pvping, I pretty much play mage field templates, or a few not so mage like (but not dexxer, I suck on dexxers) field templates that consist of me runnin around, bolaing, holy light spamming etc, I am fairly decent at commin up with obscure templates that some how play out pretty well.

Outside of UO, I am 21 goin on 22, I am gettin ready to start college and work on my bachelors in Computer Information Systems, I have a nasty bad habit of traveling all over, I've lived all over the US. Also, I am a raver (no hate kthx <3, PLUR 4 Life), and a bedroom DJ, I spin UK Hardcore/Hardcore, Freeform, I am learnin the templates for breaks and rave breaks, I love music! ^^

What am I doin here? Well, that's simple! I love meeting new people! I really want to get involved in scene regarding UO, and really just branch out, learn more about the game I have spent so much of my life playing!

Not too sure of what else I should post, but if anyone has any questions, feel free to ask away! :D

Pages: 1 ... 3 4 [5]