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.


Messages - Gorella

Pages: [1] 2
1
Modification Help / Re: getDatablock returning Nil
« on: July 10, 2009, 11:40:02 AM »
Thanks, I fixed it.

2
Modification Help / Re: getDatablock returning Nil
« on: July 10, 2009, 11:29:59 AM »
Code: [Select]
%data = TreeBrickData.getID();
$StrName[%data] = "TreeBrickData";
$StrMat[%data] = "Root";
$StrCost[%data] = 1;
$StrConfirm[%data] = "You planted a tree!";

You have defined $StrNameTreeBrickData as a variable by the array. Your echoes are looking for $StrName1032.
How would I revert the ID back to a name? Could I just remove nametoID? When I remove it though, it doesn't seem to work.

3
Modification Help / Re: getDatablock returning Nil
« on: July 10, 2009, 11:23:18 AM »
For one, I think it's fxDtsBrick::onPlant(%data,%brick) not just %brick.
Anyway, when I place the brick it recognizes it as the datablock as an ID but all of the other fields do not compute.

4
Modification Help / getDatablock returning Nil
« on: July 10, 2009, 01:57:11 AM »
So, I've created a nifty little dynamic brick placing function, yet for some odd reason all of my echos are returning nil except for "%type" which returns an ID, 1032 to be precise. Anyway, when I place the brick it recognizes it as the datablock but all of the other fields do not compute.

Note: LeftPrint is a function I made. Also, the brick is TreeBrickData, not brickTreedata.

Code: [Select]
$StrName["TreeBrickData"] = "TreeBrickData";
$StrMat["TreeBrickData"] = "Root";
$StrCost["TreeBrickData"] = 1;
$StrConfirm["TreeBrickData"] = "You planted a tree!";

package Lolplant
{
function fxDtsBrick::onPlant(%brick)
{
%client = getBrickGroupFromObject(%brick).client;
%brickdatablock = %brick.getDataBlock();
%type = %brick.getDataBlock();

if(%brickdatablock $= nameToID($StrName[%type]) && %client.quantity[$StrMat[%type]] >= $StrCost[%type])
{
echo(%type);
echo($StrConfirm[%type]);
echo($StrCost[%type]);
echo($StrMat[%type]);

%client.Leftprint("\c1" @ $StrConfirm[%type] @ "");
%client.quantity[$StrMat[%type]] -= $StrCost[%type];
%client.quantity["Weight"] -= $StrCost[%type];
parent::onPlant(%brick);
return;
}
}
};
activatepackage(Lolplant);

5
Modification Help / Re: getDts
« on: July 09, 2009, 09:14:13 PM »
getDatablock()*
if you didn't fix that.
Yep, I found a way around it though which is more efficient. Thanks to you both.

6
Modification Help / Re: getDts
« on: July 09, 2009, 08:26:50 PM »
That code appears to result to a nil line.

7
Modification Help / getDts
« on: July 09, 2009, 07:59:32 PM »
How do I find a specific dts rather then datablock.

Such as:
Code: [Select]
if(%col.getDatablock() $= nametoid("Stuffdata"))

Example:?
Code: [Select]
if(%col.getDts() $= nametoid("Add-ons/Script_Test/testshape.dts"))

8
Modification Help / Re: Local Chat
« on: May 31, 2009, 02:24:20 PM »
Disregard this.
Ok....?

Anyway, I realize this and all I want is some help, for my own version of course.

9
Clan Discussion / Re: The Medieval Clan (TMC)
« on: May 31, 2009, 11:54:09 AM »
The actual post might not be that beautiful but at least he spelled "Medieval" right.

10
Modification Help / Re: Local Chat
« on: May 31, 2009, 01:14:40 AM »
What makes you think I was making this for "Survival Rp", did you ever think I just wanted to make Local Chat, also I am using normal chat as Global chat.

11
Modification Help / Local Chat
« on: May 30, 2009, 04:15:17 PM »
Hello, I'm trying to make a local chat for my server but for some odd reason when I type something, Ex:
Quote
Hello, my name is bob.
All of the other args I didn't not set have Myname then a zero after it.

Code: [Select]
function serverCmdL(%client,%m,%m2,%m3,%m4,%m5,%m6,%m7,%m8,%m9,%m10,%m11,%m12,%m13,%m14,%m15,%m16,%m17,%m18,%m19,%m20)
{
%position=%client.player.position;
InitContainerRadiusSearch(%position,15,$TypeMasks::PlayerObjectType);
$LocalMsgString='\c7%1 says:\c6 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13 %14 %16 %16 %17 %18 %19 %20';
while((%targetObject=containerSearchNext()) !$= 0)
{
%c = %targetObject.client;
messageClient(%c,'',$LocalMsgString,%client.name,%m,%m2,%m3,%m4,%m5,%m6,%m7,%m8,%m9,%m10,%m11,%m12,%m13,%m14,%m15,%m16,%m17,%m18,%m19,%m20);
}
}

12
Drama / Re: Ephialtes is a big fat meanie head :(
« on: May 27, 2009, 07:47:44 PM »
I Lol'd at this topic.

13
Never mind, let the others do whatever I quit, busy working on a other mod.

14
Off Topic / Re: New computer stats. :o Post yours too.
« on: May 25, 2009, 08:44:57 PM »
Heres the Display pic.


15
Off Topic / Re: New computer stats. :o Post yours too.
« on: May 25, 2009, 08:13:33 PM »
Great, then hopefully I can get some achievements without luck.  :cookieMonster:

Pages: [1] 2