Author Topic: beer  (Read 7746 times)

0 Members and 1 Guest are viewing this topic.

FrieD

  • Orc Thrasher
  • ***
  • Posts: 121
  • Reputation: +0/-0
beer
« on: July 6, 2003 08:21 pm CDT »
I was wondering what i am doing wrong here. I am wanting to make beer for a server and it wont work can u help me

};

$HardcodedItemCost[Beer] = 5;
$HardcodedItemCost[GodlyBeer] = 10;
$HardcodedItemCost[Shot] = 5;
$HardcodedItemCost[Magirita] = 10;
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//   Beer
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

$AccessoryVar[Beer, $Weight] = 0;
$AccessoryVar[Beer, $MiscInfo] = "Beer";
ItemData Beer
{
   description = "Beer";
   shapeFile = "armorKit";
   heading = "eMiscellany";
   className = "Accessory";
   shadowDetailMask = 4;
   price = 0;
};
function Beer::onUse(%player,%item)
{
   %clientId = Player::getClient(%player);

   Player::decItemCount(%player,%item);
   %hp = fetchData(%clientId, "HP");
   refreshHP(%clientId, -0.15);
   refreshAll(%clientId);

   if(fetchData(%clientId, "HP") != %hp)
      UseSkill(%clientId, $SkillHealing, True, True);
}

$AccessoryVar[GodlyBeer, $Weight] = 0;
$AccessoryVar[GodlyBeer, $MiscInfo] = "Beer For the Gods";
ItemData GodlyBeer
{
   description = "GodlyBeer";
   shapeFile = "armorKit";
   heading = "eMiscellany";
   className = "Accessory";
   shadowDetailMask = 4;
   price = 0;
};
function GodlyBeer::onUse(%player,%item)
{
   %clientId = Player::getClient(%player);

   Player::decItemCount(%player,%item);
   %hp = fetchData(%clientId, "HP");
   refreshHP(%clientId, -0.6);
   refreshAll(%clientId);

   if(fetchData(%clientId, "HP") != %hp)
      UseSkill(%clientId, $SkillHealing, True, True);
}

$AccessoryVar[Shot, $Weight] = 0;
$AccessoryVar[Shot, $MiscInfo] = "A shot of the finest rum";
ItemData Shot
{
   description = "Shot";
   shapeFile = "armorKit";
   heading = "eMiscellany";
   className = "Accessory";
   shadowDetailMask = 4;
   price = 0;
};
function Shot::onUse(%player,%item)
{
   %clientId = Player::getClient(%player);

   Player::decItemCount(%player,%item);
   refreshMANA(%clientId, -16);
   refreshAll(%clientId);
}

$AccessoryVar[Magirita, $Weight] = 0;
$AccessoryVar[Magirita, $MiscInfo] = "An icey Womens Drink";
ItemData Magirita
{
   description = "Magirita";
   shapeFile = "armorKit";
   heading = "eMiscellany";
   className = "Accessory";
   shadowDetailMask = 4;
   price = 0;
};
function Magirita::onUse(%player,%item)
{
   %clientId = Player::getClient(%player);

   Player::decItemCount(%player,%item);
   refreshMANA(%clientId, -50);
   refreshAll(%clientId);
}
« Last Edit: December 31, 1969 06:00 pm CST by FrieD »

Particle

  • Chief Codemonger
  • Administrator
  • Centurian Lord
  • ********
  • Posts: 5,904
  • Reputation: +20/-4
    • Particle's Custom RPG
(No subject)
« Reply #1 on: July 6, 2003 09:20 pm CDT »
What's wrong with it?
« Last Edit: December 31, 1969 06:00 pm CST by Particle »
As a point of history:  Our last server clear was on September 27, 2004.  That is 4963 days ago (13.6 years) as of today.

If you're visiting after a long hiatus and have forgotten your password, try emailing me via the support form at http://www.pcrpg.org.

If your character is from after the 2004 clear but appears to have been deleted or reset, chances are it was caught in one of the inactive account purges over the years.  Backups were made before such events, so try the support form.

FrieD

  • Orc Thrasher
  • ***
  • Posts: 121
  • Reputation: +0/-0
(No subject)
« Reply #2 on: July 6, 2003 11:16 pm CDT »
i get it to work on my server but then i send it to my friend who has a server and the no one can talk
« Last Edit: December 31, 1969 06:00 pm CST by FrieD »

Vorter_X_

  • Centurian Lord
  • ********
  • Posts: 2,693
  • Reputation: +2/-0
(No subject)
« Reply #3 on: July 7, 2003 08:57 am CDT »
if(fetchData(%clientId, "HP") != %hp)


no semi colon???
« Last Edit: December 31, 1969 06:00 pm CST by Vorter_X_ »

eViL

  • Uber Menace
  • *******
  • Posts: 1,022
  • Reputation: +0/-0
(No subject)
« Reply #4 on: July 7, 2003 12:46 pm CDT »
duh, there is no semi colons on if statements.
« Last Edit: December 31, 1969 06:00 pm CST by eViL »
Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.

Particle

  • Chief Codemonger
  • Administrator
  • Centurian Lord
  • ********
  • Posts: 5,904
  • Reputation: +20/-4
    • Particle's Custom RPG
(No subject)
« Reply #5 on: July 7, 2003 02:10 pm CDT »
hehe

I suppose vort would code like this:

if(1 == 2);
{;
     dbecho(1, "1 equals 2");
};
« Last Edit: December 31, 1969 06:00 pm CST by Particle »
As a point of history:  Our last server clear was on September 27, 2004.  That is 4963 days ago (13.6 years) as of today.

If you're visiting after a long hiatus and have forgotten your password, try emailing me via the support form at http://www.pcrpg.org.

If your character is from after the 2004 clear but appears to have been deleted or reset, chances are it was caught in one of the inactive account purges over the years.  Backups were made before such events, so try the support form.

eViL

  • Uber Menace
  • *******
  • Posts: 1,022
  • Reputation: +0/-0
(No subject)
« Reply #6 on: July 7, 2003 03:45 pm CDT »
with 3 errors and an if statement thats never possible.
« Last Edit: December 31, 1969 06:00 pm CST by eViL »
Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.

FrieD

  • Orc Thrasher
  • ***
  • Posts: 121
  • Reputation: +0/-0
(No subject)
« Reply #7 on: July 7, 2003 06:09 pm CDT »
umm that still doesnt fix my problem thanx
« Last Edit: December 31, 1969 06:00 pm CST by FrieD »

eViL

  • Uber Menace
  • *******
  • Posts: 1,022
  • Reputation: +0/-0
(No subject)
« Reply #8 on: July 7, 2003 07:49 pm CDT »
*sigh* be a little more pushy.  from what you said, its not your problem, its your friends problem.
« Last Edit: December 31, 1969 06:00 pm CST by eViL »
Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.

FrieD

  • Orc Thrasher
  • ***
  • Posts: 121
  • Reputation: +0/-0
(No subject)
« Reply #9 on: July 7, 2003 11:06 pm CDT »
ok i see now thanks guys
« Last Edit: December 31, 1969 06:00 pm CST by FrieD »

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #10 on: July 7, 2003 11:22 pm CDT »
awww.. There is no fun in that.. code it so you can get drunk...

function drunk(%player)
{
     %ds::saynum = "4";
     %ds::say[0] = "*burp*";
     %ds::say[1] = "uhh hahahahahahah";
     %ds::say[2] = "im not as think as you drunk i am";
     %ds::say[3] = "hhhheeeellllloooo";
     %id = Player::GetClient(%player);
     %drunksay = floor(getRandom() * %ds::saynum);
     remotesay(%id, %drunksay);
}

//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Beer
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

$AccessoryVar[Beer, $Weight] = 0;
$AccessoryVar[Beer, $MiscInfo] = "Beer";
ItemData Beer
{
description = "Beer";
shapeFile = "armorKit";
heading = "eMiscellany";
className = "Accessory";
shadowDetailMask = 4;
price = 0;
};
function Beer::onUse(%player,%item)
{
%clientId = Player::getClient(%player);

Player::decItemCount(%player,%item);
%hp = fetchData(%clientId, "HP");
refreshHP(%clientId, -0.15);
refreshAll(%clientId);

if(fetchData(%clientId, "HP") != %hp)
UseSkill(%clientId, $SkillHealing, True, True);
}

$AccessoryVar[GodlyBeer, $Weight] = 0;
$AccessoryVar[GodlyBeer, $MiscInfo] = "Beer For the Gods";
ItemData GodlyBeer
{
description = "GodlyBeer";
shapeFile = "armorKit";
heading = "eMiscellany";
className = "Accessory";
shadowDetailMask = 4;
price = 0;
};
function GodlyBeer::onUse(%player,%item)
{
%clientId = Player::getClient(%player);

Player::decItemCount(%player,%item);
%hp = fetchData(%clientId, "HP");
refreshHP(%clientId, -0.6);
refreshAll(%clientId);

if(fetchData(%clientId, "HP") != %hp)
UseSkill(%clientId, $SkillHealing, True, True);
drunk(%player);
}
« 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"

FrieD

  • Orc Thrasher
  • ***
  • Posts: 121
  • Reputation: +0/-0
(No subject)
« Reply #11 on: July 8, 2003 12:05 am CDT »
lol thanks alot
« Last Edit: December 31, 1969 06:00 pm CST by FrieD »

Darwin

  • Centurian Lord
  • ********
  • Posts: 6,466
  • Reputation: +0/-0
    • http://www.mierda54.tripod.com
(No subject)
« Reply #12 on: July 8, 2003 12:24 am CDT »
Wow, particle... code?
« Last Edit: December 31, 1969 06:00 pm CST by Darwin »



Particle

  • Chief Codemonger
  • Administrator
  • Centurian Lord
  • ********
  • Posts: 5,904
  • Reputation: +20/-4
    • Particle's Custom RPG
(No subject)
« Reply #13 on: July 8, 2003 12:50 am CDT »
If you don't think I code, you don't know me whatsoever.  Over the past month, I've probably written a couple million bytes of code.
« Last Edit: December 31, 1969 06:00 pm CST by Particle »
As a point of history:  Our last server clear was on September 27, 2004.  That is 4963 days ago (13.6 years) as of today.

If you're visiting after a long hiatus and have forgotten your password, try emailing me via the support form at http://www.pcrpg.org.

If your character is from after the 2004 clear but appears to have been deleted or reset, chances are it was caught in one of the inactive account purges over the years.  Backups were made before such events, so try the support form.

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #14 on: July 8, 2003 06:13 am CDT »
He was asking if you would code that in.

That is a sorry drunk script, but it gets the idea across.

If I would do something like that, I would have them jump around, say things ect.
« 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"