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 - MrPickle

Pages: 1 ... 3 4 5 6 7 [8] 9 10 11 12 13
106
Modification Help / Buying and selling.
« on: August 31, 2007, 07:52:50 AM »
Code: [Select]
function servercmdSell(%this, %name, %item, %amount){
if(!isObject(%this.player))
return;
%tool = 0;
while(%tool <= 4){
if(firstWord(%this.player.tool[%tool].uiName) $= %item){
for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
if(strstr(strlwr(%cl.name),strlwr(%name)) != -1){
%Customer = %cl;
messageclient(%Customer,"", "\c0" @ %this.name @ " \c6wants to sell you their \c0" @ %item @ "\c6 for " @ $currency @ "\c0" @ %amount @ "\c6.");
messageclient(%Customer,"","\c6Please type /buy yes " @ %this.name @ %item @ "if you'd like to buy it.");
%client.saleItem = %item;
%client.saleItemPrice = %amount;
}
}
}
%tool++;
}
}

function serverCmdBuy(%client, %yesNo, %name, %item){
if(%yesNo $= "yes"){
for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
if(strstr(strlwr(%cl.name),strlwr(%name)) != -1){
if(%cl.saleItem $= %item && %client.cash >= %cl.saleItem.price){
for(%tool=0; %tool<5; %tool++){
if(firstWord(%cl.player.tool[%tool].uiName) $= %item){
%client.cash = %client.cash-%cl.saleItemPrice;
%cl.cash = %cl.cash+%cl.saleItemPrice;
%cl.player.tool[%tool] = nametoID(firstWord(%item));
messageClient(%client, 'MsgItemPickup', '', %tool, nametoID(firstWord(%item)));
%cl.player.tool[%tool] = nametoID();
messageClient(%cl, 'MsgItemPickup', '', %tool, nametoID());
%cl.saleItem = " ";
%cl.saleItemPrice = " ";
}
}
}
}
}
}
}

Yeah, it's not working and i dunno why.

107
Modification Help / Code completely blows up blockland.
« on: August 30, 2007, 03:05:21 PM »
Code: [Select]
function servercmdSell(%this, %name, %item, %amount){
if(!isObject(%this.player)){return;}
%i = 0;
while(%i<=4){
if(firstWord(%this.player.tool[%i].uiName) $= %item){
for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
if(strstr(strlwr(%cl.name),strlwr(%name))!=-1){
%Customer = %cl;
messageclient(%Customer,"\c0" @ %this.name @ " \c6wants to sell you there \c0" @ %item @ " \c6for \c0" @ %amount @ "\c6.");
}
%i++;
}
}
}
}

Yeah it makes blockland stops responding and i dunno why. Help.

108
Suggestions & Requests / Ideas Please.
« on: August 29, 2007, 06:36:24 PM »
I've been getting pretty bored today cause i've ran out of ideas on what to make and there's no new suggestions in the forum so suggest stuff that you'd like to see and i'll attempt them even if they're really small, no weapons please.

Please don't moan about me making this topic i just figured maybe just give people a lil nudge and they'll come up with something.

109
Modification Help / Controls repeating in Controls
« on: August 29, 2007, 08:55:15 AM »
I've added the if thing but there still repeating:

Code: [Select]
if(!$addedPlatformMaps){
$remapDivision[$remapCount] = "Building Platform";
$remapName[$remapCount] = "x axis +";
$remapCmd[$remapCount] = "xAxisP";
$remapCount++;
$remapName[$remapCount] = "x axis -";
$remapCmd[$remapCount] = "xAxisN";
$remapCount++;
$remapName[$remapCount] = "y axis +";
$remapCmd[$remapCount] = "yAxisP";
$remapCount++;
$remapName[$remapCount] = "y axis -";
$remapCmd[$remapCount] = "yAxisN";
$remapCount++;
$remapName[$remapCount] = "z axis +";
$remapCmd[$remapCount] = "zAxisP";
$remapCount++;
$remapName[$remapCount] = "z axis -";
$remapCmd[$remapCount] = "zAxisN";
$remapCount++;
}

110
Help / Pfft, Crashing me or my clients.
« on: August 28, 2007, 04:22:14 PM »
It keeps crashing without me doing anything or stop responding, and if it isn't crashing me it's crashing the people on the server.

Here's my consol, It all looks fine to me =/.
Programs i usually have running are Notepad msn n Firefox.

111
Modification Help / Checking clients invent.
« on: August 26, 2007, 07:38:08 PM »
How would you check a clients invent for an item, say you typed /invent gun it'd go through your invent and try to find gunItem.

112
Modification Help / Item not collisioned.
« on: August 26, 2007, 11:05:08 AM »
I'm telling it to collision but it just won't and the item does have collision because when i spawned it in F11 i couldn't walk through it.

Code: [Select]
function serverCmdBPlatform(%client){
%Platform = new Item()
{
datablock = BPlatformItem;
rotation = "0 1 0 90";
};
%Platform.canPickup = 0;
%Platform.setScale("5 5 0.3");
%Platform.static = 1;
%Platform.collideable = 1;
%Platform.setTransform(setWord(%client.player.getTransform(), 2, getWord(%client.player.getTransform(), 2) + 2));
%Client.BPlatform = %Platform;
}

The rotation isn't working either.

113
Modification Help / Finding who's setting a item.
« on: August 10, 2007, 05:40:04 AM »
How would you check who's setting an item on the brick, i know the function (FxDTSbrick::SetItem(%Brick, %Item)). I don't wonna use %brick.client otherwise it'll charge the owner of the brick and not the person who's laying the item.

114
General Discussion / Maze of tag.
« on: August 09, 2007, 08:01:02 AM »
Maze of tag

You basically play tag in a maze =D Here's a pictuer of the maze: Here made by Dante

It will be up at random times, tis up right now, 1pm Thursday so come play =D
The server name Normally involves [MotE]MrPickle.

115
Modification Help / Player list.
« on: July 29, 2007, 10:52:37 AM »
How do you make a player list, i copy && pasted one from the Admin Gui it makes mine work but then the admin gui one stops working, help....

116
Modification Help / Player list.
« on: July 29, 2007, 10:52:12 AM »
How do you make a player list, i copy && pasted one from the Admin Gui it makes mine work but then the admin gui one stops working, help....

117
Help / F2 Broke
« on: July 28, 2007, 07:34:27 AM »
Its only showing me, its not showing everyone else in the sevrer.

118
Drama / JMatton Extremly Offensive.
« on: July 28, 2007, 07:25:36 AM »
I wouldn't normally do this but, JMatton ID 539, He's been building Swastikas and making the cross then setting it alight.... Its sorta offenceve. Pictures:





Some people need to get lifes...

119
Modification Help / Adding in a file.
« on: July 27, 2007, 07:37:04 AM »
Is there a way tp add on in a file? I tried making it open the file get the info then add something on to it then closing file again but its just not working.

120
Modification Help / Brick laying
« on: July 26, 2007, 04:15:22 PM »
Whats the function for planting a brick?

Pages: 1 ... 3 4 5 6 7 [8] 9 10 11 12 13