Search found 8 matches

by verY
2006-07-07 20:32:08
Forum: General
Topic: ITs possibel DUpe item with injection?
Replies: 7
Views: 3359

ofc its possible.
go to britain, buy a muffin and run this function:

Code: Select all

sub OMGXCHEAT!!!1111()
   uo.say("i should get a life")
   uo.closeuo()
end sub
by verY
2006-07-07 20:28:56
Forum: General
Topic: fun with strings
Replies: 1
Views: 1458

i finally found teh answer myself..
for those of you that care (:o) :

VAR strfullname = ""
VAR strrealname = ""
VAR irealname = 0
VAR i = 0
strfullname = uo.getname("lastattack")
for i=0 to Len(strfullname)
if strfullname[i] == "[" then
irealname = i-1
endif ...
by verY
2006-07-06 17:07:21
Forum: General
Topic: fun with strings
Replies: 1
Views: 1458

fun with strings

I want to script the following:
A function should use the journal to check if my current target (lastattack) says something.
For example it could check if he says "Im coo".
So the basic check for it would look like this:

if uo.journal(0) == uo.getname("lastattack") + ": Im coo" then

The ...
by verY
2005-08-15 15:14:53
Forum: Scripting Ore
Topic: accesing a layer
Replies: 0
Views: 742

accesing a layer

once again i have a problem.. :/

i want to get the SERIAL of an object that is hidden somewhere behind a layer. the problem is that the item is not in one of my own layers.

accessing objects in own layers is quite easy: yoko brings us the function

UO.ObjAtLayer(bank) (for example)

but ...
by verY
2005-08-12 18:56:00
Forum: Scripting Ore
Topic: differing 2 items
Replies: 4
Views: 1240

yea thx for the quick reply, and i thank you for giving even a good example..
but i already thought about checking their name in journal, and it takes simply too much time. you wouldnt want to wait for the check when you push your heal potion macro and it first has to check journal to see which ...
by verY
2005-08-12 18:04:43
Forum: Scripting Ore
Topic: differing 2 items
Replies: 4
Views: 1240

differing 2 items

ok heres my problem:
i have 2 items that have the same <type> and also the same <color>, the only thing that differs them is their <name> so how would i differentiate between them?
if you have 2 items of the same <type> you can still differ them by using their <color>.
example: usetype <type of ...
by verY
2005-07-14 20:25:26
Forum: Scripting Ore
Topic: refering to an object
Replies: 2
Views: 701

omfg thx

the misstake was actually that it has to be...

if uo.getHP("lastattack") > 0 then

... as it seems

kthx for quick reply
by verY
2005-07-14 20:12:02
Forum: Scripting Ore
Topic: refering to an object
Replies: 2
Views: 701

refering to an object

sup mates
im having just a quick question about objects
lets have a look at the following script (its dumb but it shows my problem):

sub test()
if uo.gethealth(lastattack) > 0 then
uo.print ("target alive")
endif
end sub

when i wanna exec it, it says: "variable undefined - lastattack ...