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

Pages: [1]
1
Modification Help / ASS_Mod
« on: June 15, 2008, 06:20:20 PM »
The Ass_Mod

Ass_Mod description!

Features
/gamble *Display's a number 1-10 if it is 7 you say "OMFG I GOT 10 IM THE BEST".*
/kill player *Say's Name use's Admin Abuse yay for him that Ass!*
/beadmin *Say's Name has become Noob Admin (Noob)*
/noobify player *Say's YOURname has become an Ass admin/NOOOB and in your name say's N00000bzor*

Put in add-ons and enable in the list.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note:This is just a joke I was really bored!


2
Modification Help / Lvl Coresponding to Exp?
« on: June 13, 2008, 03:03:31 PM »
K well I made a script that partially work's but when you have exp and type /checklvl it show's the lvl as "Lvl:" with no number even with 50+ or 0+

Code: [Select]
//ExpTest

function serverCmdCheckExp(%client)
    {
       messageClient(%client,'','\c5Exp: %1',%client.Exp);
}

function serverCmdCheckLvl(%client)
    {
       messageClient(%client,'','\c5Lvl: %1',%client.Lvl);
}

function Rpgset(%client,%Exp)
{
If(%Client.exp >= 0);
%Client.Lvl = 1;

If(%Client.exp >= 50);
%Client.Lvl = 2;
}

function serverCmdGrantExp(%client,%victim,%amount)
{
   if(%amount<=0||%Amount>%client.Exp)
    %victim = findClientByBL_ID(%victim);
    if(!isobject(%victim)){return;}
    %victim.Exp+=%amount;
     messageClient(%client,'','Gave 2% %1',%client.Exp,%amount);
}

3
Modification Help / Killing on collision.
« on: June 13, 2008, 01:09:44 PM »
Ok I made this script and got it too work but when someone else hit's it the person who hit's it lives but I die. Anyone know why this happen's?
Code: [Select]
//Admin Only

function serverCmdRespawn(%client){
if(%client.isAdmin || %client.isSuperAdmin)
{
%i = new Trigger() {
            position = %client.player.getTransform();
            rotation = "1 0 0 0";
            scale = "1 1 1";
            dataBlock = Respawntrig;
            polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
            };
if(%i){
messageclient(%client,"","\c0Respawnz \c6trigger has successfully been laid");
}
}
}

datablock TriggerData(Respawntrig){
   tickPeriodMS = 100;
};

function respawntrig::OnEnterTrigger(%this, %trigger, %obj){
if(!%client.isAdmin || !%client.isSuperAdmin)
messageclient(%client,"","\c0Admin Only Zone");
Self Delete(%Obj.client);
}

4
Modification Help / Energy Bar?
« on: June 10, 2008, 09:43:02 PM »
Ok well I was messing around in some script's today and found out that there is a mode for minigame's called JetPlayer which use's energy and was wondering where the code for this is?

Note:Not the code that change's recharge time,drain ect.. But the default code that show's the code for it like defines the Rechargetime Jetenergydrain.

5
Modification Help / Defining?
« on: June 09, 2008, 11:25:36 PM »
If I wanted

Code: [Select]
%client.quantity["Ore"]

To equal three thing's would this code work?

Code: [Select]
%client.quantity["Ore"] = %client.quantity["CopperOre"] || %client.quantity["SilverOre"] || %client.quantity["GoldOre"];

6
Modification Help / Forging?
« on: June 08, 2008, 06:35:58 PM »
Ok well this time I am trying to make a forge system for weapon's and Ore for my Mod. I have it basically working exept that when I type /forge silverore 1 it forges the ore but doesn't take away the copperore used to forge it.

Code: [Select]
//ItemForging

$itemPrices["SilverOre"] = "10 2 0 0";
$itemImage["SilverOre"] = nametoid("SilverOreItem");
$itemPrices["CopperOre"] = 5;
$itemImage["CopperOre"] = nametoid("CopperOreItem");
$itemPrices["GoldOre"] = 50;
$itemImage["GoldOre"] = nametoid("GoldOreItem");
$itemPrices["PineWood"] = 5;
$itemImage["PineWood"] = nametoid("PineWoodItem");
$itemPrices["OakWood"] = 10;
$itemImage["OakWood"] = nametoid("OakWoodItem");
$itemPrices["MapleWood"] = 20;
$itemImage["MapleWood"] = nametoid("MapleWoodItem");
$itemPrices["sword"] = 100;
$itemImage["sword"] = nametoid("swordItem");
$itemPrices["bow"] = 150;
$itemImage["bow"] = nametoid("bowItem");
$itemPrices["WarAxe"] = 200;
$itemImage["WarAxe"] = nametoid("WarAxeItem");
$itemPrices["ShortSword"] = 100;
$itemImage["ShortSword"] = nametoid("ShortSwordItem");
$itemPrices["Spear"] = 50;
$itemImage["Spear"] = nametoid("SpearItem");
$itemPrices["PioneerHG"] = 250;
$itemImage["PioneerHG"] = nametoid("PioneerHGItem");
$itemPrices["Longsword"] = 200;
$itemImage["Longsword"] = nametoid("LongswordItem");
$itemPrices["MCrossBow"] = 150;
$itemImage["MCrossBow"] = nametoid("MCrossBowItem");

function serverCmdForge(%client, %item, %amount_to_Forge)
{
if( %amount_to_Forge < 1 ) // They have to Forge at least 1
return;

%price_of_item = getWord(%price_of_item, 0);
if (%price_copper > %client.quantity["CopperOre"] || %price_silver > %client.quantity["SilverOre"] || %price_goldOre > %client.quantity["GoldOre"])
{
messageClient(%client,'','Not enough Material(s)!');
return;
}

%image = $itemImage[%item];

// Add the amount:
%client.quantity[%item] += %amount_to_Forge;

// The rest looks good. Find a free inventory slot, etc:
%k = 0;
%i = -1;
while( %k < 5 )
{
if( !%client.quantityplayer.tool[%k] )
{
%i = %k;
}
%k++;
}

if( %i == -1 )
{
messageClient(%client,'','Not enough inventory space!');
return;
}

%client.player.tool[%i] = %image;
messageClient(%client, 'MsgItemPickup', '', %i, %image);
%client.quantity["CopperOre"] -= %price_copper;
%client.quantity["SilverOre"] -= %price_silver;
%client.quantity["GoldOre"] -= %price_goldOre;
       
}

7
Modification Help / New Brick Creation?
« on: June 07, 2008, 08:49:11 PM »
Ok guy's Im fairly new to the BL community and very new to the forum's so don't be so Mean But I am trying to create another brick but using one of BL's .blb I just want to rename it basically so I can make a Woodcutting mod for it. I need to make it so that there is 2 Pinetree's in the special menu but I want one under a category named RPG and be named RPGtree but when I spawn it the brick doesn't have collision you see it but with no collision.

Note: I used this link for help. http://www.blockland.us/smf/index.php?topic=13329.0

Code: [Select]
datablock fxDTSBrickData (brickRPGpinetreeData){
brickFile = "./bricks/pinetree.blb";
category = "Special";
subCategory = "RPG";
uiName = "RPGtree";
iconName = "add-ons/brickIcons/pinetree";
};

Pages: [1]