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.

My first UOS script and Question about second one

Xeasin

Sorceror
I am completly new about UOS and when i was a university i fail programing class 3 times :) anyway
This is my first script it works finely (for me)

Code:
if poisoned 'self'
  clearhands 'left'
  pause 250
  usetype! 0xf07
  pause 250
  // You need to change item serial
  equipitem 0x41b39c30 2
endif

This is my secont script and it has problem. For this i try to duplicate and change a magery scrip find from there http://greeduo.wix.com/uomacro#!uosteam-magery/c24q1
Script keep working till mana end and start mediate after that give this eror
[Macro] Eror Line 1
invalid 'if'. expected 'endif'
Code:
if mana < 50
  clearjournal
  useskill 'meditation'
  while mana < maxmana
  endwhile
else
  if skill 'spellweaving' < 85
    cast "Essence of Wind"
    pause 5500
  elseif skill 'spellweaving' < 100
    cast 'word of death'
    pause 5000
  elseif skill 'spellweaving' < 100
    cast 'word of death'
    pause 1000
  else
    headmsg 'Spellweaving complete!'
    stop
  endif

I want to understand what i am doing wrong. I start learning last night using documentation pdf and others script. My main purpose learn how to write script for my characters
 

Xeasin

Sorceror
Thank you it works finely. I just wonder how guys see mistake and correct it :) i gues i have a long way with this scrip stuff
 
Top