Notices

Go Back   FileFront Forums > The Games! > S.T.A.L.K.E.R. > S.T.A.L.K.E.R. Shadow of Chernobyl > S.T.A.L.K.E.R. SoC Modding, Mapping and Editing

Remember Me?

S.T.A.L.K.E.R. SoC Modding, Mapping and Editing
Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot!

Reply
 
LinkBack Thread Tools Display Modes
Old December 5th, 2008   #1
GF makes me horny
Zombie
 
Reptile4077's Avatar
 
Join Date: May 25th, 2008
Status: Available
97 posts, 0 likes.
Rep Power: 0
Reptile4077 is a n00b
Send a message via Skype™ to Reptile4077
Default repair prices

I know it's an question that is often asked but I can't figure it out...
so some people want to reduce the price for an weaponrepair, because they're much more expansive than the weapon itself.
Some people posted that you have to change these lines :
Code:
--local weapon_profit_margin = X.xx
--local armor_profit_margin = X.xx
but it doesn't really matter if the numbers are 1.3 or o.3 or even 0.03, they're always over the original price of the weapon, even if the weapon is just half damaged...
Maybe I'm wrong, but the file for Sidrovith (the guy at the beginnig) is in "escape_dialog.script",right?
and I tried it with new beginnig -3 times. so I can exclude that, too

so it would be nice, if you could help me

Reptile4077 is offline   Reply With Quote
Old December 5th, 2008   #2
GF Pwns Me!
 
Join Date: May 21st, 2008
Status: Available
57 posts, 0 likes.
Rep Power: 0
Dan7e is a n00b
Default Re: repair prices

The file you might looking for is the trade_trader.ltx in the misc folder in the config folder. It has the list of items that Sidorovich buys and sells (and what he has in stock). I'm not sure, but I might be right when I say, the determined number in this file (the sum of the two number under the [trader_*_sell] titles after every items divided by 2 -> (first number+second number)/2) multiplies the price of the weapon determine the price of the weapon that the trader sells(for example: the fort basicly cost 500 ru, in the file there's 'wpn_fort = 2, 8', so (2+8)/2= 5. The result cost would be 500*5= 2500 ru). And the repair cost would be 2500, when the fort pistol is on 0%, on 50% it would be 1250ru. I guess.
Hope it helped.
Dan7e is offline   Reply With Quote
Old December 6th, 2008   #3
GF makes me horny
Zombie
 
Reptile4077's Avatar
 
Join Date: May 25th, 2008
Status: Available
97 posts, 0 likes.
Rep Power: 0
Reptile4077 is a n00b
Send a message via Skype™ to Reptile4077
Default Re: repair prices

I see you actualy want to help me but this is, as you said, for the price he would sell you that gun...
You can ask something like "Sidorovich do you repair weapons and armor?"
This is an example:
my Fora12 [Fort] cost 600 (basic), half condition --> 818 repair
so I checked the buy-price its doubled so 1200. It fits in your idea but if I change the price to original so I can buy it for 600 the repair still costs 818 rubel.
I hope I expressed myself understandable

Reptile4077 is offline   Reply With Quote
Old December 6th, 2008   #4
GF Pwns Me!
 
Join Date: May 21st, 2008
Status: Available
57 posts, 0 likes.
Rep Power: 0
Dan7e is a n00b
Default Re: repair prices

Actually I'n not really used the repair option, but I check this out.
Is this an independent mod or part of a big one, like O.L.(I use that)?
Dan7e is offline   Reply With Quote
Old December 6th, 2008   #5
Dread pwns me!
 
Join Date: November 21st, 2007
Status: Available
465 posts, 0 likes.
Rep Power: 18
rkteckt is a n00b
Default Re: repair prices

Ok, its been a while since I did this, but its a surefire way to reduce the cost of repairs.

If you look in the file where you found the llocal trader profit margin line, the lines below it are related to the cost of repairs for different conditions.

heres a sample:

function trader_check_money_s1(trader, actor)
local weapon_profit_margin = oblivion_lost.sid_weap_prof()
local item_in_slot = db.actor:item_in_slot(1)
if item_in_slot ~= nil then
local item_repair_cost = math.floor( (1-item_in_slot:condition()) * item_in_slot:cost() * weapon_profit_margin *.01)
if item_repair_cost > 0 and db.actor:money() >= item_repair_cost and 1 > item_in_slot:condition() then
return true
end
end
return false
end


Those lines are basically a simple addition multiplication problem to determine the cost......

(1-item_in_slot:condition()) * item_in_slot:cost() * weapon_profit_margin *.01)

see that .01 there?

thats why i dont pay much for repairs anymore.....

as far as I recall anyway, I havent played in a while.

I forgot to add that you need to add that to each formula in each script for each level where there is a repair trader................
rkteckt is offline   Reply With Quote
Old December 7th, 2008   #6
GF makes me horny
Zombie
 
Reptile4077's Avatar
 
Join Date: May 25th, 2008
Status: Available
97 posts, 0 likes.
Rep Power: 0
Reptile4077 is a n00b
Send a message via Skype™ to Reptile4077
Default Re: repair prices

It works!
Thank you guys.

Reptile4077 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PC diagnostics/repair? Wintensity Tech Discussion 4 February 14th, 2009 10:27 PM
Repair? FN_lewrbm69 ST:SC3 Modding, Mapping and Editing 7 May 10th, 2007 09:31 AM
Repair 130th Erich LOTR: Battle For Middle Earth 2 Discussion 2 March 12th, 2006 12:03 PM
cd repair sevenofnine408 ST:BC Problems, Errors and Help 2 June 13th, 2003 01:13 PM


All times are GMT -7.







   
 





This site is part of the Defy Media Gaming network

The best serving of video game culture, since 2001. Whether you're looking for news, reviews, walkthroughs, or the biggest collection of PC gaming files on the planet, Game Front has you covered. We also make no illusions about gaming: it's supposed to be fun. Browse gaming galleries, humor lists, and honest, short-form reporting. Game on!

FileFront Forums - Terms of Service - Top
Theme Selection
Copyright © 2002-2016 Game Front. All rights reserved. Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Forum Theme by Danny King (FileTrekker), Sheepeep & Graeme(rs)
RSS Feed Widget by FeedWind