-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_empty.js
49 lines (41 loc) · 2.35 KB
/
_empty.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ________ _________
// \________\--------___ ___ ____----------/_________/
// \_______\----\\\\\\ //_ _ \\ //////-------/________/
// \______\----\\|| (( ~|~ ))) ||//------/________/
// \_____\---\\ ((\ = / ))) //----/_____/
// \____\--\_))) \ _)))---/____/
// \__/ ((( (((_/
// ヾღ彡 | -))) - ))
// =================================================================
// _empty.js
// -----------------------------------------------------------------
// author: @archangel
// SEC LVL: 1 ==** WARNING **==
// Chars: 418
// Descr: Empties your current balance and unloaded upgrades into
// your alt account (or mine if you are not carefull).
// Syntax: _empty
// =================================================================
function (context, args)
{
var ret; //
var log; //
var l = #s.scripts.lib(); //
var i; //
//SEC_LVL 3
var balance = #s.accts.balance(); // Get the current balance of your account.
//SEC_LVL 1
var upgrades = #s.sys.upgrades(); // Get the all the upgrades of your account.
ret = l.to_gc_str(balance) + " transferred: "; //
//SEC_LVL 2
log = #s.accts.xfer_gc_to({to:"loot", amount:balance}); // Tranfer the whole $balance to "loot". Change "loot" to your own name or else you will send all your money to me. You have been warned.
ret += "\t" + log.ok + "\t" + log.msg; //
for (i=upgrades.length-1; i>-1; i--) //
{
ret += "\n" + upgrades[i].name + " transferred: "; //
//SEC_LVL 1
log = #s.sys.xfer_upgrade_to({i:i, to:"loot"}); // Tranfer all the unloaded upgrades to "loot". Change "loot" to your own name or else you will send all your upgrades to me. You have been warned.
ret += "\t" + log.ok + "\t" + log.msg; //
}
return ret; // Print the log.
}