Author Topic: Item Dropping.  (Read 2385 times)

I forget the functions, its something like this, someone will have to correct it- NOT flame it.



Thats what it will end up looking like basicly, but I'm positive it won't work like that. Someone correct it without flaming it.
It is hard to not flame it when you spam stupidity all over your code.

I have a bullstuff memory its not my fault. When I code I always have a reference so I can remember this bullstuff.

I have a bullstuff memory its not my fault. When I code I always have a reference so I can remember this bullstuff.
Invalid reason

Code: [Select]
package ImUgly
{
   function armor::Damage(%data, %obj, %pos, %sourceObj, %amt, %type)
   {
      parent::onDamage (%data, %obj, %pos, %sourceObj, %amt, type);
      %obj.unmountImage(0);
      if(%obj.client)
      {
         serverCmdDropTool(%obj.client);
      }
   }
}
activatePackage(ImUgly);

What? I thought we established that I do not need a package, just a projectile datablock.

What? I thought we established that I do not need a package, just a projectile datablock.
I was fixing the code he provided. You could easily adapt that to a projectile.

I've already Identified a problem (I THINK)

Code: [Select]
function armor::Damage(%data, %obj, %pos, %sourceObj, %amt, %type)
{
    parent::onDamage (%data, %obj, %pos, %sourceObj, %amt, type);
    %obj.unmountImage(0);
    if(%obj.client)
    {
       serverCmdDropTool(%obj.client);
}


Code: [Select]
function armor::Damage(%data, %obj, %pos, %sourceObj, %amt, %type)
{
    parent::onDamage (%data, %obj, %pos, %sourceObj, %amt, %type);
    %obj.unmountImage(0);
    if(%obj.client)
    {
       serverCmdDropTool(%obj.client);
}
« Last Edit: April 25, 2010, 02:33:54 AM by Butler »

I assume that's wrong...

I assume that's wrong...
Go test it. We aren't here to make the script for you, only to help.