Seth^^

Event! Give everyone on your server money!

25 posts in this topic

This script is for mARMAcp > RE Editor

If you don't know what mARMAcp is, check out this thread http://www.exilemod.com/topic/26-marma-server-monitoring-live-map-re/

Here's a nice nifty script that will reward all the players in your server with a little bit of extra cash. You can use this to keep your server popular and get people to come back to your server :)

They will receive 1000$ from "God" with this script

["God", 1000] spawn {
	_amount = _this select 1;
  	_admin = _this select 0;

    ["notificationRequest",["Success", ["Money event starting :D"]]] call ExileServer_system_network_send_broadcast;
	uiSleep 1;
	["notificationRequest",["Success", ["You guys ready???"]]] call ExileServer_system_network_send_broadcast;
	uiSleep 1;

    for "_i" from 5 to 1 step -1 do {
  		["systemChatRequest", [format ["Free money from %1 in %2", _admin, _i]]] call ExileServer_system_network_send_broadcast;
		uiSleep 1;
    };

	{
		_currentAccountBalance = _x getVariable ["ExileMoney", 0];
        _currentAccountBalance = _currentAccountBalance + _amount;

        _x setVariable ["ExileMoney", _currentAccountBalance];
        format["setAccountMoney:%1:%2", _currentAccountBalance, getPlayerUID _x] call ExileServer_system_database_query_fireAndForget;
        [_x, "moneyReceivedRequest", [str _currentAccountBalance, _admin]] call ExileServer_system_network_send_to;
	} forEach allPlayers;
};

 

Edited by Seth^^
emoticon fail
  • Like 8

Share this post


Link to post
Share on other sites
Advertisement
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.