16
Suggestions & Requests / Improved lighting?
« on: July 17, 2010, 12:46:13 AM »
I have noticed that light kinda fades at a distance, like so.
Close up:

distance:
Close up:

distance:
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.



function deposit(%gui)
{
%amount = Deposit.getValue();
commandToServer('bankdeposit', %amount);
}GUI://--- OBJECT WRITE BEGIN ---
new GuiWindowCtrl(bankGUI) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "200 200";
minExtent = "8 2";
visible = "1";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
new GuiTextEditCtrl(deposit) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "40 60";
extent = "82 18";
minExtent = "8 2";
visible = "1";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 88";
extent = "100 22";
minExtent = "8 2";
visible = "1";
command = "deposit();";
text = "Button";
groupNum = "-1";
buttonType = "PushButton";
};
};
//--- OBJECT WRITE END ---
Server:function ServerCmdbankdeposit(%client, %amount)
{
%amount = atoi(%amount);
if (%amount <= 0)
{
commandToClient(%client, 'messageBoxOK', "Error", "Not a valid number.");
return;
}
if(%amount > PitroRPData.getData(%client.bl_id).valueMoney)
{
commandToClient(%client, 'messageBoxOK', "Error", "You don't have the much money dipstuff.");
return;
}
PitroRPData.getData(%client.bl_id).valueBank += %amount;
PitroRPData.getData(%client.bl_id).valueMoney -= %amount;
}The deposit command dose not work.
Add-Ons/System_ReturnToBlockland/RTBC_IRCClient.cs (1175): Unable to find object: '' attempting to call function 'setBitmap'
BackTrace: ->RTBIC_Disconnect->RTBIC_SetPaneI have tried re-down loading it, I am connected to the internet. Cause i know some idiot was going to ask those questions.
WARNING: loadBricks() - DataBlock not found for brick named "32x32 Block"
WARNING: loadBricks() - DataBlock not found for brick named "1x7 Plate"
WARNING: loadBricks() - DataBlock not found for brick named "2x5 Brick"They worked just fine last time i ran my server (2 days ago).package Spawn
{
function gameconnection::OnClientEnterGame(%this,%client)
{
if(isFile("Add-Ons/Client_PitroGUI/client.cs"))
{
canvas.pushDialog(Pitrospawn);
}
else
{
%name = %client.name;
%client.delete("Sorry, you need pitro GUI!");
}
}
};
activatePackage(Spawn);package atmbrickPackage
{
function fxDtsBrick::onPlant(%brick)
{
if(%brick.getDatablock().brickType == PitroRPATMBrickData)
{
if(PitroRPData.getData(%client.bl_id).valueMoney < mFloor($PitroRP::prices::ATM))
{
messageClient(%client, '', "\c6You need at least \c3$" @ mFloor($PitroRP::prices::ATM) SPC "\c6in order to plant ATM!");
%brick.schedule(0, "delete");
return;
}
messageClient(%client, '', "\c6You have paid \c3$" @ mFloor($PitroRP::prices::ATM) @ "\c6 to plant this ATM.");
PitroRPData.getData(%client.bl_id).valueMoney -= mFloor($PitroRP::prices::ATM);
}
}
};
activatePackage(atmbrickPackage);
CRP_Cash.setText("$ @ PitroRPData.getData(%data.bl_id).valueMoney");//--- OBJECT WRITE BEGIN ---
new GuiTextCtrl(PitroGUI) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
maxLength = "255";
new GuiMLTextCtrl() {
profile = "GuiMLTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 366";
extent = "34 14";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "Cash";
maxBitmapHeight = "-1";
selectable = "1";
};
new GuiMLTextCtrl(CRP_Cash) {
profile = "GuiMLTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "44 367";
extent = "64 14";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "$";
maxBitmapHeight = "-1";
selectable = "1";
};
};
//--- OBJECT WRITE END --And brfore you say that im stupid because the GUI was not exucuted blah blah blah:exec("./PitroGUI.gui");
package PitroRP_chat
{
function ServerCmdMessageSent(%client, %text)
{
if (isObject(PitroRPMini) && $PitroRP::pref::server::localChat && isObject(%client.player))
{
%heard = 0;
// Amount of players in the area
InitContainerRadiusSearch(%client.player.getPosition(), $PitroRP::pref::server::visibleDistance, $TypeMasks::PlayerObjectType);
while((%search = ContainerSearchNext()) != 0)
%heard++;
%color = %heard > 1 ? "\c2" : "\c0";
// Send the message
InitContainerRadiusSearch(%client.player.getPosition(), $PitroRP::pref::server::visibleDistance, $TypeMasks::PlayerObjectType);
while((%search = ContainerSearchNext()) != 0)
{
messageClient(%search.client, 'chatMessage', %color @ "\c5" @ %client.clanPrefix @ "\c3" @ %client.name @ "\c5" @ %client.clanSuffix @ "\c6: " @ %text);
%heard++;
}
}
else
{
Parent::ServerCmdMessageSent(%client, %text);
}
}
};
activatePackage(PitroRP_chat);
Would replaceing if (isObject(PitroRPMini) && $PitroRP::pref::server::localChat && isObject(%client.player))withif(getSubStr(%text, 1, 0) $= "^")Fix it?'Maybe because you can't just rip out code and slam your name all over it and expect it to work.
I don't mind. It's free source.And heed, Just leave. You have ruined almost every damn help thread i make.




