UOGamers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • To obtain new Razor updates, please reinstall Razor from our new website.

Need uos script examples

Xeasin

Sorceror
Hello,
My friend about to finish his NecroMage-spellweaver and I am about to finish my necrotamer. We used to use razor but recently start using uosteam. We want to create uosteam scripts and hot key but we have lack of knowledge. I check pdf come with uos and otherscript but still i have a long way.

I would love to ask what kind of script do you use for especially speelcaster characters. Could you give us examples (so we learn and modify them)
Is there any important or suggested configuration on uos and how we need to change them.
Which hot keys should be usefull any suggestion for newcomers.

Thank you for reading this :)
 

mazaxaka

Page
//Equip slayer book
if not @findobject 'book1'
promptalias 'book1'
endif
clearhands 'right'
equipitem 'book1' 1
//

//Getenemy
getenemy 'enemy' 'criminal' 'gray' 'closest'
//

//Magic Arrow and Fireball
if @inrange 'enemy' 10
if targetexists 'harmful'
target! 'enemy'
elseif @inrange 'enemy' 1
cast 'Harm' 'enemy'
else
if not @findalias 'Sequencing'
cast 'Magic Arrow' 'enemy'
@setalias 'Sequencing' 'self'
else
cast 'Fireball' 'enemy'
@unsetalias 'Sequencing'
endif
while waitingfortarget 'harmful'
endwhile
endif
endif
//

//Spam Lightning and heal self
if hits < 75
bigheal
pause 1000
else
cast "Lightning" 'enemy'
endif
//
 

mazaxaka

Page
//Pet Heal Ctrl+C
if not findobject 'cu'
sysmsg 'Target on cu' 25
promptalias 'cu'
endif
if not poisoned 'cu'
cast heal 'cu'
else
cast cure 'cu'
endif
//

//Pet GHeal Shift+C
if not findalias 'cu'
sysmsg 'Target on cu' 25
promptalias 'cu'
endif
if not poisoned 'cu'
cast "Greater Heal" 'cu'
else
cast "Arch Cure" 'cu'
endif
//

//cast pain in ass :D
cast "Pain Spike" 'enemy'
//
 

Xeasin

Sorceror
if not @findalias 'Sequencing'
cast 'Magic Arrow' 'enemy'
@setalias 'Sequencing' 'self'
else
cast 'Fireball' 'enemy'
@unsetalias 'Sequencing'
endif
I dont understant this part. What is it this alias things how it's works
 

Xeasin

Sorceror
It's works also other spell. I change it for couple of more loops like mind blast, energy bolt... I just try to understand how it is work :) Using others script nice and there is lots of people like you, love help others but i(we) cant rely on that so i gues i have to learn little more on this script things.
Bye the way Thank You again these scripts extreamly helped to me :D
 

mazaxaka

Page
There are two conditions
Sequencing can be "TRUE" and "FALSE"

if not @findalias 'Sequencing' //Sequencing = False
cast 'Magic Arrow' 'enemy' //cast 'Magic Arrow
@setalias 'Sequencing' 'self' //Sequencing = True //after cast magic arrow set Sequencing to true
(Script check agin^^^ alias Sequencing and its = True) ... If Sequencing = True ... script cast fireball and set alias Sequencing = false
else //Sequencing =True
cast 'Fireball' 'enemy'
@unsetalias 'Sequencing'
endif

My english terrible hard to try explain :D
Check this C++ programing tutorial if/else statment https://www.youtube.com/watch?v=jK83lln_T1k
 

Xeasin

Sorceror
English also not my mother tongue and it's effect my understanding about this script things. I whacthed video look script again and there is nothing :D I gues i am hopless or hard learner even so thank you. At least you try to teaching and i'm trying to learn.
(I'm just try to get what other sitiations I can use this @findalias 'sequencing' eventually I'll learn in time i gues)
 

mazaxaka

Page
Script 1
//
cast 'Magic Arrow' 'enemy'
cast 'Fireball' 'enemy'
//
will be cast only magic arrow

Script 2
//
cast 'Magic Arrow' 'enemy'
pause 500
cast 'Fireball' 'enemy'
pause 600
//
will be cast (ma,fb,fb,ma,ma,fb,fb) and if you put perfect pauses it will be cast not perfect lags etc.

Alias trick work like
if you don't cast magic arrow, cast it
if you cast magic arrow before, cast fb
 

MB

Knight
Just to be clear, Sequencing is not a command, just the name that happened to be assigned to that alias. It could be called 'Hotdogs' and do the same thing. It's just setting an alias as yourself after one spell and removing the alias after the next spell. If you wanted to compound a third spell it'd be something like


//make sure do not auto interrupt is checked
if @inrange 'last' 10
// Dump existing harmful target on enemy
if targetexists 'harmful'
target! 'last '
// Harm if enemy is standing next to you
elseif @inrange 'last' 1
cast 'Harm' 'last'
else
// Handle sequence, using alias trick
if not @findalias 'Sequencinga' and not @findalias 'Sequencingb'
cast 'clumsy' 'last'
@setalias 'Sequencinga' 'self'
elseif not @findalias 'Sequencingb'
cast 'weaken' 'last'
@setalias 'Sequencingb' 'self'
else
cast 'feeblemind' 'last'
@unsetalias 'Sequencinga'
@unsetalias 'Sequencingb'
endif
// Wait until cast is finished
while waitingfortarget 'harmful'
endwhile
endif
endif
 

Xeasin

Sorceror
My brain hurts o_O Ok still I wonder how can i set alias 'nameisdoesntmatter' (it's really tough toppic for me)
 

mazaxaka

Page
if not findalias 'nameisdoesntmatter'
promptalias 'nameisdoesntmatter' //set alias command (promptalias 'name')
endif
 
Top