View unanswered posts | View active topics It is currently Mon Apr 20, 2026 8:58 am



Reply to topic  [ 4 posts ] 
 listSectorParameters 
Author Message
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post listSectorParameters
Code:
isnumber $numck $parm1
if ($numck = TRUE)
if ($parm1 > 0) and ($parm1 < sectors)
setvar $s $parm1
listSectorParameters $s $parms
echo ansi_11 "*Parameter" & #9 & ansi_10 "Value*"
setVar $b 1
   while ($b <= $parms)
      getSectorParameter $s $parms[$b] $value
      echo $parms[$b] & #9 & $value & "*"
      add $b 1
   end

end
end


will output parameters of a sector
compile this and add it to your bot

_________________
Coconut Telegraph (ICQ)#586137616
Team Speak3@ 220.244.125.70:9987
Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
Image
Jesus wounldn't Subspace Crawl


Fri Jan 08, 2010 12:13 am
Profile ICQ YIM
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1401
Location: Canada
Unread post Re: listSectorParameters
I haven't Scripted for a few months now. But I'm pretty sure the above has a few issues (output text, and ($parm1 < SECTORS)).

Code:
isnumber $numck $parm1
if ($numck = TRUE)
   if ($parm1 > 0) and ($parm1 <= SECTORS)
      setvar $s $parm1
      GOSUB :SPIT_IT_OUT
   elseif ($parm1 = 0)
      setvar $s CURRENTSECTOR
      GOSUB :SPIT_IT_OUT
   end
end
Echo "**"
HALT

:SPIT_IT_OUT
uppercase $parm2
if ($parm2 = "E")
   setVar $ERASE TRUE
end

listSectorParameters $s $parms
echo ansi_15 & "**Parameter" & ANSI_7 & "/" & ansi_10 & "Value*"
setVar $b 1
while ($b <= $parms)
   if ($ERASE)
      setSectorparameter $s $parms[$b] ""
   end
   getSectorParameter $s $parms[$b] $value
   echo ANSI_15 & $parms[$b] & ANSI_7 & "=" & ANSI_10 & $value & "*"
   add $b 1
end
RETURN


Was trolling with a case of scriptitis.
Code:
Echo "**!!HAPPY NEW YEAR!!**"

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.


Sat Jan 09, 2010 9:09 am
Profile ICQ YIM
Ensign
User avatar

Joined: Mon Jul 23, 2007 6:20 pm
Posts: 288
Location: United Kingdom
Unread post Re: listSectorParameters
WB LS. Happy new year to you too.

I was just gonna reply and say that something was missing but you beat me to it.

Now it outputs
Parameter/Value
FIGSEC=1

For every sector incl. fedspace.

_________________
Gul D'Tek (The Cardassian Hitman)
ICQ - 446445340

I'm a TW and #SD# ing you was my idea!

Very funny, Scotty. Now beam down my clothes.~ J.T.Kirk


Sat Jan 09, 2010 9:35 am
Profile ICQ
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: listSectorParameters
That snippet is right out of my bot and works just fine.
However it was meant as a example of how to use a function not as a running script.
Am am sure peeps have other uses for it.

_________________
Coconut Telegraph (ICQ)#586137616
Team Speak3@ 220.244.125.70:9987
Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
Image
Jesus wounldn't Subspace Crawl


Sat Jan 09, 2010 8:09 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 10 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.