Made for www.zombiespain.es
Currently Exile bases, safes and cars are imposible to raid propertly. With this addon I wanted to bring to Exile Mod the posibility of raiding.
- Configurable object to act as a lockpick, by default is using MineDetector (if you have a mine detector in the inventory you will see a wheel menu when looking to a door , safe or car)
- Lockpick can open a door.
- Lockpick can open a safe.
- Lockpick can open a car.
- Configurable probabilities for doors, safes and cars independently.
- Configurable lockpick time for doors, safes and cars independently.
- When used in a safe or door , a notification will be sent to the building authorized members of the territory, and a mark will appear on their map during 5 minutes.
- When used in a car, a notification will be sent to all the server and the initial location of the car will be shown for 5 minutes.
- Lockpick usages will be saved to a database table for admin tracking of its usage. (more uses in the future).
- New trader that will show the name of the people that raided you for an ammount of money.
- Email sent to the players that are under attack.
###Step 1 - Mission addon
- Unpack your mission.pbo.
- Copy the addons folder from "1 - MISSION" and paste it inside your mission folder
- Copy the content of the init.sqf next to the addons folder and paste it in your init.sqf, if you dont have a init.sqf then paste this one in your mission.
- OPTIONAL - Configure the lockpick usage in addons/w4_lockpick/initLockpick.sqf.
###Step 2 - Server addon
- Open the folder "2 - SERVER"
- Pack the folder w4_lockpick into a pbo and paste it inside your @ExileServer/addons folder.
###Step 3 - CfgRemoteExec
-
Locate your Class CfgRemoteExec (By default in the description.ext in your mission pbo)
-
Modify it with the following:
class CfgRemoteExec { class Functions { mode = 1; jip = 0; class ExileServer_system_network_dispatchIncomingMessage { allowedTargets=2; }; class ExileClient_system_network_dispatchIncomingMessage { allowedTargets=1; }; class w4_lockpick_fnc_lockpicked { allowedTargets = 2; }; class w4_lockpick_fnc_lockpick_attempt { allowedTargets = 2; }; class w4_lockpick_fnc_lockpick_failed { allowedTargets = 2; }; class w4_lockpick_fnc_create_marker_client { allowedTargets = 1; }; }; class Commands { mode=0; jip=0; }; };
###Step 4 - Database table
-
Add the following to the bottom of your @ExileServer\extDB\sql_custom_v2\exile.ini
[saveLockpickUsage] SQL1_1 = INSERT INTO lockpick SET uid = ?, object_owner = ?, territory_id = ?, position_x = ?, position_y = ? , position_z = ?, object = ?, type = ? , object_type = ? ,datetime = NOW() Number Of Inputs = 9 SQL1_INPUTS = 1,2,3,4,5,6,7,8,9 Return InsertID = true -
Create the following schema on your exile database.
DROP TABLE IF EXISTS `lockpick`; CREATE TABLE `lockpick` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` varchar(32) NOT NULL, `object_owner` varchar(64) NOT NULL, `territory_id` int(11) NOT NULL, `position_x` double NOT NULL, `position_y` double NOT NULL, `position_z` double NOT NULL, `object` varchar(64) NOT NULL, `type` varchar(20) NOT NULL, `object_type` varchar(20) NOT NULL, `datetime` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=latin1;
- To all the members and administration of www.zombiespain.es