ScriptUO
General => New member introductions => Topic started by: Remaker on August 31, 2009, 04:46:51 PM
-
Hello from an old UO player.
I've been playing UO off and on for the past 4-5 years, before that played 24 hours a day since release. ;D
Mostly I have played as strictly pvping but recently i have been extremely active in pvm, vendors, resource gathering, and BODs. I've used many scripts over the years and even tried tackling the task of writing my own a few times with guidance from a knowledgeable friend of mine. I'm assuming this is the new uocoders site because i've seen some of the same faces that were there posting here. I was a member of that site a while ago.
Heres a short/simple script that I wrote trying to learn how to script effectively. Hope to see you on the boards. ;)
;=======================================;
; Script Name: Necromancy Trainer ;
; Author: Remaker ;
; Version: 1.0 ;
; Client Tested with: 6.0.6.1 ;
; EUO version tested with: 1.5 build 132;
; Shard OSI / FS: OSI Tested ;
; Public Release: ;
; Purpose: Train Necromancy from 30-120 ;
; Opens backpack to keep you ;
; Logged in. ;
; __ __ __ __ __ __ __ ;
; | || |/ `| || \|__ |__)|__ ;
; |__||__|\__.|__||__/|__ | \ __| ;
; http://www.uocoders.com/ ;
;=======================================;
;Choose your skill cap
set %skillcap 1200
chooseskill necr
event macro 8 2
mainloop:
if #skill = %skillcap
gosub end
if #skill < 300
display Train your necromancy and restart the script
HALT
while #skill >= 300 && #skill < 499 ;pain spike
{
event macro 8 7
if #mana > 5
event macro 23 0
gosub meditation
goto mainloop
}
while #skill >= 500 && #skill < 699 ;horrific beast
{
event macro 8 7
if #mana > 11
event macro 15 106
wait 3s
gosub meditation
goto mainloop
}
while #skill >= 700 && #skill < 899 ;wither
{
event macro 8 7
if #mana > 23
event macro 15 115
wait
gosub meditation
goto mainloop
}
while #skill >= 900 && #skill < 1099 ;lich form
{
event macro 8 7
if #mana > 23
event macro 15 107
wait 5s
gosub meditation
goto mainloop
}
while #skill >= 1100 && #skill < 1200 ;vampiric embrace
{
event macro 8 7
if #mana > 23
event macro 15 113
wait 3s
gosub meditation
goto mainloop
}
sub meditation
if #mana < 23
{
event macro 13 46
wait 10s
}
return
sub end
display Congrats! You're Done!
HALT
return
-
Welcome to the site Remaker, helpful hint: code tags ,
{code}{/code}...but use these instead []
script
-
thx, i used the sub/sub lol.
good 2 know
-
I already modified it for ya, Remaker.
Hope you find some goodies in the forum. Welcome to ya!
-
welcome to SUO!
-
Welcome to the site.
-
one more welcome for you
-
Yes, many of the same faces but the site is not run quite the same way or owned by the same person. Anyways, I think you will like it here!
-
ya i kinda stopped looking @ winuo cuz it wasnt too active, then the site went down for a bit and i peaced out.
-
Just about the only thing that's the same from uocoders is the scripts you find are all here and most of the people have also joined us here. Actually our scripts have expanded as people like C2, EN, Maddog and Rana have really shared some of their goodies. We run the site just because we love UO and enjoy scripting applied to the game; we have no other real ulterior motives. Originally I started the site to promote ScriptUO (the program), but with the loss of coders, it was a natural progression.
-
Welcome to the forums. I see you've brought my old friend - the Necro Trainer.
So Necro Trainer... we meet again. I see you still play your little game with me....
Two things I see...
What if your skill is 49.9?
while #skill >= 300 && #skill < 499 ;pain spike
while #skill >= 500 && #skill < 699 ;horrific beast
At 49.9 it's not less then 499 and it's not greater then or equal to 500.
Second problem:
while #skill >= 500 && #skill < 699 ;horrific beast
Assuming that you fix the other issue, lets say that your at 69.9 skill and you cast horrific beast (turning INTO a horrific beast) and you gain 0.1 putting you at 70.0 skill. Now you are IN horrific beast form and the script starts trying to cast wither, but it can't. See you can NOT cast anything while your in Horrific Beast form.
A couple things to consider....
-
Now you are IN horrific beast form and the script starts trying to cast wither, but it can't. See you can NOT cast anything while your in Horrific Beast form.
Heh, that's a funny one. I lost a couple hours AFK because I got stuck in Horrific Beast form. I quickly modified my script. But hey, you've got a 50/50 chance, no? I like those odds!
-
Yep, first time I trained using an EUO trainer I ran into the problem. Simple fix though, Beast Form is a different ID. Just check yourself for that ID, then do a repeat cast until it's not in that form.
-
ya i wrote that script and honestly never tested it (a big nono, i know) :(