Robert261171 Posted April 23, 2017 Report Share Posted April 23, 2017 Is there a script out there to display players Humanity on a leader board in the trader zones? It would be good for heroes to hunt bandits or bandits to hunt heroes. I'm looking for some kind of board that you look at and you can see a list of players Humanity on the server.. DieTanx and Petite 2 Link to comment Share on other sites More sharing options...
0 Relentless Posted April 24, 2017 Report Share Posted April 24, 2017 Such a nice idea and I think that should be possible. I will look into that but maybe there are also some other guys that could make that happen. :) Link to comment Share on other sites More sharing options...
0 Cherdenko Posted April 24, 2017 Report Share Posted April 24, 2017 im doing it kinda an other way. On my website you can see the Stats with a kinda Web Programm that gets Infos from the Database http://standalinos.de/napf/#/home looking like that Hooty 1 Link to comment Share on other sites More sharing options...
0 Robert261171 Posted April 24, 2017 Author Report Share Posted April 24, 2017 Thanks guys, would really appreciate if you can help me on this, Link to comment Share on other sites More sharing options...
0 juandayz Posted April 26, 2017 Report Share Posted April 26, 2017 On 24/4/2017 at 2:35 PM, Robert261171 said: Thanks guys, would really appreciate if you can help me on this, maybe you can start to test with an adaptation of noxsicarius teleport to player script. phum.sqf (mpmissions\yourinstance\humanity\) Spoiler private["_max","_j","_menuCheckOk"]; _menuCheckOk = false; _max = 10; _j = 0; snext = false; plist = []; pselect5 = ""; pMenuTitle = ""; fn_smenu = { private["_pmenu"]; _pmenu = [["",true],[pMenuTitle, [-1], "", -5, [["expression", ""]], "1", "0"]]; for "_i" from (_this select 0) to (_this select 1) do {_arr = [format['%1', plist select (_i)], [12], "", -5, [["expression", format ["pselect5 = plist select %1;", _i]]], "1", "1"]; _pmenu set [_i + 2, _arr];}; if (count plist > (_this select 1)) then {_pmenu set [(_this select 1) + 2, ["Next", [13], "", -5, [["expression", "snext = true;"]], "1", "1"]];} else {_pmenu set [(_this select 1) + 2, ["", [-1], "", -5, [["expression", ""]], "1", "0"]];}; _pmenu set [(_this select 1) + 3, ["Exit", [13], "", -5, [["expression", "pselect5 = 'exit';"]], "1", "1"]]; showCommandingMenu "#USER:_pmenu"; }; { if ((_x != player) && (getPlayerUID _x != "")) then { plist set [count plist, name _x]; }; } forEach entities "CAManBase"; pMenuTitle = "WANTED"; while {pselect5 == "" && !_menuCheckOk} do { [_j, (_j + _max) min (count plist)] call fn_smenu; _j = _j + _max; WaitUntil {pselect5 != "" || snext || commandingMenu == ""}; _menuCheckOk = (commandingMenu == ""); snext = false; }; if (pselect5 != "exit") then { _name = pselect5; { if(name _x == _name) then { _hum = _x getVariable['humanity', 0]; titleText[format["This player have %1 of humanity", _hum],"PLAIN DOWN"]; }; } forEach entities "CAManBase"; }; 2-custom fn_selfaction find: if ((_cursorTarget isKindOf "Plastic_Pole_EP1_DZ") && {speed player <= 1}) then { above paste: //gethum if ((_cursorTarget isKindOf "CIV_EuroMan01_EP1") && {speed player <= 1}) then { if (s_player_ph < 0) then { s_player_ph = player addaction[("<t color=""#F7D708"">" + ("GetPlayersHumanity") +"</t>"),"humanity\phum.sqf"]; }; } else { player removeAction s_player_ph; s_player_ph = -1; }; find: } else { //Engineering below paste: player removeAction s_player_ph; s_player_ph = -1; EDIIT; Also you will need in your custom variables.sqf Spoiler find this: dayz_resetSelfActions = { add below s_player_ph = -1; the // Weapons neutral trader gonna take the humanity script. use the scroll menu on he. change the id to give the option to another trader. Link to comment Share on other sites More sharing options...
0 salival Posted April 26, 2017 Report Share Posted April 26, 2017 @juandayzYou also need to put s_player_ph = -1; into variables.sqf to initialize it otherwise you will get an undefined error on startup juandayz 1 Link to comment Share on other sites More sharing options...
0 Cherdenko Posted April 26, 2017 Report Share Posted April 26, 2017 @juandayz #USER:_pmenu needs to be whitelisted if you use infistar Hooty and juandayz 2 Link to comment Share on other sites More sharing options...
0 juandayz Posted April 26, 2017 Report Share Posted April 26, 2017 @Cherdenko @salival im not sure about this line _hum = _x getVariable['humanity', 0]; if _x gonna work with this syntax.. or maybe _name getVariable........ Link to comment Share on other sites More sharing options...
0 Robert261171 Posted April 26, 2017 Author Report Share Posted April 26, 2017 I was thinking of a board rather then a trader, Ive done a board for linzburg trader, _vehicle_2 = objNull; if (true) then { _this = createVehicle ["WarfareBunkerSign", [8237.1494, 15476.086, 0.020662732], [], 0, "CAN_COLLIDE"]; _vehicle_2 = _this; _this setDir -129.80498; _this setVehicleInit "this setObjectTexture [0, ""IMG\Humanity\Humanity.jpg""]"; _this setPos [8237.1494, 15476.086, 0.020662732]; }; going to try and put the scripts in and see if it works.. Link to comment Share on other sites More sharing options...
0 juandayz Posted April 26, 2017 Report Share Posted April 26, 2017 @Robert261171 change the line in fn_Selfactions by if ((_cursorTarget isKindOf "WarfareBunkerSign") && {speed player <= 1}) then { to get an scroll menu option over your sign- Cherdenko 1 Link to comment Share on other sites More sharing options...
0 Robert261171 Posted April 27, 2017 Author Report Share Posted April 27, 2017 Ive tried that and I loose all the menu's of all the traders, Ive been looking at the old plotManagement script and trying to modify that one.. what do you think? Link to comment Share on other sites More sharing options...
0 juandayz Posted April 27, 2017 Report Share Posted April 27, 2017 2 hours ago, Robert261171 said: Ive tried that and I loose all the menu's of all the traders, Ive been looking at the old plotManagement script and trying to modify that one.. what do you think? if u loose the trader option, then youre making something wrong in ffn_selfactions Spoiler custom fn_selfaction find: if ((_cursorTarget isKindOf "Plastic_Pole_EP1_DZ") && {speed player <= 1}) then { above paste: //gethum if ((_cursorTarget isKindOf "WarfareBunkerSign") && {speed player <= 1}) then { if (s_player_ph < 0) then { s_player_ph = player addaction[("<t color=""#F7D708"">" + ("GetPlayersHumanity") +"</t>"),"humanity\phum.sqf"]; }; } else { player removeAction s_player_ph; s_player_ph = -1; }; find: } else { //Engineering below paste: player removeAction s_player_ph; s_player_ph = -1; Quote You also need to put s_player_ph = -1; into variables.sqf to initialize it otherwise you will get an undefined error on startup Link to comment Share on other sites More sharing options...
0 Robert261171 Posted April 27, 2017 Author Report Share Posted April 27, 2017 thanks mate, i will give it another try later... Link to comment Share on other sites More sharing options...
Question
Robert261171
Is there a script out there to display players Humanity on a leader board in the trader zones?
It would be good for heroes to hunt bandits or bandits to hunt heroes.
I'm looking for some kind of board that you look at and you can see a list of players Humanity on the server..
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now