so i have done some work which works up to half way
Code:
sub karibik()
var row
var num1 = 0
var num2 = 0
var i = 0
var multiply = 1
uo.deletejournal()
while NOT uo.injournal("How much is")
wait(200)
wend
row = uo.journal(uo.injournal('How much is')-1)
while NOT row[i] == "?"
i = i + 1
wend
i = i - 1
repeat
#uo.print(row[i])
num2 = num2 + (row[i] * multiply)
i = i - 1
multiply = multiply * 10
until row[i] == " "
end sub
the variable ROW is "<NICK>: How much is 345+556?"
so if i untag the row uo.print(row[i]) then injection will print into yournal this:
6
5
5
which is GOOD!
but this script has an error BAD OPERATION FOR THIS TYPE OF VARIABLE: NUM2 on row:
num2 = num2 + (row[i] * multiply)
if i try to put a INT() or VAL() in front of row[i] then the error is gonem but uo.print(int(row[i])) or uo.print(val(row[i])) does show NOTHING at all....
so please if anybodyu can correct me?