Need help modifying a script

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
install
Posts: 27
Joined: 2014-02-11 18:24:55

Need help modifying a script

Post by install »

Hello, I am using a Magery script where I use Poison and Meditate.
Can some one modify the script, so I could use Poison till my Mana will end, and after that the character would meditate till the mana is full. And when its full he would use Poison again till the mana will end :)
And so on... :)

Mozhet kto pomoch perepisatj script tak chtobi Ja ispoljzoval Poison poka u menja nezakonchitsa Mana, I kak toka ona zakanchivaetsa, igrok nachal otkachevatj Manu do polnovo vostonovlenija i kak toka ona vostonovitsa, on opatj budet ispoljzovatj Poison poka nezakonchitsa mana.

Heres the script :

Var Sunduk='0x40226380'

sub main()
While uo.count('0x0F88','0x0000')>0

if uo.skillval('Magery',1)==1000 Then
return
end if

UO.FindType('0x0F88',-1,'backpack')
While UO.GetQuantity('finditem')<5
UO.FindType('0x0F88','0x0000',Sunduk)
wait(1000)
UO.Grab('100','finditem')
wait(700)
Wend

##while uo.mana>20
cheklag()
uo.cast('Poison','self')
wait(3000)
##wend


Repeat
uo.deletejournal()
uo.useskill('Meditation')
Wait(3000)
Until UO.InJournal("You must wait to perform another action") or uo.mana >= uo.int

While uo.mana < uo.int
Wait(100)
Wend
Wait(100)

Wend
end sub

sub cheklag()
uo.deletejournal()
uo.click('backpack')
Repeat
wait(100)
Until UO.InJournal("backpack")
end sub
Mazer
Posts: 125
Joined: 2007-11-13 00:39:14

Re: Need help modifying a script

Post by Mazer »

Try this

Code: Select all

Sub magery()
var sunduk = ''#id of chest
repeat
while UO.Count('0x0F88')>10  #regents as i understand
Repeat
  UO.Cast('Poison','self')
  wait(3000)
until UO.Mana<=10

UO.WarMode('0')
Repeat
  UO.UseSkill('Meditation')
  Wait(1000)
Until UO.Mana >= UO.Int OR UO.WarMode() == 1
wend
If UO.Count('0x0F88')< 10 then
  UO.FindType('0x0F88','-1',Sunduk)
  wait(500)
  UO.Grab('100','finditem')
  wait(800)
endif
until UO.Dead()
end sub
Last edited by Mazer on 2014-02-12 15:56:55, edited 1 time in total.
install
Posts: 27
Joined: 2014-02-11 18:24:55

Re: Need help modifying a script

Post by install »

I have tried it but it says "Phrase 14 error"
Mazer
Posts: 125
Joined: 2007-11-13 00:39:14

Re: Need help modifying a script

Post by Mazer »

install wrote:I have tried it but it says "Phrase 14 error"

Mistype, changed in my first post should work.
UO>.Int
install
Posts: 27
Joined: 2014-02-11 18:24:55

Re: Need help modifying a script

Post by install »

Not working again :)
Says: "Line 23: Function not found - main
Post Reply