Jump to content

Reaper5150

Member
  • Content Count

    74
  • Joined

  • Last visited

  • Days Won

    2

Reaper5150 last won the day on December 12 2019

Reaper5150 had the most liked content!

About Reaper5150

  • Rank
    Survivor

Profile Information

  • Gender
    Male
  • Location
    Lancaster , CA

Recent Profile Visitors

436 profile views
  1. Okay, I will give that a try. Thanks :)
  2. Hello, So I been working on this project for awhile now of using movable smoke particle effects as a tornado with pre set way points and running it server side as an event spawning every 30 minutes with player and vehicle set damage via a defined radius within the effects used. here are the effects that will be used with the way points to give you an idea! // Large smoke cloud. _ps setParticleCircle [0, [0, 0, 0]]; _ps setParticleRandom [0, [0.5, 0.5, 0], [0.2, 0.2, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _ps setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 3, 1], "", "Billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.5, 0.5, 0.5, 0.5], [0.75, 0.75, 0.75, 0.25], [1, 1, 1, 0]], [0.125], 1, 0, "", "", _OBJ]; _ps setDropInterval 0.1; [13090.89, 10346.834, -5.9899998] [13490.192, 6317.8848, -6] [13575.154022.9141, -19.492546] [10151.378, 2161.4382, -7.4330006] [8919.502, 2229.4382, -5.9953737] [7984.9731, 3181.4263, -6.5279236] [5249.3535, 2016.9407, -5.4690151] [2709.1372, 5391.3994, -208.22134] [4145.0723, 10919.914, -339.00989] [4145.0723, 10919.914, -339.00989] [6150, 10338.798, -274.31018], 200] [9888.3857, 8852.4531, -281.72604] [11568.834, 12604.863, -177.74866] [13845.961, 13969.376, -55.096813] Now as mentioned I'm trying to figure out how to attach the effects to the waypoints so it is moving following the waypoints. My question is there anyway to do this without making a very large and complicated script? And is there anyway to even pull it off?
  3. Also could I have permission to use your script and make changes later when I figure out how to do the backpack counting the items? I will add the credits as you being the one who wrote it :) // Set the spoil time at the start of the script. local _spoilTickTime = diag_tickTime; // Nested array of items that spoil within the inventory. [Spoilt item, New item]. local _spoilItems = [["FoodBaconRaw","FoodBioMeat"],["FishRawTuna","FoodBioMeat"]]; // spoil time in mins local _spoilTime = 15; while {1==1} do { // Every default: 15mins the items spoil in the inventory. if ((diag_tickTime - _spoilTickTime) > (_spoilTime*60)) then { { local _item = _x select 0; // Make sure that the player has acutally the item that spoils in their inventroy. if (_item in magazines player) then { local _newItem = _x select 1; // Count the items that will spoil now to get them all. _qtyItems = {_x == _item} count magazines player; for "_i" from 1 to _qtyItems do { player removeMagazine _item; player addMagazine _newItem; }; // Get display text of the spoilt items and inform the player. _displayName = getText(configFile >> "CfgMagazines" >> _item >> "displayname"); systemchat format ["%1 %2 spoiled in your inventory.",_qtyItems,_displayName]; }; } foreach _spoilItems; // Reset the spoil time of the script. _spoilTickTime = diag_tickTime; }; uisleep 5; };
  4. I agree! It makes since that those items would indeed have to save to each player in the DB and I was just thinking that when you commented the first time then I went back looking at the script improvements you made and hours of sitting here trying to figure out a work around. The main factor is I need to keep in mind that anything that has to save to each player like the gear is gonna require sql functions to be added to the DB. Well! it was worth a try I will set this aside and work on it again in the future when I'm a little better at coding. This is what I like about this community learning from the pro's so I thank you for taking time out of your day to teach me :) I'll just stick to helping some of these guys having trouble with simple scripts I'm use to seeing and have worked with before. You can remove this one if you want but I really think it may also help someone who is also just starting out. Thank again @A Man
  5. Yeah! this is gonna be way harder then I thought. Have to figure out how to get the script to check for the items. Great idea for sure but I think I dug myself a deep hole here lol I will have to do some wiki searches to better understand how to do this lol
  6. You are totally correct. I'm still very new at this whole coding thing and can only really make real simple scripts atm. And yes! I was wondering why it was doing exactly what you described without the loop. I will incorporate what you said to do and post the updated script with the fixes. Thanks for your help! :)
  7. Would any of you pro scriptwriters know how to add a countdown timer for this on the hud based on the times I have pre set in the script, I'm using zsc's playerHud.sqf??
  8. Hi all, Got another script I did for raw meats that will spoil after a set amount of time and removes the item from the gear and replaces it with bio meat. Don't know why this was never Implemented before so I went ahead and made one. :) I would love to add a count down timer on the hud for it but I'm not good at making those. You can customize this script by just changing the item classnames to what you want. Call it from init.sqf add at the bottom of the file something like execVM "scripts\foodstats.sqf"; change the path to whatever you like or where you keep your scripts. The script: //================================================ //=========== -Written by Reaper5150 ================ //================================================ private ["_hasitem","_hasitem2","hasitme3","_hasitem4","_hasitem5","_hasitem6","_hasitem7","_hasitem8","_hasitem9"]; _hasitem = "FoodBaconRaw" in magazines player; _hasitem2 = "FoodBeefRaw" in magazines player; _hasitem3 = "FoodGoatRaw" in magazines player; _hasitem4 = "FoodMuttonRaw" in magazines player; _hasitem5 = "FoodChickenRaw" in magazines player; _hasitem6 = "FoodRabbitRaw" in magazines player; _hasitem7 = "FoodRawTrout" in magazines player; _hasitem8 = "FoodRawSeaBass" in magazines player; _hasitem9 = "FoodRawTuna" in magazines player; _hasitem = "FoodBaconRaw" in magazines player; if (_hasitem) then { systemChat "The raw meat in your inventory will spoil in 15 minutes"; sleep 900; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodBaconRaw"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem2 = "FoodBeefRaw" in magazines player; if (_hasitem2) then { systemChat "The raw meat in your inventory will spoil in 15 minutes"; sleep 900; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodBeefRaw"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem3 = "FoodGoatRaw" in magazines player; if (_hasitem3) then { systemChat "The meat in your inventory will spoil in 15 minutes"; sleep 900; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodGoatRaw"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem4 = "FoodMuttonRaw" in magazines player; if (_hasitem4) then { systemChat "The meat in your inventory will spoil in 15 minutes"; sleep 900; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodMuttonRaw"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem5 = "FoodChickenRaw" in magazines player; if (_hasitem5) then { systemChat "The meat in your inventory will spoil in 15 minutes"; sleep 900; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodChickenRaw"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem6 = "FoodRabbitRaw" in magazines player; if (_hasitem6) then { systemChat "The meat in your inventory will spoil in 15 minutes"; sleep 900; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodRabbitRaw"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem7 = "FoodRawTrout" in magazines player; if (_hasitem7) then { systemChat "The meat in your inventory will spoil in 1 hour"; sleep 3600; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodRawTrout"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem8 = "FoodRawSeaBass" in magazines player; if (_hasitem8) then { systemChat "The meat in your inventory will spoil in 1 hour"; sleep 3600; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodRawSeaBass"; sleep 5; player addMagazine "FoodBioMeat"; }; _hasitem9 = "FoodRawTuna" in magazines player; if (_hasitem9) then { systemChat "The meat in your inventory will spoil in 1 hour"; sleep 3600; systemChat "Your raw meat has spoiled"; player removeMagazine "FoodRawTuna"; sleep 5; player addMagazine "FoodBioMeat"; };
  9. @Mig Do you think you could also help me with this? I'm trying to allow players to search wreaks on the map for random loot via selfactions I have that part working but can't figure out how to have it have random loot based on chance. ["<t size='0.40' font='Zeppelin32' color='#FFFFFF' shadow='2' align='center'>Searching...</t><br />",0,1,3,0.9] spawn BIS_fnc_dynamicText; sleep 2; ["<t size='0.40' font='Zeppelin32' color='#FFFFFF' shadow='2' align='center'>Searching...</t><br />",0,1,3,0.9] spawn BIS_fnc_dynamicText; sleep 2; ["<t size='0.40' font='Zeppelin32' color='#FFFFFF' shadow='2' align='center'>Searching...</t><br />",0,1,3,0.9] spawn BIS_fnc_dynamicText; sleep; ["<t size='0.40' font='Zeppelin32' color='#FFFFFF' shadow='2' align='center'>Something was found!</t><br />",0,1,3,0.9] spawn BIS_fnc_dynamicText; Need this set as random chance>> player addMagazine "PartWheel","ItemJerrycan","FoodCanFrankBeans","ItemSodaCoke","ItemBandage","ItemAntibiotic","ItemMorphine"; deleteVehicle _vehicle; }; };
  10. I'm sorry I was meaning allowing a player to send another player coins out of their bank via right click on Radio? something like a transfer...Sorry for the lack of info needed!
  11. Thank you! @Mig this is just what I needed :)
  12. I'm needing help with this please! I'm tired of players using dumb names like Admin or Owner joining and would like to kick them back to lobby until they change it. Here it what I have come up with but can't get it to work? waitUntil { alive player }; sleep 10; systemChat(format["CHECKING PLAYER NAME..."]); if(name player in [""] )then{ //Badnames would go here systemChat(format["YOUR PLAYER NAME IS NOT ALLOWED HERE, PLEASE CHANGE IT AND REJOIN!"]); sleep 5; systemChat(format["RETURNING YOU TO THE LOBBY. DO NOT TRY TO REJOIN WITH THE SAME NAME OR YOU WILL BE BANNED!!!"]); sleep 5; for "_badnames" do { titleText [format[localize "str_return_lobby", _badnames], "PLAIN DOWN", 1]; uiSleep 1; }; }; //disableUserInput true; Any help would be great! Feel free to use also :)
  13. Nice work! Is there anyway to give players coins via the right click on ItemRadio?
  14. Simple little script I made allowing admins to send a server wide message to players when they login. [Install] Can be customized to your liking! Get a sound you like and convert it to .ogg file and place where your sounds are. Create .sqf and name something like adminlogin.sqf Simply call from your init.sqf at the bottom put execVM "scripts\adminlogin.sqf"; [The script] ///////////////////////////////////////////////////////// /////////Written by Reaper5150///////////////// ///////////////////////////////////////////////////////// private ["_uid","_adlogin"]; waitUntil {(getPlayerUID player) != ""}; _uid = getPlayerUID player; _adlogin = [ "0", // <<your admins uids and names after the "//" "0", // "0", // "0" // Don't add comas at the end ]; if (_uid in _adlogin) then { [nil, player, rSAY, "Alert", 50000] call RE; <<YOUSOUND.OGG <<Lower "50000" to 100-200 if you choose [nil, nil, rTitleText, format["<Server name here>: AN ADMIN HAS JUST LOGGED IN:"], "PLAIN"] call RE; // Message the whole server sleep 10; [nil, nil, rTitleText, format["<ADMIN MESSAGE>: YOU WILL BE WATCHED FOR USE OF CHEATS AND RULE BREAKING!!!"], "PLAIN"] call RE; // Message the whole server sleep 10; [nil, nil, rTitleText, format["<ADMIN MESSAGE>: IF YOU REQUIRE ASSISTANCE? PLEASE ASK THE ADMIN FOR HELP!"], "PLAIN"] call RE; // Message the whole server }; [In description.ext] add class CfgSounds { sounds[] = {Alert}; class Alert { name="Alert"; sound[]={dayz_code\sounds\Alert.ogg,0.9,1}; titles[] = {}; };
×
×
  • Create New...