[Release] pick spawn and loadout

Thank you ebay, I tried that - no change. Actually, it was then that I noticed that some of the gear is not spawning either, so its missing the backpack and some of the tools (tool box, matches, watch, and backpack ) but has some of the items. I will post a pic of what gear is spawning along with a copy of the code:

Code:
if (dayz_combat == 1) then {
titleText ["You can't select a class while in combat.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {
titleText ["Selecting class...", "PLAIN DOWN", 3];
[dayz_playerUID,dayz_characterID,'SurvivorW2_DZ'] spawn player_humanityMorph;
removeAllWeapons player;
removeAllItems player;
player addWeapon "MP5SD";
player selectWeapon "MP5SD";
player addMagazine '30Rnd_9x19_MP5SD';
player addMagazine '30Rnd_9x19_MP5SD';
player addMagazine '30Rnd_9x19_MP5SD';
player addMagazine 'FoodSteakCooked';
player addMagazine 'ItemSodaCoke';
player addMagazine 'ItemBloodbag';
player addMagazine 'ItemPainkiller';
player addMagazine 'ItemAntibiotic';
player addMagazine 'ItemMorphine';
player addMagazine 'ItemEpinephrine';
player addWeapon 'ItemMap';
player addWeapon "M9SD";
player addMagazine '15Rnd_9x19_M9SD';
player addMagazine '15Rnd_9x19_M9SD';
player addMagazine '15Rnd_9x19_M9SD';
player addMagazine '15Rnd_9x19_M9SD';
player addMagazine '15Rnd_9x19_M9SD';
player addMagazine 'ItemBandage';
player addMagazine 'ItemBandage';
player addMagazine 'ItemBandage';
player addWeapon 'ItemCompass';
player addWeapon 'ItemHatchet';
player addWeapon 'ItemKnife';
player addWeapon 'Itemmatchbox';
player addWeapon 'Itemtoolbox';
player addWeapon 'ItemWatch';
removebackpack player;
player addBackPack "DZ_Backpack_EP1";
mybackpack = unitBackpack player;
mybackpack addMagazineCargoGlobal ["ItemBloodbag",2];
mybackpack addMagazineCargoGlobal ["ItemPainkiller",2];
mybackpack addMagazineCargoGlobal ["ItemAntibiotic",1];
mybackpack addMagazineCargoGlobal ["ItemMorphine",2];
mybackpack addMagazineCargoGlobal ["ItemBandage",2];
mybackpack addMagazineCargoGlobal ["ItemEpinephrine",1];
mybackpack addMagazineCargoGlobal ["FoodSteakCooked",2];
mybackpack addMagazineCargoGlobal ["ItemSodaCoke",2];
mybackpack addMagazineCargoGlobal ["15Rnd_9x19_M9SD",2];
reload player;
sleep 5;
titleFadeOut 1;

};

arma2oa2014-02-0512-51-47-69.jpg


One more...

The scroll wheel option for both spawn select and class select seems to disappear after only 3-4 seconds. Unless you are very fast, it is difficult to select a choice from the menu before the menu closes, forcing you to start over.

I made sure to Add the command menu names used

Code:
_cMenu = ['#USER:newspawn','#USER:classes','#USER:Page4','#USER:Donator','#USER:Peasant'];

Also made sure blockall cmdmenus was set to false:

Code:
BLOCK ALL CMDMenus */ _BCM = false;

Is there a way to increase the time the menu remains open or is there some other function that is closing the menu?
 
Last edited:
ebay anyway to add humanity check if 200k or more so you dont get the 5ok class selection? Since i added 50k classses and 200k classes. Othere than that works like a charm this how i got it set up

pathtoclasses = "newspawn\classes\";
EXECscript1 = 'player execVM "'+pathtoclasses+'%1"';
PlayerHumanity = (player getVariable "humanity");
if (PlayerHumanity > +200000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:protector", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if (PlayerHumanity < -200000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:Destroyer", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

PlayerHumanity = (player getVariable "humanity");
if (PlayerHumanity > 50000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:Battle", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if (PlayerHumanity < -50000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:Gore", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if (isNil "classes") then {
classes =
[
["",false],
["Select Class", [2], "#USER:Grunt", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};
 
ebay,

Adding the extra 2 seconds fixed the issue with backpack and gear not spawning. You have solved all the issues! Thank you.

Sent you a PM with a question related to scripting.
 
pathtoclasses = "newspawn\classes\";
EXECscript1 = 'player execVM "'+pathtoclasses+'%1"';
PlayerHumanity = (player getVariable "humanity");
if ((PlayerHumanity > 50000) && (PlayerHumanity < 200000)) then {
classes =
[
["",false],
["Select Class", [2], "#USER:protector", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if ((PlayerHumanity > -50000) && (PlayerHumanity < -200000)) then {
classes =
[
["",false],
["Select Class", [2], "#USER:Destroyer", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if (PlayerHumanity > 50000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:Battle", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if (PlayerHumanity < -50000) then {
classes =
[
["",false],
["Select Class", [2], "#USER:Gore", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};

if (isNil "classes") then {
classes =
[
["",false],
["Select Class", [2], "#USER:Grunt", -5, [["expression", ""]], "1", "1"],
["", [-1], "", -5, [["expression", ""]], "1", "0"],
["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];};


still cant switch from 50k to 200k option not sure whats wrong works from 0 humanty then 50k humanity but not 200k humanity
 
Hey there! Thanks for the mod, its pretty great!

I notice that some of my survivors spawn in and they see the text but not the scroll wheel on the side. I do not have access to any antihack. is there anything that can be done? Maybe a diag to put in to see if it shows up why in the RPT?
 
Cool thanks for that. Looking to switch soon since we all know how SS block just about everthing but the server.cfg file. Thanks again!

Sent from Galaxy S4 using Tapatalk
 
Hi so I have tried using your script in my epoch 1.0.4.1 server and everytime you die and spawn...it will spawn you next to your dead body with the fear you had when you died...not sure what i did wrong
 
Hi so I have tried using your script in my epoch 1.0.4.1 server and everytime you die and spawn...it will spawn you next to your dead body with the fear you had when you died...not sure what i did wrong
 
not sure what edits in the server_playerLogin.sqf i was supposed to do, i just want the spawn option with no loadouts or anything else

this was in the RPT
Code:
 6:50:36 "ERROR: server_playerSync: Cannot Sync Player TokinHerb [105]. Position in debug! [-7242.22,19536.7,0.00112915]"
6:50:51 "PDEATH: Player Died 127795462"
6:51:07 "ERROR: server_playerSync: Cannot Sync Player TokinHerb [105]. Position in debug! [-7239.67,19539.3,0.246155]"
6:51:08 "get: STRING (127795462), sent: STRING (127795462)"
6:51:08 "DISCONNECT: TokinHerb (127795462) Object: B 1-1-A:1 (TokinHerb) REMOTE, _characterID: 105 at loc [-7239.67,19539.3,0.246155]"
6:51:08 "ERROR: server_playerSync: Cannot Sync Player TokinHerb [105]. Position in debug! [-7239.67,19539.3,0.246155]"
6:51:08 Client: Remote object 3:6 not found
 
Last edited:
Ok so I went into my database and I cleared out all of the CHARACTER_DATA and then when i spawned into my server the script ran fine, but after a couple of deaths it will just spawn me in the same place where I died...not sure why its doing this when the database is saving the CHARACTER_DATA
 
My guys started spawning at their corpse with all of their gear too. I was working on a script that had me modify the player died though.

Sent from Galaxy S4 using Tapatalk
 
Back
Top