| Yoko http://forum.yoko.com.ua/ |
|
| just a little script: sos coords to Automap file... http://forum.yoko.com.ua/viewtopic.php?f=20&t=3060 |
Page 1 of 1 |
| Author: | klappo [ 2005-02-11 01:56:37 ] |
| Post subject: | just a little script: sos coords to Automap file... |
here is it. Code: - - - - - - - - - - - - - - - - - - - - - - - - - - - Note: you have to create an empty file BEFORE: "C:\personal.map" then you can use directly with Automap. i'm just posting it here 'cause i'm gettin tired to play ultima, and want to save some of my "script - products". as Sting said "Walked out this morning Don’t believe what I saw A hundred billion bottles Washed up on the shore Seems I’m not alone at being alone A hundred billion casatways Looking for a home" |
|
| Author: | AlexeyVorotnikov [ 2005-02-11 22:40:33 ] |
| Post subject: | |
yokofan! wrote: SO guys, i just wanna know how to make a decimal nuber be the most near nondecimal number...
1.1 = 1 1.9 = 2 1.555556=2 thnks int(x+0.5) |
|
| Author: | AlexeyVorotnikov [ 2005-02-12 13:28:55 ] |
| Post subject: | |
yokofan! wrote: I have already started mod klappo script, but i stopt at here: Code: coox=mid(coord,1,4) ![]() i just want mutyple mx by 60, whats the way to make this? thank u guys mid function returns a string. You should convert it to number via val function. Like this: Code: mx=val(mid(coox,3,2)) |
|
| Author: | AlexeyVorotnikov [ 2005-02-12 18:27:53 ] |
| Post subject: | |
Be aware of type of operands of + operator. If You want use it as string concatenation, You must convert all operands to string form: Code: STR(gx) + "." + STR(mx) |
|
| Author: | AlexeyVorotnikov [ 2005-02-12 23:13:58 ] |
| Post subject: | |
yokofan! wrote: The modd is preatty fishined, now i just want add some things like uo.recall() unless uo.rclick() and uo.moveitem()/uo.ignore() unless uo.grab()/uo.setreceivercontainger() and fix repeation, but i dont know how its loops, can some onde helpme?
i cant see nothink like while or goto... just subs and ifs There are 3 sorts of loops in Injection scripts: Code: while condition Need explanations? |
|
| Author: | Goggy [ 2005-02-24 05:17:06 ] |
| Post subject: | |
Try Code: gxlen= gxlen - gylen |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|