Author Topic: Duals Code  (Read 1048 times)

Can anybody help me with the scripting that allows you to put a weapon in the left hand? I think it's something to do with this stuff:

%player.mountimage(superBowImage, $RightHandSlot, 1, %skin);
//               messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//               %player.currWeaponSlot = %invPosition;
//            }
//            else
//            {
//               %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//               messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//               %player.currWeaponSlot = %invPosition;
//            }
//         }
//         else
//         {
//            %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//            messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//            %player.currWeaponSlot = %invPosition;
//         }
//      }
//      
//   }
//   else
//   {
//      //nothing mounted so do bow selection and mount
//      //something other than bow mounted, so do bow selection and mount
//      if(%player.getMountedImage($BackSlot))
//      {
//         if(%player.getMountedImage($BackSlot) == quiverImage.getId())
//         {
//            %player.mountimage(superBowImage, $RightHandSlot, 1, %skin);
//            messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//            %player.currWeaponSlot = %invPosition;
//         }
//         else
//         {
//            %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//            messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//            %player.currWeaponSlot = %invPosition;
//         }
//      }
//      else
//      {
//         %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//         messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//         %player.currWeaponSlot = %invPosition;

I know I'm no good at scripting so you don't need to say stuff to piss me off, please. Can anyone help? Or even better does anyone have the script to Badspot's "Guns Akimbo"?

thats old commented out code for the superbow from original blockland.
// = comment, no effect w/s/e on the code.
mounting a gun would probably have to do with onmount, and then onfire to make double bullets. Im not exactly sure.

i made working dual uzis, I should be releasing them fairly soon