|
Page 1 of 1
|
[ 13 posts ] |
|
zoc script questions from newbie
| Author |
Message |
|
otacon4wvu
Sergeant
Joined: Sun Sep 21, 2008 3:07 am Posts: 8 Location: West Virginia
|
 zoc script questions from newbie
I was wondering if anyone could help me out with a script that I was trying to make. The script is supose to make a certain type of planet and then quit, but I was testing it out with zoc beeps before I did anything else. I can't even get this to work, it always seems to hang up on the ans=zocwaitux line....can anyone tell me what I'm doing wrong below? /* REXX (CREATED BY ZOC LEARN MODE) */
call zoctimeout 60
call zocsynctime 250
do 1 call zocsend "uy.^Mc" ans=zocwaitux("Class M, Earth Type|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class A-FUI, Halo Planet")
select
when ans=0 then call zocbeep 1 when ans=1 then call zocbeep 2 when ans=2 then call zocbeep 3 when ans=3 then call zocbeep 4 when ans=4 then call zocbeep 5 when ans=5 then call zocbeep 6 when ans=6 then call zocbeep 7 when ans=7 then call zocbeep 8 end /* select*/ end /*do*/
I keep getting this error message: 9 +++ ans=zocwaitux("Class M, Earth Type|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class A-FUI, Halo Planet") Error 43 on line 9 of G:\Program Files\ZOC\script\Halo Maker.zrx: Routine not found
I am clueless when it comes to trying to fix this....not really sure what to do. Any help would be appreciated.
thanks, otacon
|
| Mon Nov 10, 2008 2:16 pm |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: zoc script questions from newbie
Do you use TWX at all?
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Mon Nov 10, 2008 2:18 pm |
|
 |
|
otacon4wvu
Sergeant
Joined: Sun Sep 21, 2008 3:07 am Posts: 8 Location: West Virginia
|
 Re: zoc script questions from newbie
yes, I do.
|
| Mon Nov 10, 2008 2:22 pm |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: zoc script questions from newbie
There are some really great TWX scripts that does exactly what you are looking for. Grimy Trader's has some of those, but currently down. Maybe someone will upload to NavHaz. Keep checking thread for an answer to your question so you learn.
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Mon Nov 10, 2008 2:27 pm |
|
 |
|
Scrat
Chief Warrant Officer
Joined: Sun Jan 20, 2008 5:15 am Posts: 142
|
 Re: zoc script questions from newbie
otacon4wvu wrote: 9 +++ ans=zocwaitux("Class M, Earth Type|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class A-FUI, Halo Planet") Error 43 on line 9 of G:\Program Files\ZOC\script\Halo Maker.zrx: Routine not found You have a typo: it should be ZocWaitMux( instead of ZocWaitux(
|
| Mon Nov 10, 2008 2:39 pm |
|
 |
|
otacon4wvu
Sergeant
Joined: Sun Sep 21, 2008 3:07 am Posts: 8 Location: West Virginia
|
 Re: zoc script questions from newbie
ah....I don't know why I didn't notice that. Thank you very much
|
| Mon Nov 10, 2008 2:42 pm |
|
 |
|
otacon4wvu
Sergeant
Joined: Sun Sep 21, 2008 3:07 am Posts: 8 Location: West Virginia
|
 Re: zoc script questions from newbie
OK...Maybe someone can help me with this problem. I got the script to work fine after I fixed the typo, but I cannot get the script to stop once I get the planet I want (the Halo planet) made. It is supose to name the Halo planet,Yes, but it names it No like all the other ones...What am I doing wrong?
/* REXX (CREATED BY ZOC LEARN MODE) */
call zoctimeout 60
call zocsynctime 250
DO UNTIL ans=0 call zocsend "uy" ans=zocWaitMux("Class A-FUI, Halo Planet|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class M, Earth Type")
select
when ans=0 then call zocsend "Yes^Mc" when ans=1 then call zocsend "No^Mc lzdy" when ans=2 then call zocsend "No^Mc lzdy" when ans=3 then call zocsend "No^Mc lzdy" when ans=4 then call zocsend "No^Mc lzdy" when ans=5 then call zocsend "No^Mc lzdy" when ans=6 then call zocsend "No^Mc lzdy" when ans=7 then call zocsend "No^Mc lzdy" end /* select*/ end /*do*/
thanks, otacon
|
| Mon Nov 10, 2008 3:23 pm |
|
 |
|
Big D
Veteran Op
Joined: Tue Nov 28, 2006 4:04 pm Posts: 5025
|
 Re: zoc script questions from newbie
otacon4wvu wrote: OK...Maybe someone can help me with this problem. I got the script to work fine after I fixed the typo, but I cannot get the script to stop once I get the planet I want (the Halo planet) made. It is supose to name the Halo planet,Yes, but it names it No like all the other ones...What am I doing wrong?
/* REXX (CREATED BY ZOC LEARN MODE) */
call zoctimeout 60
call zocsynctime 250
DO UNTIL ans=0 call zocsend "uy" ans=zocWaitMux("Class A-FUI, Halo Planet|Class K-BE, Desert wasteland|Class O-J, Oceanic|Class L-E, Mountainous|Class C-EJ, Glacial|Class H-KEJ, Volcanic|Class U-GJ, Vaporous/Gaseous|Class M, Earth Type")
select
when ans=0 then call zocsend "Yes^Mc" when ans=1 then call zocsend "No^Mc lzdy" when ans=2 then call zocsend "No^Mc lzdy" when ans=3 then call zocsend "No^Mc lzdy" when ans=4 then call zocsend "No^Mc lzdy" when ans=5 then call zocsend "No^Mc lzdy" when ans=6 then call zocsend "No^Mc lzdy" when ans=7 then call zocsend "No^Mc lzdy" end /* select*/ end /*do*/
thanks, otacon Your zocwaitmux format is wrong Here's an example: ans = zocwaitmux("Class A-FUI, Halo Planet", "Class K-BE, Desert wasteland") Each planet type has to be inside quotes and seperated by a comma. Also make sure each string is exact spelling.
|
| Tue Nov 11, 2008 3:00 am |
|
 |
|
otacon4wvu
Sergeant
Joined: Sun Sep 21, 2008 3:07 am Posts: 8 Location: West Virginia
|
 Re: zoc script questions from newbie
Thank you for the correction. I was getting nowhere, fast.
|
| Wed Nov 12, 2008 7:28 am |
|
 |
|
Father Cajone
Lieutenant J.G.
Joined: Wed Apr 18, 2001 2:00 am Posts: 480
|
 Re: zoc script questions from newbie
You might try the following link also as The Reverend has long been the master of ZOC scripting using REXX language...lots of good scripts there ready for your use and works very well in combination with TWX 2.04....latest version of ZOC that will support Rev's code is something like v3.14 I believe? http://www.thereverend.org/tradewars/files.html
_________________ You are forgiven...now warp out and sin!
|
| Wed Nov 12, 2008 8:32 pm |
|
 |
|
the reverend
Gameop
Joined: Thu Mar 08, 2001 3:00 am Posts: 886 Location: USA
|
 Re: zoc script questions from newbie
Father Cajone wrote: You might try the following link also as The Reverend has long been the master of ZOC scripting using REXX language...lots of good scripts there ready for your use and works very well in combination with TWX 2.04....latest version of ZOC that will support Rev's code is something like v3.14 I believe? http://www.thereverend.org/tradewars/files.htmlactually they work in zoc 5 also, but you have to download each script individually from here: http://thereverend.org/tradewars/public/files/script/
_________________ twgs : telnet://twgs.thereverend.org:5023 web : http://www.thereverend.org games : http://www.thestardock.com/twgssearch/i ... verend.org helper : http://svn.thereverend.org:8080/revhelper/
|
| Wed Nov 12, 2008 9:08 pm |
|
 |
|
Kane
Gameop
Joined: Sun Feb 26, 2006 3:00 am Posts: 1430 Location: USA
|
 Re: zoc script questions from newbie
thought it was 4.15. meh works for me 
_________________ Kane Big Game 2019 Ice 2020 HHT 2020
|
| Wed Nov 12, 2008 10:32 pm |
|
 |
|
Father Cajone
Lieutenant J.G.
Joined: Wed Apr 18, 2001 2:00 am Posts: 480
|
 Re: zoc script questions from newbie
hiya Rev...reason I sent the link I did was because you left a couple examples of coding, the script library plus a couple things related to the rexx language. Of course, for those looking for just specific scripts then your direct link to scripts is better. I have found your _makeplanet.zrx useful many times!  I have not tested it against LoneStar's Planet Creation v10 for TWX yet as I have been happy with your script. 
_________________ You are forgiven...now warp out and sin!
|
| Wed Nov 12, 2008 11:37 pm |
|
 |
|
|
Page 1 of 1
|
[ 13 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 34 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|