Jump to content

[file editing] Scrapyard license time - more options for longer scraptime


FritzHugo3

Recommended Posts

You want buy more time for scraping in a scrapyard?

Nothing to download, only little editing a single textfile.

Time for this 2-5 min. (very easy)

 

First of all steps - always

make backups from youre files (always before editing, moding thinks - normal way ;-) )

 

Sencond of all steps - always, and the normal way in windows

Never use the Windows Editor! use Notepad++ (never editing things with the standart windowseditor)

 

Third, if you dont know what is the explorer, how can i find folders, what is an editor, what are windows, who are you, how old are you and whats youre name... smile, aks a friend for help ;-).

 

 

Go to folder ...\Steam\steamapps\common\Avorion\data\scripts\entity\merchants\scrapyard.lua

open the scrapyard.lua with notepad++

 

- Search and copy the hole Line

 

(by me line 148)

    salvageTab:createButton(Rect(size.x - 210, 230, 200 + size.x - 210, 40 + 230), "Buy License"%_t, "onBuyLicenseButton4Pressed")

 

- insert after Button4 line

    salvageTab:createButton(Rect(size.x - 210, 280, 200 + size.x - 210, 40 + 280), "Buy License"%_t, "onBuyLicenseButton5Pressed")

 

 

- Search  and copy hole 3 Lines:

function Scrapyard.onBuyLicenseButton4Pressed()
    invokeServerFunction("buyLicense", 60 * 60)
end

(First 60 are seconds * last 60 are amount. eg. you want 3h. 60 * 180 - the costs of the license trade are automatical three times higher for the 3 times longer permission.

For the second number you can use youre own time, but yaou must pay for it)

 

- insert after the three copied lines

function Scrapyard.onBuyLicenseButton5Pressed()
    invokeServerFunction("buyLicense", 60 * 180)
end

 

- save the file and start youre game

 

have fun with it.

 

 

(The text before the button are emty but i thing this is ok. if you want the text, you must search and copy other lines too ;-) ).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...