View unanswered posts | View active topics It is currently Mon Apr 20, 2026 6:43 pm



Reply to topic  [ 4 posts ] 
 Lets get the gears turning!! 
Author Message
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post Lets get the gears turning!!
Code:
setArray $adjsec SECTOR.WARPCOUNT[currentsector]
setVar $i 1
setVar $word ""

:trig
send "d"
settextlinetrigger line1 :getadj "Warps to Sector(s) :"
settextlinetrigger linedone :done "Command [TL="
pause

:getadj
setVar $adjline currentline
striptext $adjline "Warps to Sector(s) :"
striptext $adjline "-"
striptext $adjline "("
striptext $adjline ")"

:done
killalltriggers
while ($i <= SECTOR.WARPCOUNT[currentsector])
getword $adjline $word $i
setVar $adjsec[$i] $word
add $i 1
end

with all this cold weather you'd think more people then myself would have time on their hands. Anyone care to look over this??

_________________
“The object of war is not to die for your corp but to make the other bastard die for his.”

Boo! inc.


Wed Dec 23, 2009 8:14 am
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Lets get the gears turning!!
You don't have to do any of that. If you hit D, twxproxy will automatically parse all the data that comes in and shove it in the DB. All you need to do is pull it from the DB.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Wed Dec 23, 2009 9:07 am
Profile ICQ WWW
Lieutenant Commander
User avatar

Joined: Sun Jan 29, 2006 3:00 am
Posts: 800
Location: Iowa
Unread post Re: Lets get the gears turning!!
SECTOR.WARPS[sector][index]



so:
Code:
send "D"
setvar $i 1
while $i <= sector.warpcount[currentsector]

echo sector.warps[currentsector][$i] & "*"
add $i 1
end

sorry I didn't get back to ya last nite mobs...

_________________
#+++
The early bird may get the worm, but the second mouse gets the cheese.
#---


Wed Dec 23, 2009 9:23 am
Profile ICQ YIM
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post Re: Lets get the gears turning!!
LOL..I just wanted to point out how obviously I like to take the hard route!!

DUH!
Naw, I have never really use DB functions before so some of this is new to me. Thanks guys for the tips.

_________________
“The object of war is not to die for your corp but to make the other bastard die for his.”

Boo! inc.


Wed Dec 23, 2009 11:45 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

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