View unanswered posts | View active topics It is currently Sun Apr 19, 2026 1:29 pm



Reply to topic  [ 14 posts ] 
 Worldtrade for Perfect_haggle 
Author Message
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Worldtrade for Perfect_haggle
These 2 scripts work with mom bot

or fire off a ck script to set the $_CK_PTRADESETTING variable in the cfg file.

also needs a $mbbs var set to 1 for mbbs mode or 0 for classic/gold.


Will load Ep_haggle without menu and load for best price or blue price.

If you want to customize your own ill post some simple code to let you do it for yourself.

_________________
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


Wed Jan 13, 2010 5:49 pm
Profile ICQ YIM
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Worldtrade for Perfect_haggle
Ill try attachment again


Attachments:
Pack2WorldTrades for Perfect Haggle.zip [38.1 KiB]
Downloaded 428 times

_________________
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
Wed Jan 13, 2010 6:07 pm
Profile ICQ YIM
Ensign
User avatar

Joined: Mon Jul 23, 2007 6:20 pm
Posts: 288
Location: United Kingdom
Unread post Re: Worldtrade for Perfect_haggle
Pls post the code.
Also can i change the variables in the .cfg file from within a script??
It will have to be before i run perfect_haggle tho wont it?

_________________
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


Wed Jan 13, 2010 6:43 pm
Profile ICQ
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: Worldtrade for Perfect_haggle
Njoy ; the whole purpose of .cfg is for a place to drop those
LOADVAR
and
SAVEVAR variables to play with within other scripts.

So write a script to setVar and then savevar and you've changed one.

check by loading it to look... echo to show yourself.

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Wed Jan 13, 2010 6:59 pm
Profile WWW
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Worldtrade for Perfect_haggle
Code:
reqRecording
logging off

gosub :9_dupescripts~scriptcheck

setVar $Header~Script "World Trade"
loadvar $_CK_PTRADESETTING
if ($_CK_PTRADESETTING = 0)
loadvar $PTRADESETTING
setvar $_CK_PTRADESETTING $PTRADESETTING
end
setvar $PercTrade $_CK_PTRADESETTING
setvar $PPT~PercTrade $_CK_PTRADESETTING

listActiveScripts $scripts
setvar $a 1
while ($a <= $scripts)
lowercase $scripts[$a]
if ($scripts[$a] = "ep_haggle2010.cts")
stop ep_haggle2010
end
add $a 1
end

:set_haggle
setvar $file GAMENAME & "_HaggleOpt.txt"
delete $file
loadvar $mbbs
if ($mbbs = TRUE)
setvar $mbbs_ep "On"
else
setvar $mbbs_ep "Off"
end
write $file "Off"
write $file "Off"
write $file $mbbs_ep
write $file $_CK_PTRADESETTING
write $file "On"
write $file "Off"
write $file "Active"
write $file "On"

killalltriggers
seteventtrigger hag0 :hag0 "SCRIPT LOADED"
setdelaytrigger wait0 :wait 30000
load ep_haggle2010
send "*"
waiton "Command [TL="
pause
:hag0
killalltriggers
# check location
waiton #179
send "*"
waiton "ommand"
waiton #179
send "*"
waiton "ommand"
cutText CURRENTLINE $location 1 12
if ($location <> "Command [TL=")
        clientMessage "This script must be run from the command menu"
        halt
end



# get defaults    <<<<<<<<< Look for this line in 2_worldtrade.ts



Replace the Pack2 /include/Haggle.ts with Haggle.ts that comes with Perfect Haggle Zip file haggle



At this point you can change include files. I set up seperate directory for this as to keep a clean copy of Pack 2 includes.


For example in the above files the drop fig under ports has been changed from a toll fig to a defensive one. and the default for xtra macro set to f1*cd/ as a default.

You can preset the menu variables and have it completely botable with no menu if you want.

Let me know if you need anything else to get it running.


Remember EP Perfect haggle needs the MBBS and Ptrade numbers to work.

_________________
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


Wed Jan 13, 2010 7:01 pm
Profile ICQ YIM
Gameop
User avatar

Joined: Tue Oct 10, 2006 2:00 am
Posts: 112
Location: In my bubble...
Unread post Re: Worldtrade for Perfect_haggle
<removed>


Last edited by Daala on Wed Jan 13, 2010 11:17 pm, edited 2 times in total.



Wed Jan 13, 2010 7:04 pm
Profile
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Worldtrade for Perfect_haggle
$MBBS=0 <<<<<<this one

$INTERNALALIENS=1
$INTERNALFERRENGI=1
$MAX_COMMANDS=255
$INACTIVE_TIME=300
$COLONIST_REGEN=65535
$MAX_PLANETS_PER_SECTOR=3
$PHOTON_DURATION=1
$PHOTONS_ENABLED=1
$DEBRIS_LOSS=100

$PTRADESETTING=100 <<<<<<<this one

from a mombot starup in config file.




The include mentioned on first line is a Duplicate script preventer.


Code:
#:9_dupescripts~scriptcheck
:scriptcheck
#set array
listActiveScripts $scripts
listActiveScripts $scriptsx
#end load background scripts check for duplicates
:duplicates
setvar $a 1
:duplicates0
while ($a <= $scripts)
setvar $b 1
lowercase $scripts[$a]
while ($b <= $scripts)
lowercase $scriptsx[$b]
if (($a <> $b) and ($scripts[$a] = $scriptsx[$b]))
stop $scripts[$a]
goto :scriptcheck
end
add $b 1
end
add $a 1
end
return




add if anyone asks I wrote this not Oz

_________________
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


Wed Jan 13, 2010 7:07 pm
Profile ICQ YIM
Ensign
User avatar

Joined: Mon Jul 23, 2007 6:20 pm
Posts: 288
Location: United Kingdom
Unread post Re: Worldtrade for Perfect_haggle
Vid Kid wrote:
Njoy ; the whole purpose of .cfg is for a place to drop those
LOADVAR
and
SAVEVAR variables to play with within other scripts.

So write a script to setVar and then savevar and you've changed one.

check by loading it to look... echo to show yourself.


Hi Vid. Thanx.
I know i can do that with Mombot variables. I was trying to do that with the HaggleOpt.txt cfg file. Change the variables without having to delete and write a new HaggleOpt.txt cfg file like PH did in his very helpful example. Thanx for that PH.
It prolly will work by deleting it, gonna try that later tonight.
Thanx again.

_________________
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


Thu Jan 14, 2010 4:18 pm
Profile ICQ
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Worldtrade for Perfect_haggle
EP doesnt store the variables in the cfg file.
Mombot does.
Which it is why you must rewrite the TXT file then start or restart the Haggle to change settings.
As far as I know the text file is only poled off the menu close or on start. So you cannot change from blue to best to worst without closing the Haggle and restarting it.

Perhaps EP will include a texttrigger in the haggle so we can force a read of the file in the next version.

_________________
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


Thu Jan 14, 2010 6:41 pm
Profile ICQ YIM
Ensign
User avatar

Joined: Mon Jul 23, 2007 6:20 pm
Posts: 288
Location: United Kingdom
Unread post Re: Worldtrade for Perfect_haggle
Parrothead wrote:
EP doesnt store the variables in the cfg file.
Mombot does.
Which it is why you must rewrite the TXT file then start or restart the Haggle to change settings.
As far as I know the text file is only poled off the menu close or on start. So you cannot change from blue to best to worst without closing the Haggle and restarting it.

Perhaps EP will include a texttrigger in the haggle so we can force a read of the file in the next version.


Parrothead wrote:
------ Get your copy of Dny_Spoof-O-matic.cts from Grimytrader.com ------

Thats y grimy's went down, every1 searching for that lol

Parrothead wrote:
EP doesnt store the variables in the cfg file.
Mombot does.

If you DIDNT get that the wrong way round... you lost me there. sry.
EP Haggle DOES store the variables i wanna access from Mombot

_________________
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


Thu Jan 14, 2010 7:16 pm
Profile ICQ
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Worldtrade for Perfect_haggle
No Haggle stores the setting in the text file called GAMENAME_HaggleOpt.txt

It's in the code in the first post.

_________________
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


Thu Jan 14, 2010 7:27 pm
Profile ICQ YIM
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Worldtrade for Perfect_haggle
Parrothead wrote:
Ill try attachment again


Just a heads up, both of these hang on the avoid mine prompt. Any chance of a recompile using the PPT.ts I posted here?

I like them both BTW

Helix

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Fri Feb 12, 2010 3:45 pm
Profile WWW
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post Re: Worldtrade for Perfect_haggle
Helix wrote:
Parrothead wrote:
Ill try attachment again


Just a heads up, both of these hang on the avoid mine prompt. Any chance of a recompile using the PPT.ts I posted here?

I like them both BTW

Helix


Yes I can repost.
Water pump broke so may be a day or 2

_________________
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 Feb 13, 2010 12:58 am
Profile ICQ YIM
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Worldtrade for Perfect_haggle
kk,

Thanks

Helix

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Sat Feb 13, 2010 1:54 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

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