Author Topic: Once more fixing the Old CityRP  (Read 2405 times)

I have stumbled across a new, yet also similar to the last I found, problem in the origional CityRP by Jookia.
Code: [Select]
function player::activateStuff(%this)
{
parent::activateStuff(%this);

%target = containerRayCast(%this.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%this.getEyeVector()), 5), %this.getEyePoint()), $typeMasks::all);

if(isObject(%target) && %target.getType() & $typeMasks::playerObjectType && isObject(%target.client) && getWord(CityRPData.getData(%this.client.bl_id).valueJailData, 1) < 1 && getWord(CityRPData.getData(%target.client.bl_id).valueJailData, 1) < 1 && $CityRP::jobs::pickpocket[CityRPData.getData(%this.client.bl_id).valueJobID] && CityRPData.getData(%target.client.bl_id).valueMoney > 10 && %this.lastPickpocket + 2 < $sim::time)
{
%this.lastPickpocket = $sim::time;

if(getRandom(0, 1))
{
return;
}

%amount = getRandom(1, 25);

commandToClient(%this.client, 'centerPrint', "\c6You have commited a crime. [\c3Pickpocketing\c6]", 1);

%this.client.CityRP(2, $CityRP::demerits::pickpocketing);

messageClient(%this.client, '', "\c6You have stolen \c3$" @ %amount SPC "\c6from \c3" @ %target.client.name @ "\c6.");
messageClient(%target.client, '', "\c3" @ %this.client.name SPC "\c6has stolen \c3$" @ %amount SPC "\c6from you.");

Please, no flame, no unrelated comments, and no bogus answers.

Please, no flame, no unrelated comments, and no bogus answers.
Sorry, you don't make the rules here.

Delete all of it.

Here is the problem, if I remember correctly.
Code: [Select]
%target = containerRayCast(%this.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%this.getEyeVector()), 5), %this.getEyePoint()), $typeMasks::all);
That has to be changed because it hits the player (I think). I had this problem a long time ago so I am using my memory to find out what is wrong.

Here is the problem, if I remember correctly.
Code: [Select]
%target = containerRayCast(%this.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%this.getEyeVector()), 5), %this.getEyePoint()), $typeMasks::all);
That has to be changed because it hits the player (I think). I had this problem a long time ago so I am using my memory to find out what is wrong.

Example of a good answer.

Sorry, you don't make the rules here.

Delete all of it.

Sorry to burst your bubble, but you don't either, and I am not deleting it.

Sorry to burst your bubble, but you don't either, and I am not deleting it.
I never tried to make rules.
I was giving you a suggestion to fix it.

Here is the problem, if I remember correctly.
Code: [Select]
%target = containerRayCast(%this.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%this.getEyeVector()), 5), %this.getEyePoint()), $typeMasks::all);
That has to be changed because it hits the player (I think). I had this problem a long time ago so I am using my memory to find out what is wrong.

I mostly already knew the problem was there because it mentioned (%this.getEyePoint(), and (%this.getEyeVector()),
I had this problem before but the fix I used last time didn't work here.

origional CityRP by Jookia.
Problem found.
Solution: Don't bother.

Problem found.
Solution: Don't bother.

I actually fixed a glitch having to do with the ^givemoneycommand .  I tried to do the same thing as last time, but it didn't work on this one. I am CERTAIN it has to do with the;
Code: [Select]
%target = containerRayCast(%this.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%this.getEyeVector()), 5), %this.getEyePoint()), $typeMasks::all);

I tried to do the same thing as last time, but it didn't work on this one.
Protip: Copy+Paste can cause more problems than it can solve when coding.

Protip: Copy+Paste can cause more problems than it can solve when coding.
I did not copy and paste, I used the same TECHNIQUE.

I did not copy and paste, I used the same TECHNIQUE.
Retying it doesn't help if you don't change anything.

Example of a good answer.

Sorry to burst your bubble, but you don't either, and I am not deleting it.

Ah, so you think Chrono's is good? I see, I see.

Quote from: Amade
Retying it doesn't help if you don't change anything.

Why would you rety it? I would just retype it.




Its an easy fix. In all the text editors, there's a fix command. Its easy. "Ctrl + A" then "Delete" then "Ctrl + S " and "Alt+F4"! I can't belive you didn't know that!

The only reason you guys don't like the CityRP is because you guys joined servers with passant abusive hosts. Get over it.

The only reason you guys don't like the CityRP is because you guys joined servers with passant abusive hosts. Get over it.

I hate it because I came to Blockland to build whatever I want, where I wanted (of course, without spam and stuff.) I never played Roblox, because you had to pay to build. CityRP makes us pay, though its virtual, to build, AND we must build on a lot. CityRP is boring crap, thats why I hate it.

The only reason you guys don't like the CityRP is because you guys joined servers with passant abusive hosts. Get over it.
No, I joined a server with a great host and admins who don't spend their entire day shooting every player and resetting when they get jailed.
It still sucked.