AoT Mega Mod

Author Topic: AoT Mega Mod  (Read 51018 times)

dUMBELLS I beleave it's


function servercmdBreakLaw(%obj)
{
  %obj.player.dems-=1000;
  messageClient(%obj, '', "\c3You have a license to break the law!");
  }


Can you try it out on your server for me?


ok, here You will need to make a serverCmd then add it to the login button.

Code: [Select]
function servercmdBreakLaw(%obj)
{
   if(%obj.player.isLawBreaker $= 0)
                 {
  %obj.player.dems-=1000;
  %obj.player.isLawBreaker=1;
  messageClient(%obj, '', "\c3You have a license to break the law!");
  }
         else
          {
   messageClient(%obj, '', "\c3You can not have more then one license!");
}
 }

You will need to make a command to give the player
%obj.player.isLawBreaker=0; when they login.

Have it say "Your liscense has expired" when you reach 0. You should make it really expensive too.

Right now I think thats pointless.  Maybe if or when we add a job system we will add that.

rudyman

  • Guest
Code: [Select]
//    --- THIS IS A BETA PAY-DEMERIT SYSTEM. IT REQUIRES A GUI. ---
function serverCmdPayDems(%client)
{
if(%client.isTalkingToMarshal)
{
%cash=txtPayment.getValue();
if(%client.gold<%cash)
{
messageClient(%client,"","\c2You do not have enough gold.");
}
else
{
%demsub=mFloor(%cash/2);
%client.dems-=%demsub;
%client.gold-=%cash;
txtGold.setValue(%client.gold);
}
}
}

I made it so you can pay dems.  But it sucks.

Heres a sample

Code: [Select]
function servercmdPayDems(%obj)
{
      if (%obj.player.Dems $= 15 || %obj.player.Dems $= 30 || %obj.player.Dems $= 45 || %obj.player.Dems $= 60 || %obj.player.Dems $= 55 || %obj.player.Dems $= 90 || %obj.player.Dems $= 105 || %obj.player.Dems $= 120 || %obj.player.Dems $= 135 || %obj.player.Dems $= 150 || %obj.player.Dems $= 165 || %obj.player.Dems $= 180 || %obj.player.Dems $= 195 || %obj.player.Dems $= 210)
                {
  %obj.Gold-= %obj.player.dems;
  %obj.player.dems=0;
serverCmddropgold(%obj,1);
  messageClient(%obj, '', "\c2You have payed your fines."); 
                    }
                     else
                       {
                 messageClient(%obj, '', "\c2You have nothing to pay!"); 
  }
}

But you can pay up to 210 dems.

Maybe if you can find a better way.


I do not fully understand, but I do not see it check to see if you have enough gold, I have no idea why you made the pay system not just check if dems are > 0, then if gold > dems, then take as much gold as they have dems, rather than your big frikkin list, I want to see you give someone 100 dems, then they can't pay!

PS. didn't read past page 1 >.<, but even still, fail.
« Last Edit: November 22, 2006, 04:03:19 PM by Anti-Cop »

why does this not have world editor -_-

ok, Heres the update!

Update Includes
Guild System
New Jail & dermits system
PM System
New Admin command (\help) yes use \
And more...

Theres gonna be a patch for a pay dermits and bank system.


wait...wtf. nothing new. at least add world editor
« Last Edit: November 22, 2006, 06:41:46 PM by yuki »




I WANT THE UPDATE THAT WORKS! STOP HIDIN IT
!!!!!!!!!!!!!!!!
« Last Edit: November 22, 2006, 07:12:37 PM by yuki »