511
Mapping Help / Re: Failed to load interior.
« on: March 28, 2011, 02:35:48 PM »it told me that I did not have either 28100 or 28200 open
I think you're supposed to port forward ports 28000 to 28100.
Not 28100 to 28200.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
it told me that I did not have either 28100 or 28200 open
Theirs some scale of like 0.4 for it I forget.
This doesn't overwrite the original or does it?
You basically said,
"Hey there's this thing from Iban's mod I want to use. I won't tell you why but please fix it for me."
So, no. Nobody should offer to help you.
Edit: Cool ninja edit, bro.
function CityRPGPicklockImage::onHitObject(%this, %obj, %slot, %col, %pos, %normal)
{
if(%col.getType() & $TypeMasks::FxBrickObjectType)
{
%client = %obj.client;
%brickData = %col.getDatablock();
if(isObject(%col.door) && %col.door.closed)
{
if(getRandom(0, 3) > 2)
{
for(%i = 0; %col.eventInput[%i] !$= "" && !%doorPath; %i++)
{
if(%col.eventOutput[%i] $= "doorOpen")
%doorPath = %col.eventOutputParameter[%i, 2];
}
switch(%doorPath)
{
case 0: %doorResult = %col.doorOpenCW();
case 1: %doorResult = %col.doorOpenCCW();
default: %doorResult = %col.doorOpen();
}
%col.schedule(3000, "doorClose");
if(%doorResult == 1)
{
%col.schedule(3000, "doorClose");
commandToClient(%client, 'centerPrint', "\c6You have commited a crime. [\c3Breaking and Entering\c6]", 3);
CityRPG_AddDemerits(%client.bl_id, $CityRPG::demerits::breakingAndEntering);
}
else
{
commandToClient(%client, 'centerPrint', "\c6You have commited a crime. [\c3Attempted Breaking and Entering\c6]", 3);
CityRPG_AddDemerits(%client.bl_id, $CityRPG::demerits::attemptedBnE);
}
}
else
commandToClient(%client, 'centerPrint', "\c6Picklocking attempt failed", 1);
}
}
else if(%col.getType() & $TypeMasks::VehicleObjectType)
{
if(%col.locked)
{
%col.locked = false;
CityRPG_AddDemerits(%obj.client.bl_id, $CityRPG::demerits::grandTheftAuto);
commandToClient(%obj.client, 'centerPrint', "\c6You have committed a crime. [\c3Grand Theft Auto\c6]", 5);
}
}
parent::onHitObject(%this, %obj, %slot, %col, %pos, %normal);
}So my input for this tutorial is: Never trust construct even when you've not had a problem, because one day it will kick you where it hurts. And backups won't save you :/