Author Topic: a wild vehicle spawn thread appears  (Read 8374 times)

0 Members and 1 Guest are viewing this topic.

darkrounge

  • Online Villain
  • ***
  • Posts: 166
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #15 on: June 12, 2012, 08:39:48 pm »
im calling for joopig, nail, ofp, z, gerk and medic - help us nubs to get a way around it! Please!

The method has been posted a few times lol :)

Recon

  • Intentional Cheater
  • **
  • Posts: 30
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #16 on: June 12, 2012, 08:52:25 pm »
im calling for joopig, nail, ofp, z, gerk and medic - help us nubs to get a way around it! Please!

The method has been posted a few times lol :)
I can't seem to find it - anywhere. Have been looking everywhere though - for the past four hours. I spent an hour or so just looking through the DayZ Code, but didn't find much. Is there any way you could PM me/us a link to the thread? I swear I'm blind.

Not asking for handouts, just a simple hint.

Temo

  • Relentless Teamkiller
  • **
  • Posts: 93
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #17 on: June 12, 2012, 09:06:03 pm »
Do you mean this post?:
Seeing as TAW_Tonic pissed me off, here's how to bypass all the new "Anti-Cheat's"

Teleporting:

Code: [Select]
player setVariable["lastPos",_charPos,true];
Add this to your original teleporting script for dayz (Isn't standalone) where _charPos is where you want to go. Does not need to be run on the server, you can do this from your PC.

Creating Vehicles:

Code: [Select]
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object]; where _object is the vehicle you want to spawn (Not standalone again, add it to your other code)

You have to run this ON THE SERVER. DO NOT USE do_magic.sqf in Darky's mod-app, it will likely get you banned. There are other methods, find them.


BEFORE someone wants to say "Ohh you leaked this" I found both bypass's myself and then passed them onto others; the work is my own. Even the theory behind the new public script came from me (Which your not getting, don't even try to PM me)

Hit me, Tonic

or this ?:

Was interested to know why publicVariable wasn't working on the serverObjectMonitor:

Code: [Select]
"dayz_serverObjectMonitor" addPublicVariableEventHandler {dayz_serverObjectMonitor = dayz_safety};


Took 2 minutes to google "publicVariable" and then click "addPublicVariableEventHandler" and then search the code files for "addPublicVariableEventHandler".

Seriously guys, use your brains. If you can't work it out from this, I give up.



Tip 2:
Code: [Select]
"dayzPublishObj" addPublicVariableEventHandler {(_this select 1) call server_publishObj};
You can use either line of code, or both. Doesn't matter to me.

So now we have this code lines to spawn vehs but i dont know how to use them. I searched all the commands up in the biwiki but still dont get it right. I spend like 5 hours searching the forums and 2 hours searching the code today and yesterday and i still cant figure it out...



Recon

  • Intentional Cheater
  • **
  • Posts: 30
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #18 on: June 12, 2012, 09:11:05 pm »
So now we have this code lines to spawn vehs but i dont know how to use them. I searched all the commands up in the biwiki but still dont get it right. I spend like 5 hours searching the forums and 2 hours searching the code today and yesterday and i still cant figure it out...
In the same boat. I've tried every combination I can think of - but it often results in me either dying upon running the script, or death as soon as I enter the vehicle.

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #19 on: June 12, 2012, 09:19:25 pm »
"I searched all the commands up in the biwiki"

Bullshit.

If you did you would know that AddPublicEventHandler add's a public event handler, it doesn't spawn a vehicle. You would also know that this event handler is called when publicVariable is executed on the variable in the left hand side. Then you would also know that the code inside the brackets is executed when this event handler is called.
Therefore you brain would work out this has jack shit todo with making the vehicle but is instead something else. Then your brain should go to this is something that is stopping you making vehicles.

Stop telling yourself lies and get with reality. Complain that you "Cant do it" when you understand what the code does and how to edit it todo what you want. And then you can't complain, because you've done it.

I >GAVE YOU< the command that was giving everyone problems. I said before all you need to do is make dayz_serverObjectMonitor a public variable (Keep in mind the event handler) but still you can't work it out.

Is there anything else I can do to teach you?
"Now we are going to watch my boys do it" - Joopig

Temo

  • Relentless Teamkiller
  • **
  • Posts: 93
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #20 on: June 12, 2012, 09:37:49 pm »
so this

Code: [Select]
"dayz_serverObjectMonitor" addPublicVariableEventHandler {dayz_serverObjectMonitor};
would add a public variable to dayz_serverObjectMonitor if dayz_serverobjectmonitor is executed.

I did know, that addPublicVariableEventHandler has nothing to do with the vehicle spawn, maybe i just did not write it down properly.

Having a publicVariable inside the dayz_serverobjectmonitor means, that we can edit it to our purpose?

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #21 on: June 12, 2012, 09:49:13 pm »
They always do it like that:
Code: [Select]
_lada = "M1030" createVehicle (position player);
_lada setVariable ["ObjectID", 123456, true];

But vehs explode if you get in (or you die)
and niel said
Quote
Using their code is the best way to go. Don't write anything you don't need to

and someone also hinted to the local_publishobject.sqf.

B2T:
does any1 has the answers?

edit:

this is how it looks atm...

Code: [Select]
"dayz_serverObjectMonitor" addPublicVariableEventHandler {dayz_serverObjectMonitor = dayz_safety};
_direction = getdir vehicle player;
_location = position vehicle player;
_location = [(_location select 0)+5,(_location select 1)];
_className = "Lada1";
_heli setVariable ["ObjectID", 654654, true];
_heli = createVehicle [_className, _location, [], 0, "CAN_COLLIDE"];



"I did know, that addPublicVariableEventHandler has nothing to do with the vehicle spawn,"

Then why is it in your vehicle spawn script?
"Now we are going to watch my boys do it" - Joopig

Temo

  • Relentless Teamkiller
  • **
  • Posts: 93
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #22 on: June 12, 2012, 10:10:22 pm »
I dont really know. I saw it in your post and just tryed it.

Excuse me but im still really nooby but im eager and have much time at the moment to teach myself scripting in arma.

Recon

  • Intentional Cheater
  • **
  • Posts: 30
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #23 on: June 12, 2012, 10:15:30 pm »
Still can't get it to work, currently trying this:

Code: [Select]
"dayz_serverObjectMonitor" addPublicVariableEventHandler {dayz_serverObjectMonitor = dayz_safety};
_lada = "M1030" createVehicle (position player);
_lada dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,M1030];
_lada setVariable ["ObjectID", 123456, true];
I have a feeling I'm way off - but hey, I'm trying.

joopig

  • Insane Joker
  • ****
  • Posts: 602
    • View Profile
    • A Place Of Dreams
Re: a wild vehicle spawn thread appears
« Reply #24 on: June 12, 2012, 10:41:58 pm »
Hes saying it isnt related to createVehicles at all but if you want to attach the objectMonitor you will need it. :icon_rolleyes2

Temo

  • Relentless Teamkiller
  • **
  • Posts: 93
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #25 on: June 12, 2012, 11:23:20 pm »
_direction = getdir vehicle player;
_location = position vehicle player;
_location = [(_location select 0)+5,(_location select 1)];
_className = "Lada1";
_object = createvehicle[_className, _location, [], 0, "CAN_COLLIDE"];
_object = setVariable ["lada1", 654654, true];
PublicVariable (_object);
"dayz_serverObjectMonitor"      addPublicVariableEventHandler {publicvariable(_object)};
 
this is what it looks at the moment
it spawns and stays where it is at the moment.
but kills me ofc
« Last Edit: June 13, 2012, 12:19:01 am by Temo »

ChocoKFCguy

  • Cheater Apprentice
  • *
  • Posts: 12
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #26 on: June 12, 2012, 11:58:04 pm »
Same here. Tried different combinations, still dying. Every day I die.

Temo

  • Relentless Teamkiller
  • **
  • Posts: 93
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #27 on: June 13, 2012, 12:37:57 am »
push...

i still dont know how to use or the line of code  :icon_sad2

leebeasley

  • Online Villain
  • ***
  • Posts: 115
  • Nyaaa!
    • View Profile
Re: a wild vehicle spawn thread appears
« Reply #28 on: June 13, 2012, 12:49:09 am »
Hes saying it isnt related to createVehicles at all but if you want to attach the objectMonitor you will need it. :icon_rolleyes2

Thanks for the huge hint, but perhaps you could give a bit more info on how to?

Also thanks for being helpful as always Neil!

Quote
I >GAVE YOU< the command that was giving everyone problems. I said before all you need to do is make dayz_serverObjectMonitor a public variable (Keep in mind the event handler) but still you can't work it out.

Could you go a little more in depth on how to make it a public variable and/or what a public variable even is? Thanks for your patince. >_< Feel like shit asking for all this help.
« Last Edit: June 13, 2012, 12:56:17 am by leebeasley »
I cut corners while running laps in gym class because I'm a fearless bastard.

joopig

  • Insane Joker
  • ****
  • Posts: 602
    • View Profile
    • A Place Of Dreams
Re: a wild vehicle spawn thread appears
« Reply #29 on: June 13, 2012, 12:56:16 am »
To get this to work you need to make the server add it for you, think setVehicleInit.