Show Posts

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.


Topics - pitfall

Pages: 1 2 [3] 4
31
Modification Help / GUI error
« on: March 30, 2010, 10:46:58 PM »
Update: i am no longer getting the syntax error in the Server.cs, But it wont show up ingame.
Client.cs
Code: [Select]
exec("./PitroGUI.gui");
Still dose not show up ingame

32
Modification Help / Syntax error?
« on: March 13, 2010, 01:03:13 AM »
Error
Code: [Select]
Add-Ons/GameMode_CityRPG/common.cs Line: 21 - Syntax error.
>>> Some error context, with ## on sides of error halt:
// 7. Misc. stuff Functions

// ============================================================



// ============================================================

// Section 1 : Game CityRPG Functions

// ============================================================



function ##C##ityRPG_AddDemerits(%blid, %demerits)

{

^%demerits = mFloor(%demerits);

^%currentDemerits = CityRPGData.getData(%blid).valueDemerits;

^%maxStars = CityRPG_GetMaxStars();

^

^CityRPGData.getData(%blid).valueDemerits += %demerits;

^

^if(CityRPGData.getData(%blid).valueDemerits >= $CityRPG::pref::demerits::demoteLevel && JobSO.job[CityRPGData.getData(%blid).valueJobID].law == true)
>>> Error report complete.
Code
Code: [Select]
function CityRPG_AddDemerits(%blid, %demerits)

33
Gallery / Pitropolis RP (Whattheforgetbump?)
« on: March 11, 2010, 12:17:36 AM »
THIS PROJECT IS DEAD!
Well despite being flamed to death with my last post on this, i am still going to make a re-post.

Pics


Sweet Stats bar :P


Rain, rain, go away...


Snow, snow, go a... The point is we have weather:P


City Hall [WIP]


Bank
Will update topic as i get more things to post.

34
Suggestions & Requests / Event: SetPlayerTeam
« on: March 04, 2010, 11:13:55 PM »
An event that sets the team of a player?

35
Suggestions & Requests / DropItem Event
« on: February 17, 2010, 09:59:07 PM »
Like
OnBotDeath>Bot>Dropitem[Item]

36
Help / VCE Problems
« on: February 16, 2010, 12:05:01 PM »
\Random Number is not working for some reason. Any insights?

37
Modification Help / Syntax Errors
« on: February 09, 2010, 09:27:07 PM »
Dont post unless your trying to help.
Error
Code: [Select]
Add-Ons/GameMode_CityRPG/common.cs Line: 775 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^^messageClient(%client, '', "\c6You already have a charge request from another service! Type \c3/no\c6 to reject it.");

}



function fxDTSBrick::sellItem(%brick, %item, %markup, %client)

{

^if(isObject(%client.player) && !%client.player.serviceOrigin  && isObject(%brick))

^{

^^%name = $CityRPG::prices::weapon::name[%item].uiName;

^^{##
##
^^^%client.player.serviceType = "item";

^^^%client.player.serviceItem = %item;

^^^%client.player.serviceFee = $CityRPG::prices::weapon::price[%item] + %markup;

^^^%client.player.serviceMarkup = %markup;

^^^%client.player.serviceOrigin = %brick;

^^^

^^^messageClient(%client,'',"\c6A service is offering to sell you one \c3" @ %name SPC "\c6for \c3$" @ %client.player.serviceFee SPC "\c6.");
>>> Error report complete.
Code
Code: [Select]
function fxDTSBrick::sellItem(%brick, %item, %markup, %client)
{
if(isObject(%client.player) && !%client.player.serviceOrigin  && isObject(%brick))
{
%name = $CityRPG::prices::weapon::name[%item].uiName;
{
%client.player.serviceType = "item";
%client.player.serviceItem = %item;
%client.player.serviceFee = $CityRPG::prices::weapon::price[%item] + %markup;
%client.player.serviceMarkup = %markup;
%client.player.serviceOrigin = %brick;

messageClient(%client,'',"\c6A service is offering to sell you one \c3" @ %name SPC "\c6for \c3$" @ %client.player.serviceFee SPC "\c6.");
messageClient(%client,'',"\c6Accept with \c3/yes\c6, decline with \c3/no\c6.");
}
}
else if(%client.player.serviceOrigin && %client.player.serviceOrigin != %brick)
messageClient(%client, '', "\c6You already have a charge request from another service! Type \c3/no\c6 to reject it.");
}

38
Modification Help / Error...
« on: January 30, 2010, 10:05:59 PM »
What dose this mean?
Code: [Select]
Add-Ons/GameMode_CityRPG/common.cs Line: 1748 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^^^^^messageClient(%client, '', "\c6You give \c3$" @ %money SPC "\c6to \c3" @ %target.name @ "\c6.");

^^^^^messageClient(%target, '', "\c3" @ %client.name SPC "\c6has given you \c3$" @ %money @ "\c6.");

^^^^^

^^^^^CityRPGData.getData(%client.bl_id).valueMoney - %money;##
##
^^^^^CityRPGData.getData(%target.bl_id).valueMoney + %money;

^^^^^

^^^^^%client.SetInfo();

^^^^^%target.SetInfo();

^^^^}

^^^^else

^^^^^messageClient(%client, '', "\c6You must be looking at and be in a reasonable distance of the player in order to give them money.");
>>> Error report complete.

39
Drama / *AcE* "I know badspot!"
« on: January 09, 2010, 10:57:39 PM »
Little bitch acts like hes so bad Name: *AcE* BL_ID:12796

40
Gallery / Pitropolis RP
« on: January 07, 2010, 11:20:07 PM »
The current WIP of an overly edited City RPG. I just felt like posting some builds.

City Over views:
(city built by: Pitfall, Peggworth, Butters601, And Swat725)




Builds


Bridge built by Swat725


House built by Leetzero


House built Butters601


Shop & House built by Penguinman


Bank & House built by Pitfall

Will post more later.

41
Modification Help / This... I don't know...
« on: January 05, 2010, 08:07:26 PM »
It dose not work i don't know why. I see no problems in the console log...
Code: [Select]
if(!isObject(CityRPGPickaxeItem))
{
AddDamageType("wrench",   '<bitmap:Add-Ons/GameMode_CityRPG/shapes/ci/pickaxe> %1',    '%2 <bitmap:Add-Ons/GameMode_CityRPG/shapes/ci/pickaxe> %1', 0.5, 1);

// Section 1.1 : Pickaxe Datablocks
datablock ProjectileData(CityRPGwrenchProjectile)
{
directDamage = 15;
directDamageType = $DamageType::sword;
radiusDamageType = $DamageType::sword;

muzzleVelocity = 50;
velInheritFactor = 1;

armingDelay = 0;
lifetime = 100;
fadeDelay = 70;
bounceElasticity = 0;
bounceFriction = 0;
isBallistic = false;
gravityMod = 0.0;

hasLight = false;
lightRadius = 3.0;
lightColor = "0 0 0.5";
};

datablock ItemData(CityRPGwrenchItem)
{
category = "Weapon";
className = "Weapon";

shapeFile = "Add-Ons/GameMode_CityRPG/shapes/wrench.dts";
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;

uiName = "FactoryWrench";
iconName = "Add-Ons/GameMode_CityRPG/shapes/ItemIcons/s";
doColorShift = false;

image = CityRPGwrenchImage;
canDrop = true;


// CityRPG Properties
noSpawn = true;
};

datablock ShapeBaseImageData(CityRPGwrenchImage)
{
// SpaceCasts
raycastWeaponRange = 6;
raycastWeaponTargets = $TypeMasks::All;
raycastDirectDamage = 0;
raycastDirectDamageType = $DamageType::wrench;
raycastExplosionProjectile = hammerProjectile;
raycastExplosionSound = hammerHitSound;

shapeFile = "Add-Ons/GameMode_CityRPG/shapes/wrench.dts";
emap = true;
mountPoint = 0;
eyeOffset = "0.7 1.2 -0.9";
offset = "0 0 0";
correctMuzzleVector = false;
className = "WeaponImage";

item = CityRPGwrenchItem;
ammo = " ";
projectile = CityRPGwrenchProjectile;
projectileType = Projectile;

melee = true;
doRetraction = false;
armReady = true;

doColorShift = true;
colorShiftColor = ".54 .27 .07 1";

stateName[0] = "Activate";
stateTimeoutValue[0] = 0.5;
stateTransitionOnTimeout[0] = "Ready";

stateName[1] = "Ready";
stateTransitionOnTriggerDown[1] = "PreFire";
stateAllowImageChange[1] = true;

stateName[2] = "PreFire";
stateScript[2] = "onPreFire";
stateAllowImageChange[2] = false;
stateTimeoutValue[2] = 0.1;
stateTransitionOnTimeout[2] = "Fire";

stateName[3] = "Fire";
stateTransitionOnTimeout[3] = "CheckFire";
stateTimeoutValue[3] = 0.5;
stateFire[3] = true;
stateAllowImageChange[3] = false;
stateSequence[3] = "Fire";
stateScript[3] = "onFire";
stateWaitForTimeout[3] = true;

stateName[4] = "CheckFire";
stateTransitionOnTriggerUp[4] = "StopFire";
stateTransitionOnTriggerDown[4] = "Fire";

stateName[5] = "StopFire";
stateTransitionOnTimeout[5] = "Ready";
stateTimeoutValue[5] = 0.2;
stateAllowImageChange[5] = false;
stateWaitForTimeout[5] = true;
stateSequence[5] = "StopFire";
stateScript[5] = "onStopFire";
};
}

// Section 1.2 : Visual Functionality
function CityRPGwrenchImage::onPreFire(%this, %obj, %slot)
{
%obj.playthread(2, armAttack);
}

function CityRPGwrenchImage::onStopFire(%this, %obj, %slot)
{
%obj.playthread(2, root);
}

function CityRPGwrenchImage::onHitObject(%this, %obj, %slot, %col, %pos, %normal)
{
if(%col.getClassName() $= "fxDTSBrick")
{
%brickData = %col.getDatablock();
if(%brickData.isRock)
%col.onMine(%obj.client);
}

parent::onHitObject(%this, %obj, %slot, %col, %pos, %normal);
}

42
Help / I crash on my own server
« on: January 02, 2010, 11:21:37 PM »
I am away from my host computer but for some reason when i use this computer i crash on my server. I have no bad add-ons for what i am awear of.

43
Drama / Some one i don't even know hates me?
« on: December 30, 2009, 03:39:31 AM »
http://forum.returntoblockland.com/list.php?cmd=view&id=16542
Lol one of his name(s) "forget Pitall"
Hell i dont even know he he/she is. I am not sure if its worth a drama topic...
But still i have know idea who he/she is.

44
Help / RP_Core
« on: December 13, 2009, 09:36:46 PM »
Were is the scripts that disable events? I cant find it.

45
Gallery / A small house [BoA app]
« on: December 12, 2009, 09:33:52 PM »
This is a small, simple house i have been working on for a few days.






Pages: 1 2 [3] 4