Page 1 of 2 12 LastLast
Results 1 to 20 of 24

Thread: My Fq Wish List

  1. #1

    Default

    I would love to see the following added to funeralquest:

    1)The option to save unused turns at the bank:
    I tried the mod that suposedly saves turns it almost ruined my server..not good.

    2) The option to exchange turns for gold tags..this would balance out and give new players the chance to catch up in a tournament setting.

  2. #2
    Guest

    Default

    Yeah, I would not add a script like that to a server that is already running without first backing up information or installing it on a server that has been completely reset.

    But in case I am misunderstanding inspite of what has been just said, please clarify hyow it almost ruined your server?

    The script only saves turns that people do not use assuming that they log in, and not use all of the turns. It does not save turns according to how many days that they have not logged in.

    I actually had corrected some issues with the script and added some more functionality with the intention to release a version 0.20, but I lost whatever script I had when my home computer went kaputt. It was a shame, since I had it to where it was able to save days according

    Also, I had lost a daily lottery and raffling and script and some other stuff I intended to add to di-mart guns, such as the ability to pay and see what other weapons another person has. Whether I can do much more scripting will depend on whether I can obtain a good personal computer or not in the near future. The sooner the better.

  3. #3
    Guest

    Default

    Quote Originally Posted by [b
    Quote[/b] ]It was a shame, since I had it to where it was able to save days according.....
    meaning "according to how many days a person has not logged in.

    Also, you can't run the save turns script on a server that is running di-mart guns without doing a lot of modifications to the di-mart guns script. I should clarify that on the fqmods.cjb.net webpage.

  4. #4

    Default

    Yeah but the problem was when it would try to run maintenance a whole bunch of errors would pop up on my system maybe it crashed with the mods that I have installed?

  5. #5
    Guest

    Default

    If you still have the debug info for the server when it was occuring I'd like to have a look at it to see what the problem was and if any of my scripts were involved.

    I know how to get the turnsaver script to work with di-mart guns, just need to combine the two correctly.

  6. #6

    Default

    Quote Originally Posted by [b
    Quote[/b] (Guest @ April 12 2004,19:53)]If you still have the debug info for the server when it was occuring I'd like to have a look at it to see what the problem was and if any of my scripts were involved.

    I know how to get the turnsaver script to work with di-mart guns, just need to combine the two correctly.
    you must have read my mind here it is:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> WARNING&#58; 04-08 7&#58;04 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 7&#58;04 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 7&#58;04 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;05 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;06 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 7&#58;06 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 7&#58;06 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 6&#41;
    WARNING&#58; 04-08 7&#58;07 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;maint_player.c - Line 7&#41;
    WARNING&#58; 04-08 7&#58;10 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 7&#58;10 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 7&#58;10 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 7&#58;43 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 7&#58;43 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 7&#58;43 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 7&#58;53 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 7&#58;53 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 7&#58;53 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 7&#58;57 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 7&#58;57 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 7&#58;57 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 8&#58;26 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 8&#58;26 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 8&#58;26 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;
    WARNING&#58; 04-08 11&#58;18 PM&#58;C_PLAYER_TURNS_LEFT is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 16&#41;
    WARNING&#58; 04-08 11&#58;18 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 24&#41;
    WARNING&#58; 04-08 11&#58;18 PM&#58;C_PLAYER_TURNS_TODAY is an undeclared variable. &#40;File&#58; script&#92;newday_player.c - Line 28&#41;[/QUOTE]<span id='postcolor'>

  7. #7

    Default

    this is the newday script that I am running now:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//This is run after logging in for the first time.  Don&#39;t do anything that requires a wait such as a send packet
    //command.  The player&#39;s id who is logging in is placed into i_my_id.  You can modify turns and things here.

    void OnCreate&#40;&#41;
    {

    }

    void DimartMidnightSupplyClerk&#40;&#41;
    {

    string st_name = GetNameFromID&#40;i_my_id&#41;;
    LogMsg&#40;&#34;The di-mart midnight supply clerk is rummaging up todays inventory for player &#036;i_my_id&#036;.&#34;&#41;;

    String st_ITEM_A = &#34;NULL&#34;;
    String st_ITEM_B = &#34;Brass Knuckles&#34;;
    String st_ITEM_C = &#34;Switch Blades&#34;;
    String st_ITEM_D = &#34;Swords&#34;;
    String st_ITEM_E = &#34;Bayonettes&#34;;
    String st_ITEM_F = &#34;Darringers&#34;;
    String st_ITEM_G = &#34;Revolvers&#34;;
    String st_ITEM_H = &#34;Desert Eagles&#34;;
    String st_ITEM_I = &#34;AR-15&#34;;
    String st_ITEM_J = &#34;M-16&#34;;
    String st_ITEM_K = &#34;MA140&#34;;
    String st_ITEM_L = &#34;AK47&#34;;
    /String st_ITEM_M = &#34;UZIs&#34;;
    String st_ITEM_N = &#34;Chain Mail&#34;;
    String st_ITEM_O = &#34;Kevlar&#34;;
    String st_ITEM_P = &#34;Bullet Proof Vests&#34;;
    String st_ITEM_Q = &#34;Swat Armor&#34;;
    /String st_ITEM_R = &#34;Scopes&#34;;

    int i_tempA;
    int i_tempB;
    int i_tempC;
    int i_tempD;
    int i_tempE;
    int i_tempF;
    int i_tempG;
    int i_tempH;
    int i_tempI;
    int i_tempJ;
    int i_tempK;
    int i_tempL;
    int i_tempM;
    int i_tempN;
    int i_tempO;
    int i_tempP;
    int i_tempQ;
    int i_tempR;

    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_1, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_2, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_3, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_4, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_5, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_6, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_7, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_8, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_9, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_10, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_11, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_12, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_13, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_14, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_15, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_16, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_17, 0&#41;;
    SetCustomByID&#40;i_my_id,  C_RANDOM_RESTOCK_AMOUNT_18, 0&#41;;

    int stock_number_A = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_1&#41;;
    int stock_number_B = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_2&#41;;
    int stock_number_C = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_3&#41;;
    int stock_number_D = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_4&#41;;
    int stock_number_E = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_5&#41;;
    int stock_number_F = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_6&#41;;
    int stock_number_G = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_7&#41;;
    int stock_number_H = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_8&#41;;
    int stock_number_I = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_9&#41;;
    int stock_number_J = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_10&#41;;
    int stock_number_K = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_11&#41;;
    int stock_number_L = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_12&#41;;
    /int stock_number_M = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_13&#41;;
    int stock_number_N = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_14&#41;;
    int stock_number_O = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_15&#41;;
    int stock_number_P = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_16&#41;;
    int stock_number_Q = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_17&#41;;
    /int stock_number_R = GetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_18&#41;;



    i_tempA = RandomRange&#40;0, 2&#41;;

    if  &#40;i_tempA == 1&#41;
    {
    if &#40;stock_number_A &#60;= 1&#41;
    {
    int A_random = RandomRange&#40;0,25&#41;;
    int temp_A_random;
    temp_A_random = 0
    temp_A_random += A_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_1,temp_A_random&#41;;
    }
    }

    i_tempB = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempB == 1&#41;
    {
    if &#40;stock_number_B &#60;= 1&#41;
    {
    int B_random = RandomRange&#40;0,25&#41;;
    int temp_B_random;
    temp_B_random = 0
    temp_B_random += B_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_2,temp_B_random&#41;;
    }
    }

    i_tempC = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempC == 1&#41;
    {
    if &#40;stock_number_C &#60;= 1&#41;
    {
    int C_random = RandomRange&#40;0,25&#41;;
    int temp_C_random;
    temp_C_random = 0
    temp_C_random += C_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_3,temp_C_random&#41;;
    }
    }

    i_tempD = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempD == 1&#41;
    {
    if &#40;stock_number_D &#60;= 1&#41;
    {
    int D_random = RandomRange&#40;0,25&#41;;
    int temp_D_random;
    temp_D_random = 0
    temp_D_random += D_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_4,temp_D_random&#41;;
    }
    }

    i_tempE = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempE == 1&#41;
    {
    if &#40;stock_number_E &#60;= 1&#41;
    {
    int E_random = RandomRange&#40;0,25&#41;;
    int temp_E_random;
    temp_E_random = 0
    temp_E_random += E_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_5,temp_E_random&#41;;
    }
    }

    i_tempF = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempF == 1&#41;
    {
    if &#40;stock_number_F &#60;= 1&#41;
    {
    int F_random = RandomRange&#40;0,25&#41;;
    int temp_F_random;
    temp_F_random = 0
    temp_F_random += F_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_6,temp_F_random&#41;;
    }
    }

    i_tempG = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempG == 1&#41;
    {
    if &#40;stock_number_G &#60;= 1&#41;
    {
    int G_random = RandomRange&#40;0,25&#41;;
    int temp_G_random;
    temp_G_random = 0
    temp_G_random += G_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_7,temp_G_random&#41;;
    }
    }

    i_tempH = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempH == 1&#41;
    {
    if &#40;stock_number_H &#60;= 1&#41;
    {
    int H_random = RandomRange&#40;0,25&#41;;
    int temp_H_random;
    temp_H_random = 0
    temp_H_random += H_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_8,temp_H_random&#41;;
    }
    }

    i_tempI = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempI == 1&#41;
    {
    if &#40;stock_number_I &#60;= 1&#41;
    {
    int II_random = RandomRange&#40;0,25&#41;;
    int temp_II_random;
    temp_II_random = 0
    temp_II_random += II_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_9,temp_II_random&#41;;
    }
    }

    i_tempJ = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempJ == 1&#41;
    {
    if &#40;stock_number_J &#60;= 1&#41;
    {
    int J_random = RandomRange&#40;0,25&#41;;
    int temp_J_random;
    temp_J_random = 0
    temp_J_random += J_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_10,temp_J_random&#41;;
    }
    }

    i_tempK = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempK == 1&#41;
    {
    if &#40;stock_number_K &#60;= 1&#41;
    {
    int K_random = RandomRange&#40;0,25&#41;;
    int temp_K_random;
    temp_K_random = 0
    temp_K_random += K_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_11,temp_K_random&#41;;
    }
    }

    i_tempL = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempL == 1&#41;
    {
    if &#40;stock_number_L &#60;= 1&#41;
    {
    int L_random = RandomRange&#40;0,25&#41;;
    int temp_L_random;
    temp_L_random = 0
    temp_L_random += L_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_12,temp_L_random&#41;;
    }
    }

    /i_tempM = RandomRange&#40;0, 2&#41;;
    /if  &#40;i_tempM == 1&#41;
    /{
    /if &#40;stock_number_M &#60;= 1&#41;
    /{
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_13,1&#41;;
    /}
    /}

    i_tempN = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempN == 1&#41;
    {
    if &#40;stock_number_N &#60;= 1&#41;
    {
    int N_random = RandomRange&#40;0,25&#41;;
    int temp_N_random;
    temp_N_random = 0
    temp_N_random += N_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_14,temp_N_random&#41;;
    }
    }

    i_tempO = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempO == 1&#41;
    {
    if &#40;stock_number_O &#60;= 1&#41;
    {
    int O_random = RandomRange&#40;0,25&#41;;
    int temp_O_random;
    temp_O_random = 0
    temp_O_random += O_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_15,temp_O_random&#41;;
    }
    }

    i_tempP = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempP == 1&#41;
    {
    if &#40;stock_number_P &#60;= 1&#41;
    {
    int P_random = RandomRange&#40;0,25&#41;;
    int temp_P_random;
    temp_P_random = 0
    temp_P_random += P_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_16,temp_P_random&#41;;
    }
    }

    i_tempQ = RandomRange&#40;0, 2&#41;;
    if  &#40;i_tempQ == 1&#41;
    {
    if &#40;stock_number_Q &#60;= 1&#41;
    {
    int Q_random = RandomRange&#40;0,25&#41;;
    int temp_Q_random;
    temp_Q_random = 0
    temp_Q_random += Q_random
    SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_17,temp_Q_random&#41;;
    }
    }

    /i_tempR = RandomRange&#40;0, 2&#41;;
    /if  &#40;i_tempR == 1&#41;
    /{
    /if &#40;stock_number_R &#60;= 1&#41;
    /{
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_18,1&#41;;
    /}
    /}

    /// If you would like some static values edit this...
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_1,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_2,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_3,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_4,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_5,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_6,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_7,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_8,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_9,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_10,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_11,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_12,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_14,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_15,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_16,1&#41;;
    /SetCustomByID&#40;i_my_id, C_RANDOM_RESTOCK_AMOUNT_17,1&#41;;

    LogMsg&#40;&#34;done.&#34;&#41;;
    }

    void Main&#40;&#41;
    {
    DimartMidnightSupplyClerk&#40;&#41;;
    }
    [/QUOTE]<span id='postcolor'>

    and this is yours:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//This is run after logging in for the first time.  Don&#39;t do anything that requires a wait such as a send packet
    //command.  The player&#39;s id who is logging in is placed into i_my_id.  You can modify turns and things here.

    void Main&#40;&#41;
    {
    LogMsg&#40;&#34;Executing left over turns function for &#036;i_my_id&#036;&#34;&#41;;
    int first;
    int second;
    int turns_temp;
    int extra_turns;
    int current_turns;
    LogMsg&#40;&#34;Getting current amount of turns&#34;&#41;;
    current_turns = GetTurns&#40;i_my_id&#41;
    LogMsg&#40;&#34;done&#34;&#41;;
    LogMsg&#40;&#34;Getting extra turns&#34;&#41;;
    extra_turns = GetCustomByID&#40;i_my_id,C_PLAYER_TURNS_LEFT &#41;;
    LogMsg&#40;&#34;done&#34;&#41;;
    LogMsg&#40;&#34;Doing math&#34;&#41;;
    turns_temp = 0
    turns_temp += current_turns
    turns_temp += extra_turns
    LogMsg&#40;&#34;Now adding extra turns&#34;&#41;;
    ModTurns&#40;i_my_id, extra_turns&#41;;
    SetCustomByID&#40;i_my_id, C_PLAYER_TURNS_TODAY,turns_temp&#41;
    LogMsg&#40;&#34;done&#34;&#41;;
    LogMsg&#40;&#34;Error checking&#34;&#41;;
    first = GetTurns&#40;i_my_id&#41;
    second = GetCustomByID&#40;i_my_id,C_PLAYER_TURNS_TODAY &#41;;
    if &#40;first &#33;= second&#41;
    {
    LogMsg&#40;&#34;ERROR&#33; OUT OF BOUNDS&#34;&#41;;
    }
    LogMsg&#40;&#34;No errors&#34;&#41;;
    LogMsg&#40;&#34;Finished executing left over turns function for &#036;i_my_id&#036;&#34;&#41;;
    }[/QUOTE]<span id='postcolor'>

    this is main_players running now:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//This is run after maint every day for EACH existing player.  Don&#39;t do anything that requires a wait such as a send packet
    //command.  The player&#39;s id is placed into i_my_id.




    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////
    void OnCreate&#40;&#41;
    {
      int fights;
      string msg;
    }
    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////
    void BurgularAlarmMaintenance&#40;&#41;
    {
    LogMsg&#40; &#34;Beginning Burgular Alarm Maintenance for &#036;i_my_id&#036;.&#34;&#41;;
    int i_bdays = GetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM_DAYS&#41;;
    int i_batt = GetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM_ATTACK&#41;;
    int i_gold_tags = GetTags&#40;i_my_id, C_GOLD_TAG&#41;;
    int i_silv_tags = GetTags&#40;i_my_id, C_SILVER_TAG&#41;;
    int i_wood_tags = GetTags&#40;i_my_id, C_WOOD_TAG&#41;;


    if &#40;i_bdays &#62;= 1&#41;
    {
    if &#40;i_gold_tags &#62;= 10&#41;
    {
    LogMsg&#40; &#34;Subtracting gold tags&#34;&#41;;
    i_gold_tags -= 10;
    SetTags&#40;i_my_id, C_GOLD_TAG, i_gold_tags&#41;;
    msg = &#34;Di-mart security payment sevice has deducted &#40;`y10`w&#41; gold tags from your account.&#34;;
    mailText&#40;i_my_id, msg&#41;;
    goto att_fin;
    }

    if &#40;i_silv_tags &#62;= 20&#41;
    {
    LogMsg&#40; &#34;Subtracting silver tags&#34;&#41;;
    i_silv_tags -= 20;
    SetTags&#40;i_my_id, C_SILVER_TAG, i_silv_tags&#41;;
    msg = &#34;Di-mart security payment sevice has deducted &#40;`y20`w&#41; silver tags from your account.&#34;;
    mailText&#40;i_my_id, msg&#41;;
    goto att_fin;
    }

    if &#40;i_wood_tags &#62;= 40&#41;
    {
    LogMsg&#40; &#34;Subtracting wood tags&#34;&#41;;
    i_wood_tags -= 40;
    SetTags&#40;i_my_id, C_WOOD_TAG, i_wood_tags&#41;;
    msg = &#34;Di-mart security payment sevice has deducted &#40;`y40`w&#41; wood tags from your account.&#92;n&#92;n&#34;;
    mailText&#40;i_my_id, msg&#41;;
    goto att_fin;
    }
    }

    int temp_burg;
    LogMsg&#40; &#34;no tags&#33; substracting service days&#33;&#34;&#41;;
    temp_burg = 1
    i_bdays -= temp_burg
    msg = &#34;You now have &#40;`y&#036;i_bdays&#036;`w&#41; days credit left for your burgular alarm system.&#92;n&#92;n&#34;;
    if &#40;i_bdays &#60;= 0&#41;
    {
    LogMsg&#40; &#34;ABORTING&#33; &#036;i_my_id&#036; had no service days to subtract&#33;&#34;&#41;;
    String st_home_name = GetHomeNameFromID&#40;i_my_id&#41;;
    AddToNews&#40;&#34;`^The owner of &#036;st_home_name&#036; forgot to pay bills today.&#92;n&#92;n&#34;&#41;;
    SetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM_DAYS, 0&#41;;
    SetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM_ATTACK, 0&#41;;
    SetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM, 1&#41;;
    msg = &#34;You have run out of service days for your burgular alarm system.&#92;n&#92;n&#34;;
    mailText&#40;i_my_id, msg&#41;;
    goto att_fin;
    }
    mailText&#40;i_my_id, msg&#41;;
    SetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM_DAYS, i_bdays&#41;;
    SetCustomByID&#40;i_my_id, C_CUSTOM_BURGULAR_ALARM_ATTACK, 1&#41;;



    att_fin&#58;
    LogMsg&#40; &#34;Done.&#34;&#41;;
    }
    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void ChainmailMaint&#40;&#41;
    {
         LogMsg&#40; &#34;Processing Chainmail Armor Maintnance for &#036;i_my_id&#036;.&#34;&#41;;
         int cm_str = GetCustomByID&#40;i_my_id, C_CUSTOM_CHAIN_MAIL_STRENGTH&#41;;
         fights = GetPlayerFights&#40;i_my_id&#41;;

         if &#40;fights == 0&#41;
         {
         LogMsg&#40; &#34; ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.&#34;&#41;;
         }

         if &#40;fights &#62;= 1&#41;
         {
            LogMsg&#40; &#34; &#036;i_my_id&#036; had &#036;fights&#036; fight&#40;s&#41; yesterday. Continuing with maintenance&#34;&#41;;
            int cm_random = RandomRange&#40;5,25&#41;;
            int temp_cm_random;
            temp_cm_random = 0
            temp_cm_random += cm_random
            cm_str -= temp_cm_random;
            SetCustomByID&#40;i_my_id, C_CUSTOM_CHAIN_MAIL_STRENGTH, cm_str&#41;;

    if &#40;cm_str &#62;= 1&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,1&#41;;
    }
    if &#40;cm_str &#62;= 2&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,2&#41;;
    }
    if &#40;cm_str &#62;= 3&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,3&#41;;
    }
    if &#40;cm_str &#62;= 4&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,4&#41;;
    }
    if &#40;cm_str &#62;= 5&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,5&#41;;
    }
    if &#40;cm_str &#62;= 6&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,6&#41;;
    }
    if &#40;cm_str &#62;= 7&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,7&#41;;
    }
    if &#40;cm_str &#62;= 8&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,8&#41;;
    }
    if &#40;cm_str &#62;= 9&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,9&#41;;
    }
    if &#40;cm_str &#62;= 10&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,10&#41;;
    }
    if &#40;cm_str &#62;= 11&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,11&#41;;
    }
    if &#40;cm_str &#62;= 12&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,12&#41;;
    }
    if &#40;cm_str &#62;= 13&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,13&#41;;
    }
    if &#40;cm_str &#62;= 14&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,14&#41;;
    }
    if &#40;cm_str &#62;= 15&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,15&#41;;
    }
    if &#40;cm_str &#62;= 16&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,16&#41;;
    }
    if &#40;cm_str &#62;= 17&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,17&#41;;
    }
    if &#40;cm_str &#62;= 18&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,18&#41;;
    }
    if &#40;cm_str &#62;= 19&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,19&#41;;
    }
    if &#40;cm_str &#62;= 20&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,20&#41;;
    }
    if &#40;cm_str &#62;= 21&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,21&#41;;
    }
    if &#40;cm_str &#62;= 22&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,22&#41;;
    }
    if &#40;cm_str &#62;= 23&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,23&#41;;
    }
    if &#40;cm_str &#62;= 24&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,24&#41;;
    }
    if &#40;cm_str &#62;= 25&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,25&#41;;
    }
    if &#40;cm_str &#62;= 26&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,26&#41;;
    }
    if &#40;cm_str &#62;= 27&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,27&#41;;
    }
    if &#40;cm_str &#62;= 28&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,28&#41;;
    }
    if &#40;cm_str &#62;= 29&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,29&#41;;
    }
    if &#40;cm_str &#62;= 30&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,30&#41;;
    }
    if &#40;cm_str &#62;= 31&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,31&#41;;
    }
    if &#40;cm_str &#62;= 32&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,32&#41;;
    }
    if &#40;cm_str &#62;= 33&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,33&#41;;
    }
    if &#40;cm_str &#62;= 34&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,34&#41;;
    }
    if &#40;cm_str &#62;= 35&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,35&#41;;
    }
    if &#40;cm_str &#62;= 36&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,36&#41;;
    }
    if &#40;cm_str &#62;= 37&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,37&#41;;
    }
    if &#40;cm_str &#62;= 38&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,38&#41;;
    }
    if &#40;cm_str &#62;= 39&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,39&#41;;
    }
    if &#40;cm_str &#62;= 40&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,40&#41;;
    }
    if &#40;cm_str &#62;= 41&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,41&#41;;
    }
    if &#40;cm_str &#62;= 42&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,42&#41;;
    }
    if &#40;cm_str &#62;= 43&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,43&#41;;
    }
    if &#40;cm_str &#62;= 44&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,44&#41;;
    }
    if &#40;cm_str &#62;= 45&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,45&#41;;
    }
    if &#40;cm_str &#62;= 46&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,46&#41;;
    }
    if &#40;cm_str &#62;= 47&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,47&#41;;
    }
    if &#40;cm_str &#62;= 48&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,48&#41;;
    }
    if &#40;cm_str &#62;= 49&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,49&#41;;
    }
    if &#40;cm_str &#62;= 50&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,50&#41;;
    }
    if &#40;cm_str &#62;= 51&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,51&#41;;
    }
    if &#40;cm_str &#62;= 52&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,52&#41;;
    }
    if &#40;cm_str &#62;= 53&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,53&#41;;
    }
    if &#40;cm_str &#62;= 54&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,54&#41;;
    }
    if &#40;cm_str &#62;= 55&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,55&#41;;
    }
    if &#40;cm_str &#62;= 56&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,56&#41;;
    }
    if &#40;cm_str &#62;= 57&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,57&#41;;
    }
    if &#40;cm_str &#62;= 58&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,58&#41;;
    }
    if &#40;cm_str &#62;= 59&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,59&#41;;
    }
    if &#40;cm_str &#62;= 60&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,60&#41;;
    }
    if &#40;cm_str &#62;= 61&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,61&#41;;
    }
    if &#40;cm_str &#62;= 62&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,62&#41;;
    }
    if &#40;cm_str &#62;= 63&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,63&#41;;
    }
    if &#40;cm_str &#62;= 64&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,64&#41;;
    }
    if &#40;cm_str &#62;= 65&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,65&#41;;
    }
    if &#40;cm_str &#62;= 66&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,66&#41;;
    }
    if &#40;cm_str &#62;= 67&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,67&#41;;
    }
    if &#40;cm_str &#62;= 68&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,68&#41;;
    }
    if &#40;cm_str &#62;= 69&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,69&#41;;
    }
    if &#40;cm_str &#62;= 70&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,70&#41;;
    }
    if &#40;cm_str &#62;= 71&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,71&#41;;
    }
    if &#40;cm_str &#62;= 72&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,72&#41;;
    }
    if &#40;cm_str &#62;= 73&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,73&#41;;
    }
    if &#40;cm_str &#62;= 74&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,74&#41;;
    }
    if &#40;cm_str &#62;= 75&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,75&#41;;
    }
    if &#40;cm_str &#62;= 76&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,76&#41;;
    }
    if &#40;cm_str &#62;= 77&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,77&#41;;
    }
    if &#40;cm_str &#62;= 78&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,78&#41;;
    }
    if &#40;cm_str &#62;= 79&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,79&#41;;
    }
    if &#40;cm_str &#62;= 80&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,80&#41;;
    }
    if &#40;cm_str &#62;= 81&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,81&#41;;
    }
    if &#40;cm_str &#62;= 82&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,82&#41;;
    }
    if &#40;cm_str &#62;= 83&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,83&#41;;
    }
    if &#40;cm_str &#62;= 84&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,84&#41;;
    }
    if &#40;cm_str &#62;= 85&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,85&#41;;
    }
    if &#40;cm_str &#62;= 86&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,86&#41;;
    }
    if &#40;cm_str &#62;= 87&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,87&#41;;
    }
    if &#40;cm_str &#62;= 88&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,88&#41;;
    }
    if &#40;cm_str &#62;= 89&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,89&#41;;
    }
    if &#40;cm_str &#62;= 90&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,90&#41;;
    }
    if &#40;cm_str &#62;= 91&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,91&#41;;
    }
    if &#40;cm_str &#62;= 92&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,92&#41;;
    }
    if &#40;cm_str &#62;= 93&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,93&#41;;
    }
    if &#40;cm_str &#62;= 94&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,94&#41;;
    }
    if &#40;cm_str &#62;= 95&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,95&#41;;
    }
    if &#40;cm_str &#62;= 96&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,96&#41;;
    }
    if &#40;cm_str &#62;= 97&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,97&#41;;
    }
    if &#40;cm_str &#62;= 98&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,98&#41;;
    }
    if &#40;cm_str &#62;= 99&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,99&#41;;
    }
    if &#40;cm_str == 100&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,100&#41;;
    }

             int cm_integrity_str = GetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH&#41;;

       msg = &#34;You chain mail has lost a few new links from the &#40;&#036;fights&#036;&#41; fight&#40;s&#41; you had yesterday .&#92;n&#34;;
       msg += &#34;`wArmor Integrity&#58;`y &#036;cm_integrity_str&#036;&#92;n&#34;;


           if &#40;cm_str &#62;= 75&#41;
           {
           msg += &#34;Your armor integrity level is normal&#34;;
           }

           if &#40;cm_str &#62;= 51&#41;
           {
           if &#40;cm_str &#60;= 74&#41;
           {
           msg += &#34;Watch your stats&#33; Armor integrity level in decline&#33;&#34;;
           }
           }

           if &#40;cm_str &#62;= 26&#41;
           {
           if &#40;cm_str &#60;= 50&#41;
           {
           msg += &#34;Warning, your armor integrity level is nearing critical&#33;&#34;;
           }
           }


           if &#40;cm_str &#62;= 11&#41;
           {
           if &#40;cm_str &#60;= 25&#41;
           {
           msg += &#34;Warning, your armor integrity level is critical&#33;&#34;;
           }
           }
     
           if &#40;cm_str &#60; 10&#41;
           {
       ModMaxHP&#40;i_my_id, -100&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_ARMOR_ONCE, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_CHAIN_MAIL_STRENGTH, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_CHAIN_MAIL, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0&#41;;
       msg = &#34;Your chain mail has been damaged beyond repair.&#34;;
       msg += &#34;You have now lost 100 hitpoints&#34;;
           }

    mailText&#40;i_my_id, msg&#41;;
         }  
    LogMsg&#40;&#34;Done.&#34;&#41;;
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void KevlarMaint&#40;&#41;
    {
         LogMsg&#40; &#34;Processing Kevlar Armor Maintnance for &#036;i_my_id&#036;.&#34;&#41;;

         int kv_str = GetCustomByID&#40;i_my_id, C_CUSTOM_KEVLAR_STRENGTH&#41;;
         fights = GetPlayerFights&#40;i_my_id&#41;;

         if &#40;fights == 0&#41;
         {
         LogMsg&#40; &#34; ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.&#34;&#41;;
         }

         if &#40;fights &#62;= 1&#41;  
         {
            LogMsg&#40; &#34; &#036;i_my_id&#036; had &#036;fights&#036; fight&#40;s&#41; yesterday. Continuing with maintenance&#34;&#41;;
            int kv_random = RandomRange&#40;10,25&#41;;
            int temp_kv_random;
            temp_kv_random = 0
            temp_kv_random += kv_random
            kv_str -= temp_kv_random;
            SetCustomByID&#40;i_my_id, C_CUSTOM_KEVLAR_STRENGTH, kv_str&#41;;

    if &#40;kv_str &#62;= 2&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,1&#41;;
    }
    if &#40;kv_str &#62;= 4&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,2&#41;;
    }
    if &#40;kv_str &#62;= 6&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,3&#41;;
    }
    if &#40;kv_str &#62;= 8&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,4&#41;;
    }
    if &#40;kv_str &#62;= 10&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,5&#41;;
    }
    if &#40;kv_str &#62;= 12&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,6&#41;;
    }
    if &#40;kv_str &#62;= 14&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,7&#41;;
    }
    if &#40;kv_str &#62;= 16&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,8&#41;;
    }
    if &#40;kv_str &#62;= 18&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,9&#41;;
    }
    if &#40;kv_str &#62;= 20&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,10&#41;;
    }
    if &#40;kv_str &#62;= 22&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,11&#41;;
    }
    if &#40;kv_str &#62;= 24&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,12&#41;;
    }
    if &#40;kv_str &#62;= 26&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,13&#41;;
    }
    if &#40;kv_str &#62;= 28&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,14&#41;;
    }
    if &#40;kv_str &#62;= 30&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,15&#41;;
    }
    if &#40;kv_str &#62;= 32&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,16&#41;;
    }
    if &#40;kv_str &#62;= 34&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,17&#41;;
    }
    if &#40;kv_str &#62;= 36&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,18&#41;;
    }
    if &#40;kv_str &#62;= 38&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,19&#41;;
    }
    if &#40;kv_str &#62;= 40&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,20&#41;;
    }
    if &#40;kv_str &#62;= 42&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,21&#41;;
    }
    if &#40;kv_str &#62;= 44&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,22&#41;;
    }
    if &#40;kv_str &#62;= 46&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,23&#41;;
    }
    if &#40;kv_str &#62;= 48&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,24&#41;;
    }
    if &#40;kv_str &#62;= 50&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,25&#41;;
    }
    if &#40;kv_str &#62;= 52&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,26&#41;;
    }
    if &#40;kv_str &#62;= 54&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,27&#41;;
    }
    if &#40;kv_str &#62;= 56&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,28&#41;;
    }
    if &#40;kv_str &#62;= 58&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,29&#41;;
    }
    if &#40;kv_str &#62;= 60&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,30&#41;;
    }
    if &#40;kv_str &#62;= 62&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,31&#41;;
    }
    if &#40;kv_str &#62;= 64&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,32&#41;;
    }
    if &#40;kv_str &#62;= 66&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,33&#41;;
    }
    if &#40;kv_str &#62;= 68&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,34&#41;;
    }
    if &#40;kv_str &#62;= 70&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,35&#41;;
    }
    if &#40;kv_str &#62;= 72&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,36&#41;;
    }
    if &#40;kv_str &#62;= 74&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,37&#41;;
    }
    if &#40;kv_str &#62;= 76&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,38&#41;;
    }
    if &#40;kv_str &#62;= 78&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,39&#41;;
    }
    if &#40;kv_str &#62;= 80&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,40&#41;;
    }
    if &#40;kv_str &#62;= 82&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,41&#41;;
    }
    if &#40;kv_str &#62;= 84&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,42&#41;;
    }
    if &#40;kv_str &#62;= 86&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,43&#41;;
    }
    if &#40;kv_str &#62;= 88&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,44&#41;;
    }
    if &#40;kv_str &#62;= 90&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,45&#41;;
    }
    if &#40;kv_str &#62;= 92&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,46&#41;;
    }
    if &#40;kv_str &#62;= 94&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,47&#41;;
    }
    if &#40;kv_str &#62;= 96&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,48&#41;;
    }
    if &#40;kv_str &#62;= 98&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,49&#41;;
    }
    if &#40;kv_str &#62;= 100&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,50&#41;;
    }
    if &#40;kv_str &#62;= 102&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,51&#41;;
    }
    if &#40;kv_str &#62;= 104&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,52&#41;;
    }
    if &#40;kv_str &#62;= 106&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,53&#41;;
    }
    if &#40;kv_str &#62;= 108&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,54&#41;;
    }
    if &#40;kv_str &#62;= 110&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,55&#41;;
    }
    if &#40;kv_str &#62;= 112&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,56&#41;;
    }
    if &#40;kv_str &#62;= 114&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,57&#41;;
    }
    if &#40;kv_str &#62;= 116&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,58&#41;;
    }
    if &#40;kv_str &#62;= 118&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,59&#41;;
    }
    if &#40;kv_str &#62;= 120&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,60&#41;;
    }
    if &#40;kv_str &#62;= 122&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,61&#41;;
    }
    if &#40;kv_str &#62;= 124&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,62&#41;;
    }
    if &#40;kv_str &#62;= 126&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,63&#41;;
    }
    if &#40;kv_str &#62;= 128&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,64&#41;;
    }
    if &#40;kv_str &#62;= 130&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,65&#41;;
    }
    if &#40;kv_str &#62;= 132&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,66&#41;;
    }
    if &#40;kv_str &#62;= 134&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,67&#41;;
    }
    if &#40;kv_str &#62;= 136&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,68&#41;;
    }
    if &#40;kv_str &#62;= 138&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,69&#41;;
    }
    if &#40;kv_str &#62;= 140&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,70&#41;;
    }
    if &#40;kv_str &#62;= 142&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,71&#41;;
    }
    if &#40;kv_str &#62;= 144&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,72&#41;;
    }
    if &#40;kv_str &#62;= 146&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,73&#41;;
    }
    if &#40;kv_str &#62;= 148&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,74&#41;;
    }
    if &#40;kv_str &#62;= 150&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,75&#41;;
    }
    if &#40;kv_str &#62;= 152&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,76&#41;;
    }
    if &#40;kv_str &#62;= 154&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,77&#41;;
    }
    if &#40;kv_str &#62;= 156&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,78&#41;;
    }
    if &#40;kv_str &#62;= 158&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,79&#41;;
    }
    if &#40;kv_str &#62;= 160&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,80&#41;;
    }
    if &#40;kv_str &#62;= 162&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,81&#41;;
    }
    if &#40;kv_str &#62;= 164&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,82&#41;;
    }
    if &#40;kv_str &#62;= 166&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,83&#41;;
    }
    if &#40;kv_str &#62;= 168&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,84&#41;;
    }
    if &#40;kv_str &#62;= 170&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,85&#41;;
    }
    if &#40;kv_str &#62;= 172&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,86&#41;;
    }
    if &#40;kv_str &#62;= 174&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,87&#41;;
    }
    if &#40;kv_str &#62;= 176&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,88&#41;;
    }
    if &#40;kv_str &#62;= 178&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,89&#41;;
    }
    if &#40;kv_str &#62;= 180&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,90&#41;;
    }
    if &#40;kv_str &#62;= 182&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,91&#41;;
    }
    if &#40;kv_str &#62;= 184&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,92&#41;;
    }
    if &#40;kv_str &#62;= 186&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,93&#41;;
    }
    if &#40;kv_str &#62;= 188&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,94&#41;;
    }
    if &#40;kv_str &#62;= 190&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,95&#41;;
    }
    if &#40;kv_str &#62;= 192&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,96&#41;;
    }
    if &#40;kv_str &#62;= 194&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,97&#41;;
    }
    if &#40;kv_str &#62;= 196&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,98&#41;;
    }
    if &#40;kv_str &#62;= 198&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,99&#41;;
    }
    if &#40;kv_str == 200&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,100&#41;;
    }

    int kv_integrity_str = GetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH&#41;;

      msg = &#34;You kevlar gained a couple new tears.&#92;n&#34;;
      msg += &#34;`wArmor Integrity&#58;`y &#036;kv_integrity_str&#036;&#92;n&#34;;

           if &#40;kv_str &#62;= 75&#41;
           {
           msg += &#34;Your armor integrity level is normal&#34;;
           }

           if &#40;kv_str &#62;= 51&#41;
           {
           if &#40;kv_str &#60;= 74&#41;
           {
           msg += &#34;Watch your stats&#33; Armor integrity level in decline&#33;&#34;;
           }
           }

           if &#40;kv_str &#62;= 26&#41;
           {
           if &#40;kv_str &#60;= 50&#41;
           {
           msg += &#34;Warning, your armor integrity level is nearing critical&#33;&#34;;
           }
           }


           if &#40;kv_str &#62;= 11&#41;
           {
           if &#40;kv_str &#60;= 25&#41;
           {
           msg += &#34;Warning, your armor integrity level is critical&#33;&#34;;
           }
           }



           if &#40;kv_str &#60; 10&#41;
           {
       ModMaxHP&#40;i_my_id, -200&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_ARMOR_ONCE, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_KEVLAR_STRENGTH, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_KEVLAR, 0&#41;;
             SetCustomByID&#40;i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0&#41;;  
       msg = &#34;Your kevlar has been damaged beyond repair.&#34;;
       msg += &#34;You have now lost 200 hit points&#34;;
           }

    mailText&#40;i_my_id, msg&#41;;
         }
    LogMsg&#40;&#34;Done.&#34;&#41;;
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void BulletProofVestMaint&#40;&#41;
    {
         LogMsg&#40; &#34;Processing Bullet Proof Vest Armor Maintnance for &#036;i_my_id&#036;.&#34;&#41;;



         int bv_str = GetCustomByID&#40;i_my_id, C_CUSTOM_BULLET_PROOF_VEST_STRENGTH&#41;;
         fights = GetPlayerFights&#40;i_my_id&#41;;

         if &#40;fights == 0&#41;
         {
         LogMsg&#40; &#34; ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.&#34;&#41;;
         }

         if &#40;fights &#62;= 1&#41;  
         {
            LogMsg&#40; &#34; &#036;i_my_id&#036; had &#036;fights&#036; fight&#40;s&#41; yesterday. Continuing with maintenance&#34;&#41;;
            int bv_random = RandomRange&#40;25,40&#41;;
            int temp_bv_random;
            temp_bv_random = 0
            temp_bv_random += bv_random
            bv_str -= temp_bv_random;
            SetCustomByID&#40;i_my_id, C_CUSTOM_BULLET_PROOF_VEST_STRENGTH, bv_str&#41;;

    if &#40;bv_str &#62;= 3&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,1&#41;;
    }
    if &#40;bv_str &#62;= 7&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,2&#41;;
    }
    if &#40;bv_str &#62;= 10&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,3&#41;;
    }
    if &#40;bv_str &#62;= 14&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,4&#41;;
    }
    if &#40;bv_str &#62;= 17&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,5&#41;;
    }
    if &#40;bv_str &#62;= 21&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,6&#41;;
    }
    if &#40;bv_str &#62;= 24&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,7&#41;;
    }
    if &#40;bv_str &#62;= 28&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,8&#41;;
    }
    if &#40;bv_str &#62;= 31&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,9&#41;;
    }
    if &#40;bv_str &#62;= 35&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,10&#41;;
    }
    if &#40;bv_str &#62;= 39&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,11&#41;;
    }
    if &#40;bv_str &#62;= 42&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,12&#41;;
    }
    if &#40;bv_str &#62;= 46&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,13&#41;;
    }
    if &#40;bv_str &#62;= 49&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,14&#41;;
    }
    if &#40;bv_str &#62;= 52&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,15&#41;;
    }
    if &#40;bv_str &#62;= 56&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,16&#41;;
    }
    if &#40;bv_str &#62;= 60&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,17&#41;;
    }
    if &#40;bv_str &#62;= 63&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,18&#41;;
    }
    if &#40;bv_str &#62;= 67&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,19&#41;;
    }
    if &#40;bv_str &#62;= 70&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,20&#41;;
    }
    if &#40;bv_str &#62;= 73&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,21&#41;;
    }
    if &#40;bv_str &#62;= 77&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,22&#41;;
    }
    if &#40;bv_str &#62;= 80&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,23&#41;;
    }
    if &#40;bv_str &#62;= 84&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,24&#41;;
    }
    if &#40;bv_str &#62;= 87&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,25&#41;;
    }
    if &#40;bv_str &#62;= 91&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,26&#41;;
    }
    if &#40;bv_str &#62;= 95&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,27&#41;;
    }
    if &#40;bv_str &#62;= 98&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,28&#41;;
    }
    if &#40;bv_str &#62;= 102&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,29&#41;;
    }
    if &#40;bv_str &#62;= 105&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,30&#41;;
    }
    if &#40;bv_str &#62;= 109&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,31&#41;;
    }
    if &#40;bv_str &#62;= 112&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,32&#41;;
    }
    if &#40;bv_str &#62;= 116&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,33&#41;;
    }
    if &#40;bv_str &#62;= 119&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,34&#41;;
    }
    if &#40;bv_str &#62;= 123&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,35&#41;;
    }
    if &#40;bv_str &#62;= 126&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,36&#41;;
    }
    if &#40;bv_str &#62;= 130&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,37&#41;;
    }
    if &#40;bv_str &#62;= 133&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,38&#41;;
    }
    if &#40;bv_str &#62;= 137&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,39&#41;;
    }
    if &#40;bv_str &#62;= 140&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,40&#41;;
    }
    if &#40;bv_str &#62;= 144&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,41&#41;;
    }
    if &#40;bv_str &#62;= 147&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,42&#41;;
    }
    if &#40;bv_str &#62;= 151&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,43&#41;;
    }
    if &#40;bv_str &#62;= 144&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,44&#41;;
    }
    if &#40;bv_str &#62;= 147&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,45&#41;;
    }
    if &#40;bv_str &#62;= 151&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,46&#41;;
    }
    if &#40;bv_str &#62;= 154&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,47&#41;;
    }
    if &#40;bv_str &#62;= 158&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,48&#41;;
    }
    if &#40;bv_str &#62;= 161&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,49&#41;;
    }
    if &#40;bv_str &#62;= 175&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,50&#41;;
    }
    if &#40;bv_str &#62;= 178&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,51&#41;;
    }
    if &#40;bv_str &#62;= 182&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,52&#41;;
    }
    if &#40;bv_str &#62;= 185&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,53&#41;;
    }
    if &#40;bv_str &#62;= 189&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,54&#41;;
    }

    if &#40;bv_str &#62;= 192&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,55&#41;;
    }
    if &#40;bv_str &#62;= 194&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,56&#41;;
    }
    if &#40;bv_str &#62;= 199&#41;

    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,57&#41;;
    }

    if &#40;bv_str &#62;= 203&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,58&#41;;
    }
    if &#40;bv_str &#62;= 207&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,59&#41;;
    }
    if &#40;bv_str &#62;= 210&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,60&#41;;
    }
    if &#40;bv_str &#62;= 214&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,61&#41;;
    }
    if &#40;bv_str &#62;= 217&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,62&#41;;
    }
    if &#40;bv_str &#62;= 221&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,63&#41;;
    }
    if &#40;bv_str &#62;= 224&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,64&#41;;
    }
    if &#40;bv_str &#62;= 228&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,65&#41;;
    }

    if &#40;bv_str &#62;= 231&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,66&#41;;
    }
    if &#40;bv_str &#62;= 235&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,67&#41;;
    }
    if &#40;bv_str &#62;= 242&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,68&#41;;
    }
    if &#40;bv_str &#62;= 245&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,69&#41;;
    }
    if &#40;bv_str &#62;= 249&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,70&#41;;
    }
    if &#40;bv_str &#62;= 252&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,71&#41;;
    }
    if &#40;bv_str &#62;= 256&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,72&#41;;
    }
    if &#40;bv_str &#62;= 259&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,73&#41;;
    }

    if &#40;bv_str &#62;= 263&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,74&#41;;
    }
    if &#40;bv_str &#62;= 267&#41;

    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,75&#41;;
    }
    if &#40;bv_str &#62;= 270&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,76&#41;;
    }
    if &#40;bv_str &#62;= 274&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,77&#41;;
    }
    if &#40;bv_str &#62;= 277&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,78&#41;;
    }
    if &#40;bv_str &#62;= 280&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,79&#41;;
    }
    if &#40;bv_str &#62;= 281&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,80&#41;;
    }
    if &#40;bv_str &#62;= 284&#41;

    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,81&#41;;
    }
    if &#40;bv_str &#62;= 288&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,82&#41;;
    }

    if &#40;bv_str &#62;= 291&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,83&#41;;
    }
    if &#40;bv_str &#62;= 295&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,84&#41;;
    }
    if &#40;bv_str &#62;= 298&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,85&#41;;
    }
    if &#40;bv_str &#62;= 302&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,86&#41;;
    }
    if &#40;bv_str &#62;= 305&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,87&#41;;
    }
    if &#40;bv_str &#62;= 308&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,88&#41;;
    }
    if &#40;bv_str &#62;= 312&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,89&#41;;
    }
    if &#40;bv_str &#62;= 315&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,90&#41;;
    }
    if &#40;bv_str &#62;= 319&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,91&#41;;
    }
    if &#40;bv_str &#62;= 322&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,92&#41;;
    }

    if &#40;bv_str &#62;= 326&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,93&#41;;
    }
    if &#40;bv_str &#62;= 329&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,94&#41;;
    }
    if &#40;bv_str &#62;= 332&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,95&#41;;
    }
    if &#40;bv_str &#62;= 336&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,96&#41;;
    }
    if &#40;bv_str &#62;= 339&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,97&#41;;
    }
    if &#40;bv_str &#62;= 343&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,98&#41;;
    }
    if &#40;bv_str &#62;= 347&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,99&#41;;
    }
    if &#40;bv_str == 350&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,100&#41;;
    }
    int bpv_integrity_str = GetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH&#41;;

       msg = &#34;You bullet proof vest is beginning to wear out.&#92;n&#34;;
       msg += &#34;`wArmor Integrity&#58;`y &#036;bpv_integrity_str&#036;&#92;n&#34;;


           if &#40;bv_str &#62;= 75&#41;
           {
           msg += &#34;Your armor integrity level is normal&#34;;
           }

           if &#40;bv_str &#62;= 51&#41;
           {
           if &#40;bv_str &#60;= 74&#41;
           {
           msg += &#34;Watch your stats&#33; Armor integrity level in decline&#33;&#34;;
           }
           }

           if &#40;bv_str &#62;= 26&#41;
           {
           if &#40;bv_str &#60;= 50&#41;
           {
           msg += &#34;Warning, your armor integrity level is nearing critical&#33;&#34;;
           }
           }


           if &#40;bv_str &#62;= 11&#41;
           {
           if &#40;bv_str &#60;= 25&#41;
           {
           msg += &#34;Warning, your armor integrity level is critical&#33;&#34;;
           }
           }

           if &#40;bv_str &#60; 10&#41;
           {
       ModMaxHP&#40;i_my_id, -350&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_ARMOR_ONCE, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_BULLET_PROOF_VEST_STRENGTH, 0&#41;;
       SetCustomByID&#40;i_my_id, C_CUSTOM_BULLET_PROOF_VEST, 0&#41;;
             SetCustomByID&#40;i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0&#41;;  
       msg = &#34;Your bullet proof vest has been damaged beyond repair.&#34;;
       msg += &#34;You have now lost 350 hit points.&#34;;
           }
    mailText&#40;i_my_id, msg&#41;;
         }  
    /LogMsg&#40;&#34;Done.&#34;&#41;;
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void SwatGearMaint&#40;&#41;
    {
         LogMsg&#40; &#34;Processing Swat Gear Armor Maintnance for &#036;i_my_id&#036;.&#34;&#41;;



         int swat_str = GetCustomByID&#40;i_my_id, C_CUSTOM_SWAT_GEAR_STRENGTH&#41;;
         fights = GetPlayerFights&#40;i_my_id&#41;;
         if &#40;fights == 0&#41;
         {
         LogMsg&#40; &#34; ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.&#34;&#41;;
         }
         if &#40;fights &#62;= 1&#41;
         {
            LogMsg&#40; &#34; &#036;i_my_id&#036; had &#036;fights&#036; fight&#40;s&#41; yesterday. Continuing with maintenance&#34;&#41;;
            int swat_random = RandomRange&#40;10,50&#41;;
            int temp_swat_random;
            temp_swat_random = 0
            temp_swat_random += swat_random
            swat_str -= temp_swat_random;
            SetCustomByID&#40;i_my_id, C_CUSTOM_SWAT_GEAR_STRENGTH, swat_str&#41;;



    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH, swat_str&#41;;

    if &#40;swat_str &#62;= 5&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,1&#41;;
    }
    if &#40;swat_str &#62;= 10&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,2&#41;;
    }
    if &#40;swat_str &#62;= 15&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,3&#41;;
    }
    if &#40;swat_str &#62;= 20&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,4&#41;;
    }
    if &#40;swat_str &#62;= 25&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,5&#41;;
    }
    if &#40;swat_str &#62;= 30&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,6&#41;;
    }
    if &#40;swat_str &#62;= 35&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,7&#41;;
    }
    if &#40;swat_str &#62;= 40&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,8&#41;;
    }
    if &#40;swat_str &#62;= 45&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,9&#41;;
    }
    if &#40;swat_str &#62;= 50&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,10&#41;;
    }
    if &#40;swat_str &#62;= 55&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,11&#41;;
    }
    if &#40;swat_str &#62;= 60&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,12&#41;;
    }
    if &#40;swat_str &#62;= 65&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,13&#41;;
    }
    if &#40;swat_str &#62;= 70&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,14&#41;;
    }
    if &#40;swat_str &#62;= 75&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,15&#41;;
    }
    if &#40;swat_str &#62;= 80&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,16&#41;;
    }
    if &#40;swat_str &#62;= 85&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,17&#41;;
    }
    if &#40;swat_str &#62;= 90&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,18&#41;;
    }
    if &#40;swat_str &#62;= 95&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,19&#41;;
    }
    if &#40;swat_str &#62;= 100&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,20&#41;;
    }
    if &#40;swat_str &#62;= 105&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,21&#41;;
    }
    if &#40;swat_str &#62;= 110&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,22&#41;;
    }
    if &#40;swat_str &#62;= 115&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,23&#41;;
    }
    if &#40;swat_str &#62;= 120&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,24&#41;;
    }
    if &#40;swat_str &#62;= 125&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,24&#41;;
    }
    if &#40;swat_str &#62;= 130&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,25&#41;;
    }
    if &#40;swat_str &#62;= 135&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,26&#41;;
    }
    if &#40;swat_str &#62;= 140&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,27&#41;;
    }
    if &#40;swat_str &#62;= 145&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,28&#41;;
    }
    if &#40;swat_str &#62;= 150&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,29&#41;;
    }
    if &#40;swat_str &#62;= 155&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,30&#41;;
    }
    if &#40;swat_str &#62;= 160&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,31&#41;;
    }
    if &#40;swat_str &#62;= 165&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,32&#41;;
    }
    if &#40;swat_str &#62;= 170&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,33&#41;;
    }
    if &#40;swat_str &#62;= 175&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,34&#41;;
    }
    if &#40;swat_str &#62;= 180&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,35&#41;;
    }
    if &#40;swat_str &#62;= 185&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,36&#41;;
    }
    if &#40;swat_str &#62;= 190&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,37&#41;;
    }
    if &#40;swat_str &#62;= 195&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,38&#41;;
    }
    if &#40;swat_str &#62;= 200&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,39&#41;;
    }
    if &#40;swat_str &#62;= 205&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,40&#41;;
    }
    if &#40;swat_str &#62;= 210&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,41&#41;;
    }
    if &#40;swat_str &#62;= 215&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,42&#41;;
    }
    if &#40;swat_str &#62;= 220&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,43&#41;;
    }
    if &#40;swat_str &#62;= 225&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,44&#41;;
    }
    if &#40;swat_str &#62;= 230&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,45&#41;;
    }
    if &#40;swat_str &#62;= 235&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,46&#41;;
    }
    if &#40;swat_str &#62;= 240&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,47&#41;;
    }
    if &#40;swat_str &#62;= 245&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,48&#41;;
    }
    if &#40;swat_str &#62;= 250&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,49&#41;;
    }
    if &#40;swat_str &#62;= 255&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,50&#41;;
    }
    if &#40;swat_str &#62;= 260&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,51&#41;;
    }
    if &#40;swat_str &#62;= 265&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,52&#41;;
    }
    if &#40;swat_str &#62;= 270&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,53&#41;;
    }
    if &#40;swat_str &#62;= 275&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,54&#41;;
    }
    if &#40;swat_str &#62;= 280&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,55&#41;;
    }
    if &#40;swat_str &#62;= 285&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,56&#41;;
    }
    if &#40;swat_str &#62;= 290&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,57&#41;;
    }
    if &#40;swat_str &#62;= 295&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,58&#41;;
    }
    if &#40;swat_str &#62;= 300&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,59&#41;;
    }
    if &#40;swat_str &#62;= 305&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,60&#41;;
    }
    if &#40;swat_str &#62;= 310&#41;
    {
    SetCustomByID&#40;i_my_id, C_TOTAL_ARMOR_STRENGTH,61&#41;;
    }
    if &#40;swat_str &#62;=

  8. #8

    Default

    this is the Init I am running:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//This is run as the server starts up and inits the scripting system.  Don&#39;t use anything that would cause
    //a delay here.


    //*********** ANY CHANGES TO THIS SCRIPT REQUIRE YOU TO RESTART THE SERVER&#33;&#33;&#33;&#33;&#33;&#33; ************
    void Main&#40;&#41;
    {
     //declare global variables to be used system wide, these are constants but since the scripting
     //system doesn&#39;t support constants we use the C_ prefix to make it clear to us.

     global int C_WOOD_TAG = 0;
     global int C_SILVER_TAG = 1;
     global int C_GOLD_TAG = 2;


     global int C_CUSTOM_FIRE_ALARM = 0; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_SAFE = 1; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_PADLOCK = 2; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_LOCKPICK = 3; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_PADLOCK_STRENGTH = 4; //0 means none, 100 is full strength. At 0 it breaks.
     
     global int C_CUSTOM_BODY_ARMOR          = 10;
     global int C_CUSTOM_BODY_ARMOR_STRENGTH = 11;

     global int C_CUSTOM_BRASS_KNUCKLES = 12;
     global int C_CUSTOM_BRASS_KNUCKLES_STRENGTH = 13;

     global int C_CUSTOM_SWITCH_BLADE = 14
     global int C_CUSTOM_SWORD = 16
     global int C_CUSTOM_BAYONETTE = 18

     global int C_CUSTOM_DERRINGER = 20
     global int C_CUSTOM_REVOLVER = 22
     global int C_CUSTOM_DESERT_EAGLE = 24
     global int C_CUSTOM_AR15 = 26
     global int C_CUSTOM_M16 = 28
     global int C_CUSTOM_AK47 = 30
     global int C_CUSTOM_M40A1 = 32

     global int C_CUSTOM_UZI = 34
     global int C_CUSTOM_SAW = 36
     global int C_CUSTOM_M60 = 38
     global int C_CUSTOM_PANZER = 40
     global int C_CUSTOM_FLAME_THROWER = 42

     global int C_CUSTOM_SWITCH_BLADE_STRENGTH = 15
     global int C_CUSTOM_SWORD_STRENGTH = 17
     global int C_CUSTOM_BAYONETTE_STRENGTH = 19
     global int C_CUSTOM_DERRINGER_STRENGTH = 21
     global int C_CUSTOM_REVOLVER_STRENGTH = 23
     global int C_CUSTOM_DESERT_EAGLE_STRENGTH = 25
     global int C_CUSTOM_AR15_STRENGTH = 27
     global int C_CUSTOM_M16_STRENGTH = 29
     global int C_CUSTOM_AK47_STRENGTH = 31
     global int C_CUSTOM_M40A1_STRENGTH = 33
     global int C_CUSTOM_UZI_STRENGTH = 35
     global int C_CUSTOM_SAW_STRENGTH = 37
     global int C_CUSTOM_M60_STRENGTH = 39
     global int C_CUSTOM_PANZER_STRENGTH = 41
     global int C_CUSTOM_FLAME_THROWER_STRENGTH = 43

     global int C_CUSTOM_BLADES_ONCE = 44
    /1 = brass knuckles
    /2 = switch blade
    /3 = sword
    /4 = bayonette

     global int C_CUSTOM_GUNS_ONCE = 45
    /1 = beretta
    /2 = glock
    /3 = desert eagle
    /4 = MP5
    /5 = COLT M4A1
    /6 = SGT22
    /7 = M4A1

     global int C_CUSTOM_ARMOR_ONCE = 46
    /1 = chain mail
    /2 = kevlar
    /3 = bullet proof vest
    /4 = swat armor

     global int C_CUSTOM_SPECIAL_ONCE = 47
    /1 = numchucks - brass knuckles upgrade
    /2 = shurikens - switchblade knife upgrade
    /2 = ninja sword - sword upgrade
    /4 = long bayonette - bayonette upgrade
    /5 = extended mag - pistols and rifles
    /6 = lazer sight - pistoles and rifles
    /7 = silencer - pistols and rifles
    /9 = scope - rifle upgrades

     global int C_CUSTOM_PREVIOUS_STRENGTH = 48
     global int C_CUSTOM_PREVIOUS_LIFE = 49

     global int C_CUSTOM_GLOBAL_BODY_ARMOR = 50

     global int C_CUSTOM_CHAIN_MAIL = 51
     global int C_CUSTOM_CHAIN_MAIL_STRENGTH = 52
     global int C_CUSTOM_KEVLAR = 53
     global int C_CUSTOM_KEVLAR_STRENGTH = 54
     global int C_CUSTOM_BULLET_PROOF_VEST = 55
     global int C_CUSTOM_BULLET_PROOF_VEST_STRENGTH = 56
     global int C_CUSTOM_FIRERETARDANT = 57
     global int C_CUSTOM_FIRERETARDANT_STRENGTH = 58
     global int C_CUSTOM_SWAT_GEAR = 59
     global int C_CUSTOM_SWAT_GEAR_STRENGTH = 60

     global int C_CUSTOM_ARMOR_TEAR_1 = 61
     global int C_CUSTOM_ARMOR_TEAR_2 = 62
     global int C_CUSTOM_ARMOR_TEAR_3 = 63
     global int C_CUSTOM_ARMOR_TEAR_4 = 64

    /  global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_1 = 65
    /  global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_2 = 66
    /  global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_3 = 67
    /  global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_4 = 68

    /  global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_1 = 69
    /  global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_2 = 70
    /  global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_3 = 71
    /  global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_4 = 72

    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_1 = 73
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_2 = 74
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_3 = 75
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_4 = 76
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_5 = 77
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_6 = 78
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_7 = 79
    /  global int C_RANDOM_GUN_PRICE_OF_THE_DAY_8 = 80

     global int C_RANDOM_RESTOCK_AMOUNT_1 = 81
     global int C_RANDOM_RESTOCK_AMOUNT_2 = 82
     global int C_RANDOM_RESTOCK_AMOUNT_3 = 83
     global int C_RANDOM_RESTOCK_AMOUNT_4 = 84
     global int C_RANDOM_RESTOCK_AMOUNT_5 = 85
     global int C_RANDOM_RESTOCK_AMOUNT_6 = 86
     global int C_RANDOM_RESTOCK_AMOUNT_7 = 87
     global int C_RANDOM_RESTOCK_AMOUNT_8 = 88
     global int C_RANDOM_RESTOCK_AMOUNT_9 = 89
     global int C_RANDOM_RESTOCK_AMOUNT_10 = 90
     global int C_RANDOM_RESTOCK_AMOUNT_11 = 91
     global int C_RANDOM_RESTOCK_AMOUNT_12 = 92
     global int C_RANDOM_RESTOCK_AMOUNT_13 = 93
     global int C_RANDOM_RESTOCK_AMOUNT_14 = 94
     global int C_RANDOM_RESTOCK_AMOUNT_15 = 95
     global int C_RANDOM_RESTOCK_AMOUNT_16 = 96
     global int C_RANDOM_RESTOCK_AMOUNT_17 = 97
     global int C_RANDOM_RESTOCK_AMOUNT_18 = 98
     global int C_RANDOM_RESTOCK_AMOUNT_19 = 99
     global int C_RANDOM_RESTOCK_AMOUNT_20 = 100

     global int C_NUMBER_OF_BULLETS_USED_PER_BATTLE = 101
     global int C_NUMBER_OF_CLIPS_FOR_GUN = 102
     global int C_OUT_OF_AMMO = 103
     global int C_HAS_SCOPE = 104
     global int C_RANDOM_REFUND = 105
     global int C_COST_OF_AMMO = 106

     global int C_HAS_NUMCHUCKS = 107
     global int C_HAS_SHURIKENS = 108
     global int C_HAS_NINJASWRD = 109
     global int C_HAS_LONGBAYON = 110
     global int C_HAS_EXTENDMAG = 111
     global int C_HAS_LAZERSGHT = 112
     global int C_HAS_SILENCER = 113
     global int C_TOTAL_ARMOR_STRENGTH = 114

     global int C_CUSTOM_BURGULAR_ALARM = 115
     global int C_CUSTOM_BURGULAR_ALARM_DAYS = 116
     global int C_CUSTOM_BURGULAR_ALARM_ATTACK = 117


     LogMsg&#40;&#34;Scripting system initiated, ran init.c.&#34;&#41;;

    }
    [/QUOTE]<span id='postcolor'>


    and this is yours:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//This is run as the server starts up and inits the scripting system.  Don&#39;t use anything that would cause
    //a delay here.


    //*********** ANY CHANGES TO THIS SCRIPT REQUIRE YOU TO RESTART THE SERVER&#33;&#33;&#33;&#33;&#33;&#33; ************
    void Main&#40;&#41;
    {
     //declare global variables to be used system wide, these are constants but since the scripting
     //system doesn&#39;t support constants we use the C_ prefix to make it clear to us.
     global int C_WOOD_TAG = 0;
     global int C_SILVER_TAG = 1;
     global int C_GOLD_TAG = 2;
     global int C_CUSTOM_FIRE_ALARM = 0; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_SAFE = 1; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_PADLOCK = 2; //so we don&#39;t have to remember index #&#39;s
     global int C_CUSTOM_LOCKPICK = 3; //so we don&#39;t have to remember index #&#39;s
     global int C_PLAYER_TURNS_LEFT = 4; //
     global int C_PLAYER_TURNS_TODAY = 5; //
     LogMsg&#40;&#34;Scripting system initted, ran init.c.&#34;&#41;;

    }
    [/QUOTE]<span id='postcolor'>

    I hope this info helps...

  9. #9
    Guest

    Default

    You didn&#39;t have to paste the script just the debug info, but printing everything out nonetheless to look at later.

    Will get back with an answer sometime today possibly.

  10. #10

    Default

    /************************************************** ****************************
    /* Start of init.c
    /************************************************** ****************************
    //This is run as the server starts up and inits the scripting system. Don&#39;t use anything that would cause
    //a delay here.


    //*********** ANY CHANGES TO THIS SCRIPT REQUIRE YOU TO RESTART THE SERVER&#33;&#33;&#33;&#33;&#33;&#33; ************
    void Main()
    {
    //declare global variables to be used system wide, these are constants but since the scripting
    //system doesn&#39;t support constants we use the C_ prefix to make it clear to us.

    global int C_WOOD_TAG = 0;
    global int C_SILVER_TAG = 1;
    global int C_GOLD_TAG = 2;


    global int C_CUSTOM_FIRE_ALARM = 0; //so we don&#39;t have to remember index #&#39;s
    global int C_CUSTOM_SAFE = 1; //so we don&#39;t have to remember index #&#39;s
    global int C_CUSTOM_PADLOCK = 2; //so we don&#39;t have to remember index #&#39;s
    global int C_CUSTOM_LOCKPICK = 3; //so we don&#39;t have to remember index #&#39;s
    global int C_CUSTOM_PADLOCK_STRENGTH = 4; //0 means none, 100 is full strength. At 0 it breaks.

    global int C_CUSTOM_BODY_ARMOR = 10;
    global int C_CUSTOM_BODY_ARMOR_STRENGTH = 11;

    global int C_CUSTOM_BRASS_KNUCKLES = 12;
    global int C_CUSTOM_BRASS_KNUCKLES_STRENGTH = 13;

    global int C_CUSTOM_SWITCH_BLADE = 14
    global int C_CUSTOM_SWORD = 16
    global int C_CUSTOM_BAYONETTE = 18

    global int C_CUSTOM_DERRINGER = 20
    global int C_CUSTOM_REVOLVER = 22
    global int C_CUSTOM_DESERT_EAGLE = 24
    global int C_CUSTOM_AR15 = 26
    global int C_CUSTOM_M16 = 28
    global int C_CUSTOM_AK47 = 30
    global int C_CUSTOM_M40A1 = 32

    global int C_CUSTOM_UZI = 34
    global int C_CUSTOM_SAW = 36
    global int C_CUSTOM_M60 = 38
    global int C_CUSTOM_PANZER = 40
    global int C_CUSTOM_FLAME_THROWER = 42

    global int C_CUSTOM_SWITCH_BLADE_STRENGTH = 15
    global int C_CUSTOM_SWORD_STRENGTH = 17
    global int C_CUSTOM_BAYONETTE_STRENGTH = 19
    global int C_CUSTOM_DERRINGER_STRENGTH = 21
    global int C_CUSTOM_REVOLVER_STRENGTH = 23
    global int C_CUSTOM_DESERT_EAGLE_STRENGTH = 25
    global int C_CUSTOM_AR15_STRENGTH = 27
    global int C_CUSTOM_M16_STRENGTH = 29
    global int C_CUSTOM_AK47_STRENGTH = 31
    global int C_CUSTOM_M40A1_STRENGTH = 33
    global int C_CUSTOM_UZI_STRENGTH = 35
    global int C_CUSTOM_SAW_STRENGTH = 37
    global int C_CUSTOM_M60_STRENGTH = 39
    global int C_CUSTOM_PANZER_STRENGTH = 41
    global int C_CUSTOM_FLAME_THROWER_STRENGTH = 43

    global int C_CUSTOM_BLADES_ONCE = 44
    /1 = brass knuckles
    /2 = switch blade
    /3 = sword
    /4 = bayonette

    global int C_CUSTOM_GUNS_ONCE = 45
    /1 = beretta
    /2 = glock
    /3 = desert eagle
    /4 = MP5
    /5 = COLT M4A1
    /6 = SGT22
    /7 = M4A1

    global int C_CUSTOM_ARMOR_ONCE = 46
    /1 = chain mail
    /2 = kevlar
    /3 = bullet proof vest
    /4 = swat armor

    global int C_CUSTOM_SPECIAL_ONCE = 47
    /1 = numchucks - brass knuckles upgrade
    /2 = shurikens - switchblade knife upgrade
    /2 = ninja sword - sword upgrade
    /4 = long bayonette - bayonette upgrade
    /5 = extended mag - pistols and rifles
    /6 = lazer sight - pistoles and rifles
    /7 = silencer - pistols and rifles
    /9 = scope - rifle upgrades

    global int C_CUSTOM_PREVIOUS_STRENGTH = 48
    global int C_CUSTOM_PREVIOUS_LIFE = 49

    global int C_CUSTOM_GLOBAL_BODY_ARMOR = 50

    global int C_CUSTOM_CHAIN_MAIL = 51
    global int C_CUSTOM_CHAIN_MAIL_STRENGTH = 52
    global int C_CUSTOM_KEVLAR = 53
    global int C_CUSTOM_KEVLAR_STRENGTH = 54
    global int C_CUSTOM_BULLET_PROOF_VEST = 55
    global int C_CUSTOM_BULLET_PROOF_VEST_STRENGTH = 56
    global int C_CUSTOM_FIRERETARDANT = 57
    global int C_CUSTOM_FIRERETARDANT_STRENGTH = 58
    global int C_CUSTOM_SWAT_GEAR = 59
    global int C_CUSTOM_SWAT_GEAR_STRENGTH = 60

    global int C_CUSTOM_ARMOR_TEAR_1 = 61
    global int C_CUSTOM_ARMOR_TEAR_2 = 62
    global int C_CUSTOM_ARMOR_TEAR_3 = 63
    global int C_CUSTOM_ARMOR_TEAR_4 = 64

    / global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_1 = 65
    / global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_2 = 66
    / global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_3 = 67
    / global int C_RANDOM_BLADE_PRICE_OF_THE_DAY_4 = 68

    / global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_1 = 69
    / global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_2 = 70
    / global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_3 = 71
    / global int C_RANDOM_ARMOR_PRICE_OF_THE_DAY_4 = 72

    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_1 = 73
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_2 = 74
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_3 = 75
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_4 = 76
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_5 = 77
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_6 = 78
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_7 = 79
    / global int C_RANDOM_GUN_PRICE_OF_THE_DAY_8 = 80

    global int C_RANDOM_RESTOCK_AMOUNT_1 = 81
    global int C_RANDOM_RESTOCK_AMOUNT_2 = 82
    global int C_RANDOM_RESTOCK_AMOUNT_3 = 83
    global int C_RANDOM_RESTOCK_AMOUNT_4 = 84
    global int C_RANDOM_RESTOCK_AMOUNT_5 = 85
    global int C_RANDOM_RESTOCK_AMOUNT_6 = 86
    global int C_RANDOM_RESTOCK_AMOUNT_7 = 87
    global int C_RANDOM_RESTOCK_AMOUNT_8 = 88
    global int C_RANDOM_RESTOCK_AMOUNT_9 = 89
    global int C_RANDOM_RESTOCK_AMOUNT_10 = 90
    global int C_RANDOM_RESTOCK_AMOUNT_11 = 91
    global int C_RANDOM_RESTOCK_AMOUNT_12 = 92
    global int C_RANDOM_RESTOCK_AMOUNT_13 = 93
    global int C_RANDOM_RESTOCK_AMOUNT_14 = 94
    global int C_RANDOM_RESTOCK_AMOUNT_15 = 95
    global int C_RANDOM_RESTOCK_AMOUNT_16 = 96
    global int C_RANDOM_RESTOCK_AMOUNT_17 = 97
    global int C_RANDOM_RESTOCK_AMOUNT_18 = 98
    global int C_RANDOM_RESTOCK_AMOUNT_19 = 99
    global int C_RANDOM_RESTOCK_AMOUNT_20 = 100

    global int C_NUMBER_OF_BULLETS_USED_PER_BATTLE = 101
    global int C_NUMBER_OF_CLIPS_FOR_GUN = 102
    global int C_OUT_OF_AMMO = 103
    global int C_HAS_SCOPE = 104
    global int C_RANDOM_REFUND = 105
    global int C_COST_OF_AMMO = 106

    global int C_HAS_NUMCHUCKS = 107
    global int C_HAS_SHURIKENS = 108
    global int C_HAS_NINJASWRD = 109
    global int C_HAS_LONGBAYON = 110
    global int C_HAS_EXTENDMAG = 111
    global int C_HAS_LAZERSGHT = 112
    global int C_HAS_SILENCER = 113
    global int C_TOTAL_ARMOR_STRENGTH = 114

    global int C_CUSTOM_BURGULAR_ALARM = 115
    global int C_CUSTOM_BURGULAR_ALARM_DAYS = 116
    global int C_CUSTOM_BURGULAR_ALARM_ATTACK = 117
    global int C_PLAYER_TURNS_LEFT = 118;
    global int C_PLAYER_TURNS_TODAY = 119;

    LogMsg("Scripting system initiated, ran init.c.");
    }


    /************************************************** ****************************
    /* End of init.c
    /************************************************** ****************************

  11. #11

    Default

    /************************************************** ****************************
    /* Start of newday_player.c
    /************************************************** ****************************
    //This is run after logging in for the first time.  Don&#39;t do anything that requires a wait such as a send packet
    //command.  The player&#39;s id who is logging in is placed into i_my_id.  You can modify turns and things here.

    void OnCreate()
    {

    }

    void DimartMidnightSupplyClerk()
    {

    string st_name = GetNameFromID(i_my_id);
    LogMsg("The di-mart midnight supply clerk is rummaging up todays inventory for player &#036;i_my_id&#036;.");

    String st_ITEM_A = "NULL";
    String st_ITEM_B = "Brass Knuckles";
    String st_ITEM_C = "Switch Blades";
    String st_ITEM_D = "Swords";
    String st_ITEM_E = "Bayonettes";
    String st_ITEM_F = "Darringers";
    String st_ITEM_G = "Revolvers";
    String st_ITEM_H = "Desert Eagles";
    String st_ITEM_I = "AR-15";
    String st_ITEM_J = "M-16";
    String st_ITEM_K = "MA140";
    String st_ITEM_L = "AK47";
    /String st_ITEM_M = "UZIs";
    String st_ITEM_N = "Chain Mail";
    String st_ITEM_O = "Kevlar";
    String st_ITEM_P = "Bullet Proof Vests";
    String st_ITEM_Q = "Swat Armor";
    /String st_ITEM_R = "Scopes";

    int i_tempA;
    int i_tempB;
    int i_tempC;
    int i_tempD;
    int i_tempE;
    int i_tempF;
    int i_tempG;
    int i_tempH;
    int i_tempI;
    int i_tempJ;
    int i_tempK;
    int i_tempL;
    int i_tempM;
    int i_tempN;
    int i_tempO;
    int i_tempP;
    int i_tempQ;
    int i_tempR;

    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_1, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_2, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_3, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_4, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_5, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_6, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_7, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_8, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_9, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_10, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_11, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_12, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_13, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_14, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_15, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_16, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_17, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_18, 0);

    int stock_number_A = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_1);
    int stock_number_B = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_2);
    int stock_number_C = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_3);
    int stock_number_D = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_4);
    int stock_number_E = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_5);
    int stock_number_F = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_6);
    int stock_number_G = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_7);
    int stock_number_H = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_8);
    int stock_number_I = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_9);
    int stock_number_J = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_10);
    int stock_number_K = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_11);
    int stock_number_L = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_12);
    /int stock_number_M = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_13);
    int stock_number_N = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_14);
    int stock_number_O = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_15);
    int stock_number_P = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_16);
    int stock_number_Q = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_17);
    /int stock_number_R = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_18);



    i_tempA = RandomRange(0, 2);

    if  (i_tempA == 1)
    {
    if (stock_number_A <= 1)
    {
    int A_random = RandomRange(0,25);
    int temp_A_random;
    temp_A_random = 0
    temp_A_random += A_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_1,temp_A_random);
    }
    }

    i_tempB = RandomRange(0, 2);
    if  (i_tempB == 1)
    {
    if (stock_number_B <= 1)
    {
    int B_random = RandomRange(0,25);
    int temp_B_random;
    temp_B_random = 0
    temp_B_random += B_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_2,temp_B_random);
    }
    }

    i_tempC = RandomRange(0, 2);
    if  (i_tempC == 1)
    {
    if (stock_number_C <= 1)
    {
    int C_random = RandomRange(0,25);
    int temp_C_random;
    temp_C_random = 0
    temp_C_random += C_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_3,temp_C_random);
    }
    }

    i_tempD = RandomRange(0, 2);
    if  (i_tempD == 1)
    {
    if (stock_number_D <= 1)
    {
    int D_random = RandomRange(0,25);
    int temp_D_random;
    temp_D_random = 0
    temp_D_random += D_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_4,temp_D_random);
    }
    }

    i_tempE = RandomRange(0, 2);
    if  (i_tempE == 1)
    {
    if (stock_number_E <= 1)
    {
    int E_random = RandomRange(0,25);
    int temp_E_random;
    temp_E_random = 0
    temp_E_random += E_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_5,temp_E_random);
    }
    }

    i_tempF = RandomRange(0, 2);
    if  (i_tempF == 1)
    {
    if (stock_number_F <= 1)
    {
    int F_random = RandomRange(0,25);
    int temp_F_random;
    temp_F_random = 0
    temp_F_random += F_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_6,temp_F_random);
    }
    }

    i_tempG = RandomRange(0, 2);
    if  (i_tempG == 1)
    {
    if (stock_number_G <= 1)
    {
    int G_random = RandomRange(0,25);
    int temp_G_random;
    temp_G_random = 0
    temp_G_random += G_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_7,temp_G_random);
    }
    }

    i_tempH = RandomRange(0, 2);
    if  (i_tempH == 1)
    {
    if (stock_number_H <= 1)
    {
    int H_random = RandomRange(0,25);
    int temp_H_random;
    temp_H_random = 0
    temp_H_random += H_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_8,temp_H_random);
    }
    }

    i_tempI = RandomRange(0, 2);
    if  (i_tempI == 1)
    {
    if (stock_number_I <= 1)
    {
    int II_random = RandomRange(0,25);
    int temp_II_random;
    temp_II_random = 0
    temp_II_random += II_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_9,temp_II_random);
    }
    }

    i_tempJ = RandomRange(0, 2);
    if  (i_tempJ == 1)
    {
    if (stock_number_J <= 1)
    {
    int J_random = RandomRange(0,25);
    int temp_J_random;
    temp_J_random = 0
    temp_J_random += J_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_10,temp_J_random);
    }
    }

    i_tempK = RandomRange(0, 2);
    if  (i_tempK == 1)
    {
    if (stock_number_K <= 1)
    {
    int K_random = RandomRange(0,25);
    int temp_K_random;
    temp_K_random = 0
    temp_K_random += K_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_11,temp_K_random);
    }
    }

    i_tempL = RandomRange(0, 2);
    if  (i_tempL == 1)
    {
    if (stock_number_L <= 1)
    {
    int L_random = RandomRange(0,25);
    int temp_L_random;
    temp_L_random = 0
    temp_L_random += L_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_12,temp_L_random);
    }
    }

    /i_tempM = RandomRange(0, 2);
    /if  (i_tempM == 1)
    /{
    /if (stock_number_M <= 1)
    /{
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_13,1);
    /}
    /}

    i_tempN = RandomRange(0, 2);
    if  (i_tempN == 1)
    {
    if (stock_number_N <= 1)
    {
    int N_random = RandomRange(0,25);
    int temp_N_random;
    temp_N_random = 0
    temp_N_random += N_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_14,temp_N_random);
    }
    }

    i_tempO = RandomRange(0, 2);
    if  (i_tempO == 1)
    {
    if (stock_number_O <= 1)
    {
    int O_random = RandomRange(0,25);
    int temp_O_random;
    temp_O_random = 0
    temp_O_random += O_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_15,temp_O_random);
    }
    }

    i_tempP = RandomRange(0, 2);
    if  (i_tempP == 1)
    {
    if (stock_number_P <= 1)
    {
    int P_random = RandomRange(0,25);
    int temp_P_random;
    temp_P_random = 0
    temp_P_random += P_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_16,temp_P_random);
    }
    }

    i_tempQ = RandomRange(0, 2);
    if  (i_tempQ == 1)
    {
    if (stock_number_Q <= 1)
    {
    int Q_random = RandomRange(0,25);
    int temp_Q_random;
    temp_Q_random = 0
    temp_Q_random += Q_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_17,temp_Q_random);
    }
    }

    /i_tempR = RandomRange(0, 2);
    /if  (i_tempR == 1)
    /{
    /if (stock_number_R <= 1)
    /{
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_18,1);
    /}
    /}

    /// If you would like some static values edit this...
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_1,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_2,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_3,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_4,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_5,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_6,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_7,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_8,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_9,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_10,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_11,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_12,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_14,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_15,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_16,1);
    /SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_17,1);

    LogMsg("done.");
    }

    void Main()
    {

    DimartMidnightSupplyClerk();

    LogMsg("Executing left over turns function for &#036;i_my_id&#036;");
    int first;
    int second;
    int turns_temp;
    int extra_turns;
    int current_turns;
    LogMsg("Getting current amount of turns");
    current_turns = GetTurns(i_my_id)
    LogMsg("done");
    LogMsg("Getting extra turns");
    extra_turns = GetCustomByID(i_my_id,C_PLAYER_TURNS_LEFT );
    LogMsg("done");
    LogMsg("Doing math");
    turns_temp = 0
    turns_temp += current_turns
    turns_temp += extra_turns
    LogMsg("Now adding extra turns");
    ModTurns(i_my_id, extra_turns);
    SetCustomByID(i_my_id, C_PLAYER_TURNS_TODAY,turns_temp)
    LogMsg("done");
    LogMsg("Error checking");
    first = GetTurns(i_my_id)
    second = GetCustomByID(i_my_id,C_PLAYER_TURNS_TODAY );
    if (first &#33;= second)
    {
    LogMsg("ERROR&#33; OUT OF BOUNDS");
    }
    LogMsg("No errors");
    LogMsg("Finished executing left over turns function for &#036;i_my_id&#036;");

    }

    /************************************************** ****************************
    /* End of newday_player.c
    /************************************************** ****************************

  12. #12

    Default

    /************************************************** ****************************
    /* Start of Maint_player.c
    /************************************************** ****************************


    //This is run after maint every day for EACH existing player.  Don&#39;t do anything that requires a wait such as a send packet
    //command.  The player&#39;s id is placed into i_my_id.




    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////
    void OnCreate()
    {
      int fights;
      string msg;
    }
    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////
    void BurgularAlarmMaintenance()
    {
    LogMsg( "Beginning Burgular Alarm Maintenance for &#036;i_my_id&#036;.");
    int i_bdays = GetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM_DAYS);
    int i_batt = GetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM_ATTACK);
    int i_gold_tags = GetTags(i_my_id, C_GOLD_TAG);
    int i_silv_tags = GetTags(i_my_id, C_SILVER_TAG);
    int i_wood_tags = GetTags(i_my_id, C_WOOD_TAG);


    if (i_bdays >= 1)
    {
    if (i_gold_tags >= 10)
    {
    LogMsg( "Subtracting gold tags");
    i_gold_tags -= 10;
    SetTags(i_my_id, C_GOLD_TAG, i_gold_tags);
    msg = "Di-mart security payment sevice has deducted (`y10`w) gold tags from your account.";
    mailText(i_my_id, msg);
    goto att_fin;
    }

    if (i_silv_tags >= 20)
    {
    LogMsg( "Subtracting silver tags");
    i_silv_tags -= 20;
    SetTags(i_my_id, C_SILVER_TAG, i_silv_tags);
    msg = "Di-mart security payment sevice has deducted (`y20`w) silver tags from your account.";
    mailText(i_my_id, msg);
    goto att_fin;
    }

    if (i_wood_tags >= 40)
    {
    LogMsg( "Subtracting wood tags");
    i_wood_tags -= 40;
    SetTags(i_my_id, C_WOOD_TAG, i_wood_tags);
    msg = "Di-mart security payment sevice has deducted (`y40`w) wood tags from your account.&#92;n&#92;n";
    mailText(i_my_id, msg);
    goto att_fin;
    }
    }

    int temp_burg;
    LogMsg( "no tags&#33; substracting service days&#33;");
    temp_burg = 1
    i_bdays -= temp_burg
    msg = "You now have (`y&#036;i_bdays&#036;`w) days credit left for your burgular alarm system.&#92;n&#92;n";
    if (i_bdays <= 0)
    {
    LogMsg( "ABORTING&#33; &#036;i_my_id&#036; had no service days to subtract&#33;");
    String st_home_name = GetHomeNameFromID(i_my_id);
    AddToNews("`^The owner of &#036;st_home_name&#036; forgot to pay bills today.&#92;n&#92;n");
    SetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM_DAYS, 0);
    SetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM_ATTACK, 0);
    SetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM, 1);
    msg = "You have run out of service days for your burgular alarm system.&#92;n&#92;n";
    mailText(i_my_id, msg);
    goto att_fin;
    }
    mailText(i_my_id, msg);
    SetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM_DAYS, i_bdays);
    SetCustomByID(i_my_id, C_CUSTOM_BURGULAR_ALARM_ATTACK, 1);



    att_fin:
    LogMsg( "Done.");
    }
    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void ChainmailMaint()
    {
         LogMsg( "Processing Chainmail Armor Maintnance for &#036;i_my_id&#036;.");
         int cm_str = GetCustomByID(i_my_id, C_CUSTOM_CHAIN_MAIL_STRENGTH);
         fights = GetPlayerFights(i_my_id);

         if (fights == 0)
         {
         LogMsg( " ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.");
         }

         if (fights >= 1)
         {
            LogMsg( " &#036;i_my_id&#036; had &#036;fights&#036; fight(s) yesterday. Continuing with maintenance");
            int cm_random = RandomRange(5,25);
            int temp_cm_random;
            temp_cm_random = 0
            temp_cm_random += cm_random
            cm_str -= temp_cm_random;
            SetCustomByID(i_my_id, C_CUSTOM_CHAIN_MAIL_STRENGTH, cm_str);

    if (cm_str >= 1)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,1);
    }
    if (cm_str >= 2)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,2);
    }
    if (cm_str >= 3)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,3);
    }
    if (cm_str >= 4)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,4);
    }
    if (cm_str >= 5)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,5);
    }
    if (cm_str >= 6)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,6);
    }
    if (cm_str >= 7)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,7);
    }
    if (cm_str >= 8)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,8);
    }
    if (cm_str >= 9)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,9);
    }
    if (cm_str >= 10)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,10);
    }
    if (cm_str >= 11)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,11);
    }
    if (cm_str >= 12)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,12);
    }
    if (cm_str >= 13)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,13);
    }
    if (cm_str >= 14)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,14);
    }
    if (cm_str >= 15)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,15);
    }
    if (cm_str >= 16)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,16);
    }
    if (cm_str >= 17)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,17);
    }
    if (cm_str >= 18)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,18);
    }
    if (cm_str >= 19)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,19);
    }
    if (cm_str >= 20)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,20);
    }
    if (cm_str >= 21)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,21);
    }
    if (cm_str >= 22)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,22);
    }
    if (cm_str >= 23)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,23);
    }
    if (cm_str >= 24)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,24);
    }
    if (cm_str >= 25)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,25);
    }
    if (cm_str >= 26)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,26);
    }
    if (cm_str >= 27)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,27);
    }
    if (cm_str >= 28)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,28);
    }
    if (cm_str >= 29)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,29);
    }
    if (cm_str >= 30)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,30);
    }
    if (cm_str >= 31)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,31);
    }
    if (cm_str >= 32)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,32);
    }
    if (cm_str >= 33)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,33);
    }
    if (cm_str >= 34)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,34);
    }
    if (cm_str >= 35)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,35);
    }
    if (cm_str >= 36)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,36);
    }
    if (cm_str >= 37)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,37);
    }
    if (cm_str >= 38)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,38);
    }
    if (cm_str >= 39)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,39);
    }
    if (cm_str >= 40)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,40);
    }
    if (cm_str >= 41)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,41);
    }
    if (cm_str >= 42)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,42);
    }
    if (cm_str >= 43)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,43);
    }
    if (cm_str >= 44)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,44);
    }
    if (cm_str >= 45)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,45);
    }
    if (cm_str >= 46)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,46);
    }
    if (cm_str >= 47)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,47);
    }
    if (cm_str >= 48)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,48);
    }
    if (cm_str >= 49)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,49);
    }
    if (cm_str >= 50)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,50);
    }
    if (cm_str >= 51)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,51);
    }
    if (cm_str >= 52)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,52);
    }
    if (cm_str >= 53)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,53);
    }
    if (cm_str >= 54)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,54);
    }
    if (cm_str >= 55)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,55);
    }
    if (cm_str >= 56)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,56);
    }
    if (cm_str >= 57)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,57);
    }
    if (cm_str >= 58)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,58);
    }
    if (cm_str >= 59)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,59);
    }
    if (cm_str >= 60)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,60);
    }
    if (cm_str >= 61)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,61);
    }
    if (cm_str >= 62)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,62);
    }
    if (cm_str >= 63)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,63);
    }
    if (cm_str >= 64)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,64);
    }
    if (cm_str >= 65)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,65);
    }
    if (cm_str >= 66)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,66);
    }
    if (cm_str >= 67)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,67);
    }
    if (cm_str >= 68)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,68);
    }
    if (cm_str >= 69)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,69);
    }
    if (cm_str >= 70)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,70);
    }
    if (cm_str >= 71)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,71);
    }
    if (cm_str >= 72)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,72);
    }
    if (cm_str >= 73)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,73);
    }
    if (cm_str >= 74)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,74);
    }
    if (cm_str >= 75)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,75);
    }
    if (cm_str >= 76)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,76);
    }
    if (cm_str >= 77)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,77);
    }
    if (cm_str >= 78)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,78);
    }
    if (cm_str >= 79)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,79);
    }
    if (cm_str >= 80)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,80);
    }
    if (cm_str >= 81)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,81);
    }
    if (cm_str >= 82)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,82);
    }
    if (cm_str >= 83)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,83);
    }
    if (cm_str >= 84)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,84);
    }
    if (cm_str >= 85)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,85);
    }
    if (cm_str >= 86)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,86);
    }
    if (cm_str >= 87)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,87);
    }
    if (cm_str >= 88)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,88);
    }
    if (cm_str >= 89)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,89);
    }
    if (cm_str >= 90)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,90);
    }
    if (cm_str >= 91)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,91);
    }
    if (cm_str >= 92)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,92);
    }
    if (cm_str >= 93)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,93);
    }
    if (cm_str >= 94)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,94);
    }
    if (cm_str >= 95)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,95);
    }
    if (cm_str >= 96)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,96);
    }
    if (cm_str >= 97)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,97);
    }
    if (cm_str >= 98)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,98);
    }
    if (cm_str >= 99)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,99);
    }
    if (cm_str == 100)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,100);
    }

             int cm_integrity_str = GetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH);

       msg = "You chain mail has lost a few new links from the (&#036;fights&#036 fight(s) you had yesterday .&#92;n";
       msg += "`wArmor Integrity:`y &#036;cm_integrity_str&#036;&#92;n";


           if (cm_str >= 75)
           {
           msg += "Your armor integrity level is normal";
           }

           if (cm_str >= 51)
           {
           if (cm_str <= 74)
           {
           msg += "Watch your stats&#33; Armor integrity level in decline&#33;";
           }
           }

           if (cm_str >= 26)
           {
           if (cm_str <= 50)
           {
           msg += "Warning, your armor integrity level is nearing critical&#33;";
           }
           }


           if (cm_str >= 11)
           {
           if (cm_str <= 25)
           {
           msg += "Warning, your armor integrity level is critical&#33;";
           }
           }
     
           if (cm_str < 10)
           {
       ModMaxHP(i_my_id, -100);
       SetCustomByID(i_my_id, C_CUSTOM_ARMOR_ONCE, 0);
       SetCustomByID(i_my_id, C_CUSTOM_CHAIN_MAIL_STRENGTH, 0);
       SetCustomByID(i_my_id, C_CUSTOM_CHAIN_MAIL, 0);
       SetCustomByID(i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0);
       msg = "Your chain mail has been damaged beyond repair.";
       msg += "You have now lost 100 hitpoints";
           }

    mailText(i_my_id, msg);
         }  
    LogMsg("Done.");
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void KevlarMaint()
    {
         LogMsg( "Processing Kevlar Armor Maintnance for &#036;i_my_id&#036;.");

         int kv_str = GetCustomByID(i_my_id, C_CUSTOM_KEVLAR_STRENGTH);
         fights = GetPlayerFights(i_my_id);

         if (fights == 0)
         {
         LogMsg( " ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.");
         }

         if (fights >= 1)  
         {
            LogMsg( " &#036;i_my_id&#036; had &#036;fights&#036; fight(s) yesterday. Continuing with maintenance");
            int kv_random = RandomRange(10,25);
            int temp_kv_random;
            temp_kv_random = 0
            temp_kv_random += kv_random
            kv_str -= temp_kv_random;
            SetCustomByID(i_my_id, C_CUSTOM_KEVLAR_STRENGTH, kv_str);

    if (kv_str >= 2)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,1);
    }
    if (kv_str >= 4)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,2);
    }
    if (kv_str >= 6)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,3);
    }
    if (kv_str >= 8)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,4);
    }
    if (kv_str >= 10)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,5);
    }
    if (kv_str >= 12)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,6);
    }
    if (kv_str >= 14)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,7);
    }
    if (kv_str >= 16)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,8);
    }
    if (kv_str >= 18)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,9);
    }
    if (kv_str >= 20)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,10);
    }
    if (kv_str >= 22)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,11);
    }
    if (kv_str >= 24)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,12);
    }
    if (kv_str >= 26)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,13);
    }
    if (kv_str >= 28)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,14);
    }
    if (kv_str >= 30)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,15);
    }
    if (kv_str >= 32)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,16);
    }
    if (kv_str >= 34)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,17);
    }
    if (kv_str >= 36)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,18);
    }
    if (kv_str >= 38)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,19);
    }
    if (kv_str >= 40)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,20);
    }
    if (kv_str >= 42)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,21);
    }
    if (kv_str >= 44)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,22);
    }
    if (kv_str >= 46)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,23);
    }
    if (kv_str >= 48)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,24);
    }
    if (kv_str >= 50)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,25);
    }
    if (kv_str >= 52)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,26);
    }
    if (kv_str >= 54)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,27);
    }
    if (kv_str >= 56)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,28);
    }
    if (kv_str >= 58)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,29);
    }
    if (kv_str >= 60)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,30);
    }
    if (kv_str >= 62)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,31);
    }
    if (kv_str >= 64)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,32);
    }
    if (kv_str >= 66)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,33);
    }
    if (kv_str >= 68)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,34);
    }
    if (kv_str >= 70)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,35);
    }
    if (kv_str >= 72)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,36);
    }
    if (kv_str >= 74)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,37);
    }
    if (kv_str >= 76)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,38);
    }
    if (kv_str >= 78)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,39);
    }
    if (kv_str >= 80)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,40);
    }
    if (kv_str >= 82)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,41);
    }
    if (kv_str >= 84)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,42);
    }
    if (kv_str >= 86)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,43);
    }
    if (kv_str >= 88)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,44);
    }
    if (kv_str >= 90)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,45);
    }
    if (kv_str >= 92)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,46);
    }
    if (kv_str >= 94)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,47);
    }
    if (kv_str >= 96)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,48);
    }
    if (kv_str >= 98)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,49);
    }
    if (kv_str >= 100)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,50);
    }
    if (kv_str >= 102)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,51);
    }
    if (kv_str >= 104)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,52);
    }
    if (kv_str >= 106)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,53);
    }
    if (kv_str >= 108)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,54);
    }
    if (kv_str >= 110)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,55);
    }
    if (kv_str >= 112)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,56);
    }
    if (kv_str >= 114)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,57);
    }
    if (kv_str >= 116)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,58);
    }
    if (kv_str >= 118)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,59);
    }
    if (kv_str >= 120)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,60);
    }
    if (kv_str >= 122)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,61);
    }
    if (kv_str >= 124)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,62);
    }
    if (kv_str >= 126)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,63);
    }
    if (kv_str >= 128)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,64);
    }
    if (kv_str >= 130)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,65);
    }
    if (kv_str >= 132)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,66);
    }
    if (kv_str >= 134)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,67);
    }
    if (kv_str >= 136)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,68);
    }
    if (kv_str >= 138)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,69);
    }
    if (kv_str >= 140)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,70);
    }
    if (kv_str >= 142)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,71);
    }
    if (kv_str >= 144)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,72);
    }
    if (kv_str >= 146)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,73);
    }
    if (kv_str >= 148)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,74);
    }
    if (kv_str >= 150)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,75);
    }
    if (kv_str >= 152)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,76);
    }
    if (kv_str >= 154)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,77);
    }
    if (kv_str >= 156)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,78);
    }
    if (kv_str >= 158)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,79);
    }
    if (kv_str >= 160)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,80);
    }
    if (kv_str >= 162)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,81);
    }
    if (kv_str >= 164)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,82);
    }
    if (kv_str >= 166)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,83);
    }
    if (kv_str >= 168)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,84);
    }
    if (kv_str >= 170)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,85);
    }
    if (kv_str >= 172)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,86);
    }
    if (kv_str >= 174)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,87);
    }
    if (kv_str >= 176)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,88);
    }
    if (kv_str >= 178)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,89);
    }
    if (kv_str >= 180)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,90);
    }
    if (kv_str >= 182)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,91);
    }
    if (kv_str >= 184)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,92);
    }
    if (kv_str >= 186)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,93);
    }
    if (kv_str >= 188)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,94);
    }
    if (kv_str >= 190)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,95);
    }
    if (kv_str >= 192)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,96);
    }
    if (kv_str >= 194)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,97);
    }
    if (kv_str >= 196)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,98);
    }
    if (kv_str >= 198)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,99);
    }
    if (kv_str == 200)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,100);
    }

    int kv_integrity_str = GetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH);

      msg = "You kevlar gained a couple new tears.&#92;n";
      msg += "`wArmor Integrity:`y &#036;kv_integrity_str&#036;&#92;n";

           if (kv_str >= 75)
           {
           msg += "Your armor integrity level is normal";
           }

           if (kv_str >= 51)
           {
           if (kv_str <= 74)
           {
           msg += "Watch your stats&#33; Armor integrity level in decline&#33;";
           }
           }

           if (kv_str >= 26)
           {
           if (kv_str <= 50)
           {
           msg += "Warning, your armor integrity level is nearing critical&#33;";
           }
           }


           if (kv_str >= 11)
           {
           if (kv_str <= 25)
           {
           msg += "Warning, your armor integrity level is critical&#33;";
           }
           }



           if (kv_str < 10)
           {
       ModMaxHP(i_my_id, -200);
       SetCustomByID(i_my_id, C_CUSTOM_ARMOR_ONCE, 0);
       SetCustomByID(i_my_id, C_CUSTOM_KEVLAR_STRENGTH, 0);
       SetCustomByID(i_my_id, C_CUSTOM_KEVLAR, 0);
             SetCustomByID(i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0);  
       msg = "Your kevlar has been damaged beyond repair.";
       msg += "You have now lost 200 hit points";
           }

    mailText(i_my_id, msg);
         }
    LogMsg("Done.");
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void BulletProofVestMaint()
    {
         LogMsg( "Processing Bullet Proof Vest Armor Maintnance for &#036;i_my_id&#036;.");



         int bv_str = GetCustomByID(i_my_id, C_CUSTOM_BULLET_PROOF_VEST_STRENGTH);
         fights = GetPlayerFights(i_my_id);

         if (fights == 0)
         {
         LogMsg( " ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.");
         }

         if (fights >= 1)  
         {
            LogMsg( " &#036;i_my_id&#036; had &#036;fights&#036; fight(s) yesterday. Continuing with maintenance");
            int bv_random = RandomRange(25,40);
            int temp_bv_random;
            temp_bv_random = 0
            temp_bv_random += bv_random
            bv_str -= temp_bv_random;
            SetCustomByID(i_my_id, C_CUSTOM_BULLET_PROOF_VEST_STRENGTH, bv_str);

    if (bv_str >= 3)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,1);
    }
    if (bv_str >= 7)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,2);
    }
    if (bv_str >= 10)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,3);
    }
    if (bv_str >= 14)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,4);
    }
    if (bv_str >= 17)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,5);
    }
    if (bv_str >= 21)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,6);
    }
    if (bv_str >= 24)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,7);
    }
    if (bv_str >= 28)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,8);
    }
    if (bv_str >= 31)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,9);
    }
    if (bv_str >= 35)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,10);
    }
    if (bv_str >= 39)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,11);
    }
    if (bv_str >= 42)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,12);
    }
    if (bv_str >= 46)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,13);
    }
    if (bv_str >= 49)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,14);
    }
    if (bv_str >= 52)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,15);
    }
    if (bv_str >= 56)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,16);
    }
    if (bv_str >= 60)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,17);
    }
    if (bv_str >= 63)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,18);
    }
    if (bv_str >= 67)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,19);
    }
    if (bv_str >= 70)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,20);
    }
    if (bv_str >= 73)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,21);
    }
    if (bv_str >= 77)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,22);
    }
    if (bv_str >= 80)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,23);
    }
    if (bv_str >= 84)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,24);
    }
    if (bv_str >= 87)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,25);
    }
    if (bv_str >= 91)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,26);
    }
    if (bv_str >= 95)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,27);
    }
    if (bv_str >= 98)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,28);
    }
    if (bv_str >= 102)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,29);
    }
    if (bv_str >= 105)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,30);
    }
    if (bv_str >= 109)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,31);
    }
    if (bv_str >= 112)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,32);
    }
    if (bv_str >= 116)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,33);
    }
    if (bv_str >= 119)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,34);
    }
    if (bv_str >= 123)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,35);
    }
    if (bv_str >= 126)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,36);
    }
    if (bv_str >= 130)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,37);
    }
    if (bv_str >= 133)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,38);
    }
    if (bv_str >= 137)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,39);
    }
    if (bv_str >= 140)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,40);
    }
    if (bv_str >= 144)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,41);
    }
    if (bv_str >= 147)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,42);
    }
    if (bv_str >= 151)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,43);
    }
    if (bv_str >= 144)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,44);
    }
    if (bv_str >= 147)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,45);
    }
    if (bv_str >= 151)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,46);
    }
    if (bv_str >= 154)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,47);
    }
    if (bv_str >= 158)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,48);
    }
    if (bv_str >= 161)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,49);
    }
    if (bv_str >= 175)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,50);
    }
    if (bv_str >= 178)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,51);
    }
    if (bv_str >= 182)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,52);
    }
    if (bv_str >= 185)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,53);
    }
    if (bv_str >= 189)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,54);
    }

    if (bv_str >= 192)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,55);
    }
    if (bv_str >= 194)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,56);
    }
    if (bv_str >= 199)

    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,57);
    }

    if (bv_str >= 203)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,58);
    }
    if (bv_str >= 207)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,59);
    }
    if (bv_str >= 210)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,60);
    }
    if (bv_str >= 214)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,61);
    }
    if (bv_str >= 217)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,62);
    }
    if (bv_str >= 221)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,63);
    }
    if (bv_str >= 224)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,64);
    }
    if (bv_str >= 228)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,65);
    }

    if (bv_str >= 231)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,66);
    }
    if (bv_str >= 235)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,67);
    }
    if (bv_str >= 242)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,68);
    }
    if (bv_str >= 245)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,69);
    }
    if (bv_str >= 249)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,70);
    }
    if (bv_str >= 252)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,71);
    }
    if (bv_str >= 256)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,72);
    }
    if (bv_str >= 259)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,73);
    }

    if (bv_str >= 263)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,74);
    }
    if (bv_str >= 267)

    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,75);
    }
    if (bv_str >= 270)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,76);
    }
    if (bv_str >= 274)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,77);
    }
    if (bv_str >= 277)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,78);
    }
    if (bv_str >= 280)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,79);
    }
    if (bv_str >= 281)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,80);
    }
    if (bv_str >= 284)

    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,81);
    }
    if (bv_str >= 288)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,82);
    }

    if (bv_str >= 291)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,83);
    }
    if (bv_str >= 295)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,84);
    }
    if (bv_str >= 298)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,85);
    }
    if (bv_str >= 302)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,86);
    }
    if (bv_str >= 305)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,87);
    }
    if (bv_str >= 308)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,88);
    }
    if (bv_str >= 312)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,89);
    }
    if (bv_str >= 315)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,90);
    }
    if (bv_str >= 319)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,91);
    }
    if (bv_str >= 322)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,92);
    }

    if (bv_str >= 326)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,93);
    }
    if (bv_str >= 329)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,94);
    }
    if (bv_str >= 332)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,95);
    }
    if (bv_str >= 336)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,96);
    }
    if (bv_str >= 339)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,97);
    }
    if (bv_str >= 343)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,98);
    }
    if (bv_str >= 347)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,99);
    }
    if (bv_str == 350)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,100);
    }
    int bpv_integrity_str = GetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH);

       msg = "You bullet proof vest is beginning to wear out.&#92;n";
       msg += "`wArmor Integrity:`y &#036;bpv_integrity_str&#036;&#92;n";


           if (bv_str >= 75)
           {
           msg += "Your armor integrity level is normal";
           }

           if (bv_str >= 51)
           {
           if (bv_str <= 74)
           {
           msg += "Watch your stats&#33; Armor integrity level in decline&#33;";
           }
           }

           if (bv_str >= 26)
           {
           if (bv_str <= 50)
           {
           msg += "Warning, your armor integrity level is nearing critical&#33;";
           }
           }


           if (bv_str >= 11)
           {
           if (bv_str <= 25)
           {
           msg += "Warning, your armor integrity level is critical&#33;";
           }
           }

           if (bv_str < 10)
           {
       ModMaxHP(i_my_id, -350);
       SetCustomByID(i_my_id, C_CUSTOM_ARMOR_ONCE, 0);
       SetCustomByID(i_my_id, C_CUSTOM_BULLET_PROOF_VEST_STRENGTH, 0);
       SetCustomByID(i_my_id, C_CUSTOM_BULLET_PROOF_VEST, 0);
             SetCustomByID(i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0);  
       msg = "Your bullet proof vest has been damaged beyond repair.";
       msg += "You have now lost 350 hit points.";
           }
    mailText(i_my_id, msg);
         }  
    /LogMsg("Done.");
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void SwatGearMaint()
    {
         LogMsg( "Processing Swat Gear Armor Maintnance for &#036;i_my_id&#036;.");



         int swat_str = GetCustomByID(i_my_id, C_CUSTOM_SWAT_GEAR_STRENGTH);
         fights = GetPlayerFights(i_my_id);
         if (fights == 0)
         {
         LogMsg( " ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.");
         }
         if (fights >= 1)
         {
            LogMsg( " &#036;i_my_id&#036; had &#036;fights&#036; fight(s) yesterday. Continuing with maintenance");
            int swat_random = RandomRange(10,50);
            int temp_swat_random;
            temp_swat_random = 0
            temp_swat_random += swat_random
            swat_str -= temp_swat_random;
            SetCustomByID(i_my_id, C_CUSTOM_SWAT_GEAR_STRENGTH, swat_str);



    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH, swat_str);

    if (swat_str >= 5)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,1);
    }
    if (swat_str >= 10)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,2);
    }
    if (swat_str >= 15)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,3);
    }
    if (swat_str >= 20)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,4);
    }
    if (swat_str >= 25)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,5);
    }
    if (swat_str >= 30)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,6);
    }
    if (swat_str >= 35)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,7);
    }
    if (swat_str >= 40)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,8);
    }
    if (swat_str >= 45)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,9);
    }
    if (swat_str >= 50)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,10);
    }
    if (swat_str >= 55)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,11);
    }
    if (swat_str >= 60)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,12);
    }
    if (swat_str >= 65)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,13);
    }
    if (swat_str >= 70)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,14);
    }
    if (swat_str >= 75)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,15);
    }
    if (swat_str >= 80)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,16);
    }
    if (swat_str >= 85)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,17);
    }
    if (swat_str >= 90)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,18);
    }
    if (swat_str >= 95)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,19);
    }
    if (swat_str >= 100)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,20);
    }
    if (swat_str >= 105)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,21);
    }
    if (swat_str >= 110)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,22);
    }
    if (swat_str >= 115)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,23);
    }
    if (swat_str >= 120)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,24);
    }
    if (swat_str >= 125)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,24);
    }
    if (swat_str >= 130)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,25);
    }
    if (swat_str >= 135)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,26);
    }
    if (swat_str >= 140)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,27);
    }
    if (swat_str >= 145)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,28);
    }
    if (swat_str >= 150)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,29);
    }
    if (swat_str >= 155)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,30);
    }
    if (swat_str >= 160)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,31);
    }
    if (swat_str >= 165)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,32);
    }
    if (swat_str >= 170)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,33);
    }
    if (swat_str >= 175)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,34);
    }
    if (swat_str >= 180)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,35);
    }
    if (swat_str >= 185)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,36);
    }
    if (swat_str >= 190)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,37);
    }
    if (swat_str >= 195)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,38);
    }
    if (swat_str >= 200)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,39);
    }
    if (swat_str >= 205)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,40);
    }
    if (swat_str >= 210)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,41);
    }
    if (swat_str >= 215)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,42);
    }
    if (swat_str >= 220)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,43);
    }
    if (swat_str >= 225)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,44);
    }
    if (swat_str >= 230)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,45);
    }
    if (swat_str >= 235)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,46);
    }
    if (swat_str >= 240)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,47);
    }
    if (swat_str >= 245)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,48);
    }
    if (swat_str >= 250)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,49);
    }
    if (swat_str >= 255)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,50);
    }
    if (swat_str >= 260)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,51);
    }
    if (swat_str >= 265)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,52);
    }
    if (swat_str >= 270)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,53);
    }
    if (swat_str >= 275)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,54);
    }
    if (swat_str >= 280)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,55);
    }
    if (swat_str >= 285)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,56);
    }
    if (swat_str >= 290)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,57);
    }
    if (swat_str >= 295)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,58);
    }
    if (swat_str >= 300)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,59);
    }
    if (swat_str >= 305)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,60);
    }
    if (swat_str >= 310)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,61);
    }
    if (swat_str >= 315)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,62);
    }
    if (swat_str >= 320)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,63);
    }
    if (swat_str >= 325)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,64);
    }
    if (swat_str >= 330)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,65);
    }
    if (swat_str >= 335)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,66);
    }
    if (swat_str >= 340)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,67);
    }
    if (swat_str >= 345)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,68);
    }
    if (swat_str >= 350)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,69);
    }
    if (swat_str >= 355)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,70);
    }
    if (swat_str >= 360)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,71);
    }
    if (swat_str >= 365)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,72);
    }
    if (swat_str >= 370)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,73);
    }
    if (swat_str >= 375)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,74);
    }
    if (swat_str >= 380)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,75);
    }
    if (swat_str >= 385)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,76);
    }
    if (swat_str >= 390)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,77);
    }
    if (swat_str >= 395)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,78);
    }
    if (swat_str >= 400)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,79);
    }
    if (swat_str >= 405)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,80);
    }
    if (swat_str >= 410)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,81);
    }
    if (swat_str >= 415)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,82);
    }
    if (swat_str >= 420)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,83);
    }
    if (swat_str >= 425)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,84);
    }
    if (swat_str >= 430)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,85);
    }
    if (swat_str >= 435)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,86);
    }
    if (swat_str >= 440)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,87);
    }
    if (swat_str >= 445)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,88);
    }
    if (swat_str >= 450)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,89);
    }
    if (swat_str >= 455)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,90);
    }
    if (swat_str >= 460)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,91);
    }
    if (swat_str >= 465)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,92);
    }
    if (swat_str >= 470)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,93);
    }
    if (swat_str >= 475)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,94);
    }
    if (swat_str >= 480)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,95);
    }
    if (swat_str >= 485)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,96);
    }
    if (swat_str >= 490)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,97);
    }
    if (swat_str >= 495)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,98);
    }
    if (swat_str >= 500)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,99);
    }
    if (swat_str == 500)
    {
    SetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH,100);
    }

    int swat_integrity_str = GetCustomByID(i_my_id, C_TOTAL_ARMOR_STRENGTH);

       msg = "Some scratches are beginning to appear on your swat gear&#39;s helmut and shield.&#92;n";
       msg = "`wArmor Integrity:`y &#036;swat_integrity_str&#036;&#92;n";

           if (swat_str >= 75)
           {
           msg += "Your armor integrity level is normal";
           }

           if (swat_str >= 51)
           {
           if (swat_str <= 74)
           {
           msg += "Watch your stats&#33; Armor integrity level in decline&#33;";
           }
           }

           if (swat_str >= 26)
           {
           if (swat_str <= 50)
           {
           msg += "Warning, your armor integrity level is nearing critical&#33;";
           }
           }


           if (swat_str >= 11)
           {
           if (swat_str <= 25)
           {
           msg += "Warning, your armor integrity level is critical&#33;";
           }
           }

           if (swat_str < 1)
           {
       ModMaxHP(i_my_id, -500);
       SetCustomByID(i_my_id, C_CUSTOM_ARMOR_ONCE, 0);
       SetCustomByID(i_my_id, C_CUSTOM_SWAT_GEAR_STRENGTH, 0);
       SetCustomByID(i_my_id, C_CUSTOM_SWAT_GEAR, 0);
             SetCustomByID(i_my_id, C_CUSTOM_GLOBAL_BODY_ARMOR, 0);
       msg = "Your swat gear has been damaged beyond repair.";
       msg += "You have now lost 500 hit points";
           }

    mailText(i_my_id, msg);
         }
    LogMsg("Done.");
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void CheckAmmo()
    {
    LogMsg( "Processing amount of ammunition used for &#036;i_my_id&#036;.");

         fights = GetPlayerFights(i_my_id);
         if (fights == 0)
         {
         LogMsg( " ABORTING&#33; &#036;i_my_id&#036; had no fights yesterday.");
         }

         if (fights >= 1)
         {
            LogMsg( " &#036;i_my_id&#036; had &#036;fights&#036; fight(s) yesterday. Continuing with maintenance");
    int Rate_of_Fire = GetCustomByID(i_my_id, C_CUSTOM_GUNS_ONCE);

        int i_random = RandomRange(0,100);

      if (Rate_of_Fire  == 1)
      {
        i_random = RandomRange(5,15);
      }

      if (Rate_of_Fire  == 2)
      {
        i_random = RandomRange(5,25);
      }

      if (Rate_of_Fire  == 3)
      {
        i_random = RandomRange(10,35);
      }

      if (Rate_of_Fire  == 4)
      {
        i_random = RandomRange(10,45);
      }

      if (Rate_of_Fire  == 5)
      {
        i_random = RandomRange(10,65);
      }

      if (Rate_of_Fire  == 6)
      {
        i_random = RandomRange(10,85);
      }

      if (Rate_of_Fire  == 7)
      {
        i_random = RandomRange(10,30);
      }

    int random_bullets;
    int number_clips;
    random_bullets = 0
    random_bullets += i_random
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE, random_bullets);
    int total_bullets = GetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE);
    int total_clips = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);

    if (total_clips <= 1)
    {
    goto finish;
    }


    if (total_bullets <= 15)
    {
    msg = "Bullets fired:`y &#036;random_bullets&#036; - `wClips left:`y &#036;total_clips&#036;&#92;n";
    msg += "Lucky you, you expended less than one clip yesterday fighting opponents&#92;n";
    mailText(i_my_id, msg);
    }
    if (total_bullets >= 16)
    {
    if (total_bullets <= 31)
    {
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE,0);
    int total_clips2 = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);
    total_clips2 -= 1
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, total_clips2)
    if (total_clips2 <= 1)
    {
    goto finish;
    }
    msg = "Bullets fired:`y &#036;random_bullets&#036; - `wClips left:`y &#036;total_clips&#036;&#92;n";
    msg += "You have expended one clip. `wClips:`y &#036;total_clips2&#036;&#92;n";
    mailText(i_my_id, msg);
    }
    }
    if (total_bullets >= 32)
    {
    if (total_bullets <= 47)
    {
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE,0);
    int total_clips3 = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);
    total_clips3 -= 2
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, total_clips3)
    if (total_clips3 <= 1)
    {
    goto finish;
    }
    msg = "Bullets fired:`y &#036;random_bullets&#036; - `wClips left:`y &#036;total_clips&#036;&#92;n";
    msg += "You have expended two clips. `wClips:`y &#036;total_clips3&#036;&#92;n";
    mailText(i_my_id, msg);
    }
    }
    if (total_bullets >= 48)
    {
    if (total_bullets <= 63)
    {
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE,0);
    int total_clips4 = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);
    total_clips4 -= 3
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, total_clips4)
    if (total_clips4 <= 1)
    {
    goto finish;
    }
    msg = "Yesterday you shot these many bullets `wBullets:`y &#036;random_bullets&#036;&#92;n";
    msg += "You have expended three clips. `wClips:`y &#036;total_clips4&#036;&#92;n";
    mailText(i_my_id, msg);
    }
    }
    if (total_bullets >= 64)
    {
    if (total_bullets <= 79)
    {
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE,0);
    int total_clips5 = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);
    total_clips5 -= 4
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, total_clips5)
    if (total_clips5 <= 1)
    {
    goto finish;
    }
    msg = "Yesterday you shot these many bullets `wBullets:`y &#036;random_bullets&#036;&#92;n";
    msg += "You have expended four clips. `wClips:`y &#036;total_clips5&#036;&#92;n";
    mailText(i_my_id, msg);
    }
    }
    if (total_bullets >= 80)
    {
    if (total_bullets <= 95)
    {
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE,0);
    int total_clips6 = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);
    total_clips6 -= 5
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, total_clips6)
    if (total_clips6 <= 1)
    {
    goto finish;
    }
    msg = "Yesterday you shot these many bullets. `wBullets:`y &#036;random_bullets&#036;&#92;n";
    msg += "You have expended five clips. `wClips:`y &#036;total_clips6&#036;&#92;n";
    mailText(i_my_id, msg);
    }
    }
    if (total_bullets >= 96)
    {
    SetCustomByID(i_my_id, C_NUMBER_OF_BULLETS_USED_PER_BATTLE,0);
    int total_clips7 = GetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN);
    total_clips7 -= 6
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, total_clips7)
    if (total_clips7 <= 1)
    {
    goto finish;
    }
    msg = "Yesterday you shot these many bullets.`wBullets:`y &#036;random_bullets&#036;&#92;n";
    msg += "You have expended six clips. `wClips:`y &#036;total_clips7&#036;&#92;n";
    mailText(i_my_id, msg);
    }
    goto end;


    finish:

    int totally_out = GetCustomByID(i_my_id, C_OUT_OF_AMMO);
    if (totally_out <= 0)
    {
    int zeroit;
    zeroit = 0
    SetCustomByID(i_my_id, C_NUMBER_OF_CLIPS_FOR_GUN, zeroit)

    int player_which_gun = GetCustomByID(i_my_id, C_CUSTOM_GUNS_ONCE);

      if (player_which_gun == 1)
      {

            int initial_gun_strengthA = GetCustomById(i_my_id, C_CUSTOM_DERRINGER_STRENGTH);
            int modstrengthA;
      modstrengthA = 0;
      modstrengthA -= initial_gun_strengthA;
            ModStrength(i_my_id, modstrengthA);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthA&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }


      if (player_which_gun == 2)
      {
            int initial_gun_strengthB = GetCustomById(i_my_id, C_CUSTOM_REVOLVER_STRENGTH);
            int modstrengthB;
      modstrengthB = 0;
      modstrengthB -= initial_gun_strengthB;
            ModStrength(i_my_id, modstrengthB);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthB&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }

      if (player_which_gun == 3)
      {
            int initial_gun_strengthC = GetCustomById(i_my_id, C_CUSTOM_DESERT_EAGLE_STRENGTH);
            int modstrengthC;
      modstrengthC = 0;
      modstrengthC -= initial_gun_strengthC;
            ModStrength(i_my_id, modstrengthC);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthC&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }

      if (player_which_gun == 4)
      {
            int initial_gun_strengthD = GetCustomById(i_my_id, C_CUSTOM_AR15_STRENGTH);
            int modstrengthD;
      modstrengthD = 0;
      modstrengthD -= initial_gun_strengthD;
            ModStrength(i_my_id, modstrengthD);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthD&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }

      if (player_which_gun == 5)
      {
            int initial_gun_strengthE = GetCustomById(i_my_id, C_CUSTOM_M16_STRENGTH);
            int modstrengthE;
      modstrengthE = 0;
      modstrengthE -= initial_gun_strengthE;
            ModStrength(i_my_id, modstrengthE);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthE&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }

      if (player_which_gun == 6)
      {
            int initial_gun_strengthF = GetCustomById(i_my_id, C_CUSTOM_AK47_STRENGTH);
            int modstrengthF;
      modstrengthF = 0;
      modstrengthF -= initial_gun_strengthF;
            ModStrength(i_my_id, modstrengthF);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthF&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }

      if (player_which_gun == 7)
      {
            int initial_gun_strengthG = GetCustomById(i_my_id, C_CUSTOM_M40A1_STRENGTH);
            int modstrengthG;
      modstrengthG = 0;
      modstrengthG -= initial_gun_strengthG;
            ModStrength(i_my_id, modstrengthG);
            msg  = "You gun is ineffective until you buy more ammo.&#92;n";
            msg += "You have lost `w&#036;initial_gun_strengthG&#036;`y strength&#92;n";
            SetCustomByID(i_my_id, C_OUT_OF_AMMO,1)
            mailText(i_my_id, msg);
            goto end;
      }
    }

    if (totally_out >= 1)
    {
    msg = "`wNote:`y  Remember that you are out of ammo.....";
    mailText(i_my_id, msg);
    }
    end:
    }
    LogMsg("Done.");
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************
    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    void DimartMidnightSupplyClerk()
    {

    string st_name = GetNameFromID(i_my_id);
    LogMsg("The di-mart midnight supply clerk is rummaging up todays inventory for player &#036;i_my_id&#036;.");

    String st_ITEM_A = "NULL";
    String st_ITEM_B = "Brass Knuckles";
    String st_ITEM_C = "Switch Blades";
    String st_ITEM_D = "Swords";
    String st_ITEM_E = "Bayonettes";
    String st_ITEM_F = "Darringers";
    String st_ITEM_G = "Revolvers";
    String st_ITEM_H = "Desert Eagles";
    String st_ITEM_I = "AR-15";
    String st_ITEM_J = "M-16";
    String st_ITEM_K = "MA140";
    String st_ITEM_L = "AK47";
    /String st_ITEM_M = "UZIs";
    String st_ITEM_N = "Chain Mail";
    String st_ITEM_O = "Kevlar";
    String st_ITEM_P = "Bullet Proof Vests";
    String st_ITEM_Q = "Swat Armor";
    /String st_ITEM_R = "Scopes";

    int i_tempA;
    int i_tempB;
    int i_tempC;
    int i_tempD;
    int i_tempE;
    int i_tempF;
    int i_tempG;
    int i_tempH;
    int i_tempI;
    int i_tempJ;
    int i_tempK;
    int i_tempL;
    int i_tempM;
    int i_tempN;
    int i_tempO;
    int i_tempP;
    int i_tempQ;
    int i_tempR;

    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_1, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_2, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_3, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_4, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_5, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_6, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_7, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_8, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_9, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_10, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_11, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_12, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_13, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_14, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_15, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_16, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_17, 0);
    SetCustomByID(i_my_id,  C_RANDOM_RESTOCK_AMOUNT_18, 0);

    int stock_number_A = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_1);
    int stock_number_B = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_2);
    int stock_number_C = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_3);
    int stock_number_D = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_4);
    int stock_number_E = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_5);
    int stock_number_F = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_6);
    int stock_number_G = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_7);
    int stock_number_H = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_8);
    int stock_number_I = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_9);
    int stock_number_J = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_10);
    int stock_number_K = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_11);
    int stock_number_L = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_12);
    /int stock_number_M = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_13);
    int stock_number_N = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_14);
    int stock_number_O = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_15);
    int stock_number_P = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_16);
    int stock_number_Q = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_17);
    /int stock_number_R = GetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_18);



    i_tempA = RandomRange(0, 2);

    if  (i_tempA == 1)
    {
    if (stock_number_A <= 1)
    {
    int A_random = RandomRange(0,25);
    int temp_A_random;
    temp_A_random = 0
    temp_A_random += A_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_1,temp_A_random);
    }
    }

    i_tempB = RandomRange(0, 2);
    if  (i_tempB == 1)
    {
    if (stock_number_B <= 1)
    {
    int B_random = RandomRange(0,25);
    int temp_B_random;
    temp_B_random = 0
    temp_B_random += B_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_2,temp_B_random);
    }
    }

    i_tempC = RandomRange(0, 2);
    if  (i_tempC == 1)
    {
    if (stock_number_C <= 1)
    {
    int C_random = RandomRange(0,25);
    int temp_C_random;
    temp_C_random = 0
    temp_C_random += C_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_3,temp_C_random);
    }
    }

    i_tempD = RandomRange(0, 2);
    if  (i_tempD == 1)
    {
    if (stock_number_D <= 1)
    {
    int D_random = RandomRange(0,25);
    int temp_D_random;
    temp_D_random = 0
    temp_D_random += D_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_4,temp_D_random);
    }
    }

    i_tempE = RandomRange(0, 2);
    if  (i_tempE == 1)
    {
    if (stock_number_E <= 1)
    {
    int E_random = RandomRange(0,25);
    int temp_E_random;
    temp_E_random = 0
    temp_E_random += E_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_5,temp_E_random);
    }
    }

    i_tempF = RandomRange(0, 2);
    if  (i_tempF == 1)
    {
    if (stock_number_F <= 1)
    {
    int F_random = RandomRange(0,25);
    int temp_F_random;
    temp_F_random = 0
    temp_F_random += F_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_6,temp_F_random);
    }
    }

    i_tempG = RandomRange(0, 2);
    if  (i_tempG == 1)
    {
    if (stock_number_G <= 1)
    {
    int G_random = RandomRange(0,25);
    int temp_G_random;
    temp_G_random = 0
    temp_G_random += G_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_7,temp_G_random);
    }
    }

    i_tempH = RandomRange(0, 2);
    if  (i_tempH == 1)
    {
    if (stock_number_H <= 1)
    {
    int H_random = RandomRange(0,25);
    int temp_H_random;
    temp_H_random = 0
    temp_H_random += H_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_8,temp_H_random);
    }
    }

    i_tempI = RandomRange(0, 2);
    if  (i_tempI == 1)
    {
    if (stock_number_I <= 1)
    {
    int II_random = RandomRange(0,25);
    int temp_II_random;
    temp_II_random = 0
    temp_II_random += II_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_9,temp_II_random);
    }
    }

    i_tempJ = RandomRange(0, 2);
    if  (i_tempJ == 1)
    {
    if (stock_number_J <= 1)
    {
    int J_random = RandomRange(0,25);
    int temp_J_random;
    temp_J_random = 0
    temp_J_random += J_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_10,temp_J_random);
    }
    }

    i_tempK = RandomRange(0, 2);
    if  (i_tempK == 1)
    {
    if (stock_number_K <= 1)
    {
    int K_random = RandomRange(0,25);
    int temp_K_random;
    temp_K_random = 0
    temp_K_random += K_random
    SetCustomByID(i_my_id, C_RANDOM_RESTOCK_AMOUNT_11,temp_K_random);
    }
    }

    i_tempL = RandomRange(0, 2);
    if  (i_tempL == 1)
    {
    if (stock_number_L <= 1)
    {
    int L_random = RandomRange(0,25);
    int temp_L_random;
    temp_L_r

  13. #13

    Default

    Look at the above code and see how the two scripts are placed together and do something similar on the server you wish to install it on. Then, REBOOT THE SERVER. If you do not reboot the server you will get error messages saying that the server does not recognize the new memory allocation handles in init.c, which was what the server was telling you the last time it gave you errors.

    Also, it would be wise to test this code out on an isolated server somewhere, since I do not have the access rights to install the FQ server software on the computers I have been using to test out any scripts. It should work as is, but I would still recommend doing a test run on it first.




  14. #14

    Default

    when you add the new scripts and reboot the system this is what you get:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;18 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 14.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 23.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 96.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 575.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1056.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 1545.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2032.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2333.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2661.
    WARNING&#58; 04-13 11&#58;19 PM&#58;Expected to find a function header, not **** in script script&#92;maint_player.c at line 2740.
    [/QUOTE]<span id='postcolor'>

    when you run force newday after the reboot....

  15. #15
    Guest

    Default

    Use the replace function in your text editor and remove all of the "****" astericks out of the script.

    Should work then, or comment them so the server doesn&#39;t try to interpret them.

  16. #16
    Guest

    Default

    //////////////////////////////////////////////////////////////////////////////////////////////////
    ///************************************************** ****************************************

    ****
    //////////////////////////////////////////////////////////////////////////////////////////////////

    You can see the "****" culprit above.

  17. #17
    Guest

    Default

    By the way, is there another way to access the deathstalker servers besides using port 12346? I only have access from a network and the ports you use are blocked for some reason or another. I can&#39;t even access the forums there.

  18. #18

    Default

    try port #12345 for the funeralquest server

  19. #19

    Default

    Installed New scripts and now running server in beta mode ran force new day and so far so good I think you did..you are a genuis....Yeah baby....If you want to test any mods just send them to me..... I love youre work...Now I just have to get you on the forum...some how..just try to find out what port besides 80 and 8080 that they dont have blocked and I will try to accomdate you.....

  20. #20
    Guest

    Default

    Grrr, I hate getting the runaround. I made an inquiry on another port you could set your servers up to use and could not get a direct answer out of one of the network technicians responsible, so I am not sure if anything is going to be done to allow me to access the forum other than the ports being physically unblocked from the firewall.

Similar Threads

  1. brain types list
    By rabidwolf9 in forum Dink Smallwood HD
    Replies: 2
    Last Post: 01-08-2005, 08:32 PM
  2. List of Servers
    By in forum Funeral Quest
    Replies: 2
    Last Post: 10-29-2004, 12:38 AM
  3. Server list not coming up
    By in forum Funeral Quest
    Replies: 1
    Last Post: 09-14-2004, 10:50 PM
  4. FQ Wish List
    By Heretic Man in forum Funeral Quest
    Replies: 16
    Last Post: 11-07-2002, 01:12 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •