Results 1 to 3 of 3
  1. #1
    Falloutguy22's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Chicago, Il
    Posts
    40
    Reputation
    10
    Thanks
    0
    My Mood
    Cheerful

    How do I add a custom script to YoloMenu?

    Hello everyone, I was wondering if anyone can show me how to add this script into YoloMenu. Its supposed to spawn a group of Survivors to just follow you around. Any help is appreciated and thank you in advance. Oh and sorry If I used the wrong box for the code
    Code:
    openMap [true, false];
    
    sCode = 'hint "";';
    sCode = sCode + ' _pos = [(cTargetPos select 0) + random 10, (cTargetPos select 1) + random 10, 10];';
    //sCode = sCode + ' PLANE1 = createVehicle ["C130J", [(_pos) select 0,(_pos) select 1,500], [], 0, "FLY"];';
    sCode = sCode + 'cpbLoops = 4;';
    sCode = sCode + 'cpLoopsDelay = 0.13;';
    sCode = sCode + 'for "_i" from 0 to cpbLoops do {';
    sCode = sCode + ' _pos1 = [(cTargetPos select 0) + random 10, (cTargetPos select 1) + random 10];';
    sCode = sCode + ' _chute = createvehicle ["ParachuteC", [(_pos1) select 0,(_pos1) select 1], [], 0, "FLY"];';
    sCode = sCode + ' _unit = group player createunit ["Survivor3_DZ", [(_pos1) select 0,(_pos1) select 1,152], [], 0, "FORM"];';
    sCode = sCode + '[_unit] call fnc_setBehavior;';
    sCode = sCode + '[_unit] call fnc_unitLoadout;';
    sCode = sCode + '[_unit] call fnc_survivorLoot;';
    sCode = sCode + ' _unit attachTo [ _chute, [0,0,0]];';
    sCode = sCode + 'sleep cpLoopsDelay;};';
    sCode = sCode + 'cTargetPos = nil;cpbLoops = nil;cpLoopsDelay = nil;';
    
    onMapSingleClick "cTargetPos = _pos;[] spawn compile sCode; onMapSingleClick '';true;";

  2. #2
    Woodhouse's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Swagtown, Yoloville
    Posts
    2,832
    Reputation
    228
    Thanks
    3,247
    My Mood
    Sick
    Quote Originally Posted by Falloutguy22 View Post
    Hello everyone, I was wondering if anyone can show me how to add this script into YoloMenu. Its supposed to spawn a group of Survivors to just follow you around. Any help is appreciated and thank you in advance. Oh and sorry If I used the wrong box for the code
    Code:
    openMap [true, false];
    
    sCode = 'hint "";';
    sCode = sCode + ' _pos = [(cTargetPos select 0) + random 10, (cTargetPos select 1) + random 10, 10];';
    //sCode = sCode + ' PLANE1 = createVehicle ["C130J", [(_pos) select 0,(_pos) select 1,500], [], 0, "FLY"];';
    sCode = sCode + 'cpbLoops = 4;';
    sCode = sCode + 'cpLoopsDelay = 0.13;';
    sCode = sCode + 'for "_i" from 0 to cpbLoops do {';
    sCode = sCode + ' _pos1 = [(cTargetPos select 0) + random 10, (cTargetPos select 1) + random 10];';
    sCode = sCode + ' _chute = createvehicle ["ParachuteC", [(_pos1) select 0,(_pos1) select 1], [], 0, "FLY"];';
    sCode = sCode + ' _unit = group player createunit ["Survivor3_DZ", [(_pos1) select 0,(_pos1) select 1,152], [], 0, "FORM"];';
    sCode = sCode + '[_unit] call fnc_setBehavior;';
    sCode = sCode + '[_unit] call fnc_unitLoadout;';
    sCode = sCode + '[_unit] call fnc_survivorLoot;';
    sCode = sCode + ' _unit attachTo [ _chute, [0,0,0]];';
    sCode = sCode + 'sleep cpLoopsDelay;};';
    sCode = sCode + 'cTargetPos = nil;cpbLoops = nil;cpLoopsDelay = nil;';
    
    onMapSingleClick "cTargetPos = _pos;[] spawn compile sCode; onMapSingleClick '';true;";
    It follows Bowen menu format. You'd have to have a look at Bowen's menu before you could add in scripts like that. I'm almost done with my edit. The only thing I managed to add in besides weapons, equipment, morphs is a suicide script. I think I may have found a way to do it though.
    Last edited by chickeninabiskit; 02-10-2013 at 11:45 AM.

  3. #3
    Falloutguy22's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Chicago, Il
    Posts
    40
    Reputation
    10
    Thanks
    0
    My Mood
    Cheerful
    If you can add that to your menu I would download it in seconds. I do the same thing though, I add equipment,clothing,weapons,other skins like bandit,female,rocket's personal skin etc. I'll do some research on bowen's menu and see what I can do.

Similar Threads

  1. [Help] How do i add my own scripts to Rustler's menu?
    By boxybox100 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 1
    Last Post: 01-20-2013, 06:13 AM
  2. [Help] how do i add custom scripts in monkey menu
    By The amazing in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 3
    Last Post: 01-18-2013, 02:19 PM
  3. [Help] How to add Custom scripts to Monkey Menu
    By firepower749 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 0
    Last Post: 01-13-2013, 07:49 PM
  4. How do i add Custom Tags to my char!!
    By killer660 in forum Homework & Learning Section
    Replies: 1
    Last Post: 07-15-2011, 04:48 AM
  5. how do i add a script on ubuntu on rsbot?
    By deadskulz in forum RuneScape Discussions
    Replies: 20
    Last Post: 06-10-2011, 08:58 AM

Tags for this Thread