Search found 19 matches

by Shokarta
2012-01-15 17:25:34
Forum: Help
Topic: how to uo.print this variable?
Replies: 1
Views: 1290

how to uo.print this variable?

he guys, I am using a simple walking lumberjack script, which works fine...
but if it gets stuck in the middle i need to go back on the position is started and start over again...
so I wanted to put some ID when i start (so it will ask me where to start)... works fine but if i dont know the ID of ...
by Shokarta
2011-07-25 10:48:02
Forum: Help
Topic: How to combine text to object name?
Replies: 4
Views: 1812

Re: How to combine text to object name?

thanks, how could i miss that im using VARIABLE i not only for bags but for the journal as well :)

script works fine, thanks man
by Shokarta
2011-07-25 09:45:29
Forum: Help
Topic: How to combine text to object name?
Replies: 4
Views: 1812

Re: How to combine text to object name?

thanks works fine now....

well another issue is on row 148: Runtime error - Attempting to access array out of bounds (i marked the row in the script for you)

basicly it opens the map i choose, then it moves the first bag[i] as it should, then it should open every map in the bag[i] and by position ...
by Shokarta
2011-07-24 22:30:08
Forum: Help
Topic: How to combine text to object name?
Replies: 4
Views: 1812

How to combine text to object name?

Hi guys, ive got this sorting maps script which works "teoreticaly" fine.
i THINK there is just problem on this part

while i <= max
bag&#91;i&#93; = "maps_bag_"+str(i)

while uo&#46;getserial(bag&#91;i&#93;) <> "0x00000000"


as ive got MANY objects called maps_bag_NUMBER (NUMBER is variable of ...
by Shokarta
2011-06-05 13:47:15
Forum: Help
Topic: How to count 345+556
Replies: 4
Views: 1539

Re: How to count 345+556

so i have done some work which works up to half way
sub karibik()

var row
var num1 = 0
var num2 = 0
var i = 0
var multiply = 1

uo&#46;deletejournal()

while NOT uo&#46;injournal("How much is")
wait(200)
wend

row = uo&#46;journal(uo&#46;injournal('How much is')-1)

while NOT row&#91;i ...
by Shokarta
2011-06-04 19:22:34
Forum: Help
Topic: How to count 345+556
Replies: 4
Views: 1539

How to count 345+556

Hey guys, on my shard we got a kind of jail (like a warning before they put you into real jail)
that you have to answer on a mtch questions for like 15 minutes....

question type:
<nick>: How much is 456 + 34?

and got to answer in 3s...

I dont know how to catch those two numbers into variables, so ...
by Shokarta
2011-05-10 11:08:53
Forum: Help
Topic: how to grap 50 form quantity 500 and repeat
Replies: 3
Views: 1721

Re: how to grap 50 form quantity 500 and repeat

ok sorry for misundertnding.

So what i am trying to do is an afk mining, which would always take all iron ore with me as i move....
so imagine you have a 500 iron ore and then you do a step, so you want to take the ore but because all is too heavy you have to grap 50 ore each time...

so the thing ...
by Shokarta
2011-05-09 22:12:11
Forum: Help
Topic: how to grap 50 form quantity 500 and repeat
Replies: 3
Views: 1721

how to grap 50 form quantity 500 and repeat

hey guys, ive got this:


sub grab()
uo&#46;set("finddistance","2")

uo&#46;findtype("0x19B9","-1","ground")
while UO&#46;FindCount() > 0
UO&#46;moveitem("finditem","5","ground")
wait(1000)
wend
end sub


and what im trying to do is that if i have 500 ore and cant lift it up because it too ...
by Shokarta
2011-04-28 16:44:08
Forum: Help
Topic: can yoko build own "gump" menus?
Replies: 0
Views: 3128

can yoko build own "gump" menus?

Hi guys, i wanted to make a script where some gump menu would pop up, id click on a random item, and it would make that item (like a craft menu), but it would be much more elaborate....

so what im asking... if injection can build any kind of menu to choose from, then gimme some function names and ...
by Shokarta
2011-04-19 21:00:40
Forum: I need script!
Topic: whats wrong on this basics?
Replies: 0
Views: 2517

whats wrong on this basics?

hey guys
what wrong on this 1? it should be fishing at one spot, once its done and it says "there are no fish here" then it should distance + 1 to make another spot...

but it doest, at the moment it finish the first spot and then it just stop and do nothing more...

ive tried to put just a while ...
by Shokarta
2011-01-31 06:11:05
Forum: I need script!
Topic: HELP - wait till uo.rdblclick() - pathfinding
Replies: 0
Views: 1496

HELP - wait till uo.rdblclick() - pathfinding

if i set pathfinding in UO client, then i can use UO.RDblClick(x,y)
- but that can click only as far as i can see...

so if i want to go in futher then i need to click somewhere i can see, then do it again, and again

but how can i wait till first pathfinding is done?

Ive got this which is not ...
by Shokarta
2010-12-15 19:31:04
Forum: Help
Topic: var coords="1234,567" to var x="1234" and var y="567"
Replies: 0
Views: 1293

var coords="1234,567" to var x="1234" and var y="567"

hey guys... two things... learning with yoko now...

i havea var coords="1234,567" and need to split it into two vars x and y.... how do i do that?

another thing... im using goto(x,y)

so ive tried to do goto(coords[i]) (as i have many coords variables) which returrnt that it needs two arguments ...
by Shokarta
2010-12-14 07:54:30
Forum: Help
Topic: anybody has something better then my pathfinding script?
Replies: 1
Views: 998

anybody has something better then my pathfinding script?

hey guys... was wandering if yoko can work with PATHFINDING... ive made my own script but the original pathfinding is better...


sub Go(GX,GY)
var GDIR,GnX,GnY,GKR
REPEAT
IF UO&#46;GetX() > GX then
GDIR=36
ENDIF
IF UO&#46;GetX() < GX then
GDIR=34
ENDIF
IF GDIR==36 or GDIR==34 then
REPEAT ...
by Shokarta
2010-12-14 07:51:11
Forum: Help
Topic: working with array/DIM?
Replies: 0
Views: 1215

working with array/DIM?

Hey guys... um have a very simple script, just need somebody to help me with that as this is my first time working with DIM. So I would write it in PHP and please help me to put it into yoko scripts

$count = 0;
$array = array("1234,2345","2341,312"&#46;"2341,3214","21341,1324","2313,43431"); // UO ...
by Shokarta
2010-12-08 08:07:11
Forum: Help
Topic: journal recognize players
Replies: 1
Views: 797

journal recognize players

Hey guys...

how can i make a simple script that:

IF uo.injournal("You see:")

then it try to find out if its blue/red (guess it means good carma or player killer)...

basically i want to make uo.print("test") it yoko find ANY player in joirnal by YOU SEE:

if it cant recognize a players from other ...
by Shokarta
2010-12-04 17:03:49
Forum: Help
Topic: cleaning bandage
Replies: 1
Views: 746

cleaning bandage

sub BandageClean()

UO&#46;UseType("0x0E20")
UO&#46;waittargettype("0x0B44")
Wait(200)
UO&#46;FindType("0x0E20")
Uo&#46;MoveItem("finditem","-1","backpack")

End Sub


0x0B44 is a WATER TROUGH

if i run it:
What do you want to use bloody bandage on?
Previous Targeting Cancelled
Unexpected ...
by Shokarta
2010-12-01 18:41:59
Forum: Help
Topic: How to recognize GM?
Replies: 5
Views: 1285

Re: How to recognize GM?

OK Good, so now it brings me to two ideas:

1, In yoko, can i do something like if I see some player (You see: Player1, You see: Player_Tom, atd), can i automaticaly find out his robe ObjectType? As in my shard only GMs have the robe with a cap (similar to the robe as u are ghost - but ill find ...
by Shokarta
2010-12-01 12:57:40
Forum: Help
Topic: How to recognize GM?
Replies: 5
Views: 1285

Re: How to recognize GM?

Well, in my scripts i use a construction like this:

От 30 градусного мороза отключился языковой фильтр в голове. Так что буду писать по russian
Такой штуки часто бывает мало.
Сиры, консультанты, владельцы шарда не подписываются приставкой GM.
В сфере существует специальная команда для "не ...
by Shokarta
2010-12-01 08:05:13
Forum: Help
Topic: How to recognize GM?
Replies: 5
Views: 1285

How to recognize GM?

Hey guys, is there any way how to recognize GM? I know on every shard it could be different, but im thinking about recognizing the specific type of robe that GMs use only....

another question.... how can i put into yoko script something like if any PLAYER (shouldnt be NPC, but if no other way) SAY ...