Author Topic: Weapons  (Read 4541 times)

0 Members and 2 Guests are viewing this topic.

Fury

  • Goblin Pup
  • *
  • Posts: 15
  • Reputation: +0/-0
Weapons
« on: October 12, 2003 01:46 am CDT »
I recently made 3 weapons and none of them work!!!

I made 1 a while ago for my server and it was working... took a lil touching up but it worked.  Now these ones im not sure they dont work.

The first1(atlansword) if u #w atlansword, it says has no slash restric and when u #myitems atlansword 1, gives me the false thing... and well the other 2 just dont work all together, here is the code....


Code: [Select]
$AccessoryVar[AtlanSword, $AccessoryType] = $SwordAccessoryType;
$AccessoryVar[AtlanSword, $SpecialVar] = "6  150";
$AccessoryVar[AtlanSword, $Weight] = 2.5;
$AccessoryVar[AtlanSword, $MiscInfo] = "A sword smithed by golems.";
$SkillType[Atlan Sword] = $SkillSlashing;
$SkillRestriction[AtlanSword] = $SkillSlashing @ " 460";
$HardcodedItemCost[AtlanSword] = 49753;
//****************************************************************************************************
// Atlan Sword
//****************************************************************************************************

ItemImageData Atlan SwordImage
{
shapeFile = "katana";
mountPoint = 0;

weaponType = 0; // Single Shot
reloadTime = 0;
fireTime = GetDelay(AtlanSword);
minEnergy = 0;
maxEnergy = 0;

accuFire = true;

sfxFire = SoundSwing3;
sfxActivate = AxeSlash2;
};
ItemData AtlanSword
{
heading = "bWeapons";
description = "Atlan Sword";
className = "Weapon";
shapeFile = "katana";
hudIcon = "katana";
shadowDetailMask = 4;
imageType = AtlanSwordImage;
price = 0;
showWeaponBar = true;
};
function AtlanSwordImage::onFire(%player, %slot)
{
MeleeAttack(%player, GetRange(AtlanSword), AtlanSword);
}



$AccessoryVar[AssultAxe, $AccessoryType] = $AxeAccessoryType;
$AccessoryVar[AssultAxe, $SpecialVar] = "6  173";
$AccessoryVar[AssultAxe, $Weight] = 2.5;
$AccessoryVar[AssultAxe, $MiscInfo] = "A deadly weapon smithed in a dark caver by shadows.";
$SkillType[AssultAxe] = $SkillSlashing;
$SkillRestriction[AssultAxe] = $SkillSlashing @ " 760";
$HardcodedItemCost[AssultAxe] = 91713;
//****************************************************************************************************
// AssultAxe
//****************************************************************************************************

ItemImageData AssultAxeImage
{
shapeFile = "axe";
mountPoint = 0;

weaponType = 0; // Single Shot
reloadTime = 0;
fireTime = GetDelay(AssultAxe);
minEnergy = 0;
maxEnergy = 0;

accuFire = true;

sfxFire = SoundSwing7;
sfxActivate = AxeSlash2;
};
ItemData AssultAxe
{
heading = "bWeapons";
description = "Assult Axe";
className = "Weapon";
shapeFile = "axe";
hudIcon = "axe";
shadowDetailMask = 4;
imageType = AssultAxeImage;
price = 0;
showWeaponBar = true;
};
function AssultAxeImage::onFire(%player, %slot)
{
MeleeAttack(%player, GetRange(AssultAxe), AssultAxe);
}



$AccessoryVar[WeepingHammer, $AccessoryType] = $BludgeonAccessoryType;
$AccessoryVar[WeepingHammer, $SpecialVar] = "6  154";
$AccessoryVar[WeepingHammer, $Weight] = 8;
$AccessoryVar[WeepingHammer, $MiscInfo] = "A war hammer.";
$SkillType[Weeping Hammer] = $SkillBludgeoning;
$SkillRestriction[WeepingHammer] = $SkillBludgeoning @ " 580";
$HardcodedItemCost[WeepingHammer] = 91713;
//****************************************************************************************************
// Weeping Hammer
//****************************************************************************************************

ItemImageData WeepingHammerImage
{
shapeFile = "hammer";
mountPoint = 0;

weaponType = 0; // Single Shot
reloadTime = 0;
fireTime = GetDelay(WeepingHammer);
minEnergy = 0;
maxEnergy = 0;

accuFire = true;

sfxFire = SoundSwing6;
sfxActivate = AxeSlash2;
};
ItemData WeepingHammer
{
heading = "bWeapons";
description = "Weeping Hammer";
className = "Weapon";
shapeFile = "hammer";
hudIcon = "hammer";
shadowDetailMask = 4;
imageType = WeepingHammerImage;
price = 0;
showWeaponBar = true;
};
function WeepingHammerImage::onFire(%player, %slot)
{
MeleeAttack(%player, GetRange(WeepingHammer), WeepingHammer);
}

« Last Edit: December 31, 1969 06:00 pm CST by Fury »
Computers are guys, because u have to turn them on to get there attention.

Silvanoshei

  • Centurian Lord
  • ********
  • Posts: 1,804
  • Reputation: +0/-0
Re: Weapons
« Reply #1 on: October 12, 2003 08:06 am CDT »
No spaces, dude.


$SkillType[Atlan Sword] = $SkillSlashing;
ItemImageData Atlan SwordImage


Fix things like that, and if it still doesn't work, repost it and I'll look a little harder.
« Last Edit: December 31, 1969 06:00 pm CST by Silvanoshei »

The DoDoDo.

Your opinion is worthless unless you can support it.
We are not responsible for your stupidity.
I don't take sides. I take action.

Currently Playing:  Warcraft III [PC]

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #2 on: October 12, 2003 09:10 am CDT »
Silv hit it on the spot.. It is causing a syntax error so the rest don't work.

Your ATK won't work right because you have too many spaced between the 6 and the value. You can't put any more than 1 space.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

Silvanoshei

  • Centurian Lord
  • ********
  • Posts: 1,804
  • Reputation: +0/-0
(No subject)
« Reply #3 on: October 12, 2003 09:49 am CDT »
Ah, I should have checked that first. Those spaces are chronic symptoms of a Coca-Bear's Weapon Helper user.  :)

Weapon Helper's only useful if you already know what you're doing, and if you know what you're doing, you don't need Weapon Helper. Use Particle's tutorial; it's quite good.

http://www.pcrpg.org/TRPGguides/scripting/
« Last Edit: December 31, 1969 06:00 pm CST by Silvanoshei »

The DoDoDo.

Your opinion is worthless unless you can support it.
We are not responsible for your stupidity.
I don't take sides. I take action.

Currently Playing:  Warcraft III [PC]

Fury

  • Goblin Pup
  • *
  • Posts: 15
  • Reputation: +0/-0
(No subject)
« Reply #4 on: October 12, 2003 02:32 pm CDT »
hmm... i feel like a newb... i do know what im doing ive read particles tut and a few others...

i just used that cause i thought it would be fast... and i guess i just missed a few spaces cause i did fix a few =/
« Last Edit: December 31, 1969 06:00 pm CST by Fury »
Computers are guys, because u have to turn them on to get there attention.

Silvanoshei

  • Centurian Lord
  • ********
  • Posts: 1,804
  • Reputation: +0/-0
(No subject)
« Reply #5 on: October 12, 2003 02:35 pm CDT »
So, I assume the weapons work now?
« Last Edit: December 31, 1969 06:00 pm CST by Silvanoshei »

The DoDoDo.

Your opinion is worthless unless you can support it.
We are not responsible for your stupidity.
I don't take sides. I take action.

Currently Playing:  Warcraft III [PC]

Fury

  • Goblin Pup
  • *
  • Posts: 15
  • Reputation: +0/-0
(No subject)
« Reply #6 on: October 12, 2003 09:58 pm CDT »
yup... and thanks
« Last Edit: December 31, 1969 06:00 pm CST by Fury »
Computers are guys, because u have to turn them on to get there attention.