Author Topic: Immunity: How It Works Now  (Read 6380 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3352
  • Karma: 108
  • Project Specialist
    • View Profile
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Immunity: How It Works Now
« Reply #15 on: May 27, 2010, 02:44:55 PM »
wow thank you megiddo

To tell the truth didn't think this would get answered.

It made sense.
The old immunity would allow targeting of one self if that person had immunity.
The change Megiddo just kind of matches that ability to.
Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it - David Pogue

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3586
  • Karma: 191
  • Project Lead
    • View Profile
Re: Immunity: How It Works Now
« Reply #16 on: May 27, 2010, 03:12:28 PM »
It made sense.
The old immunity would allow targeting of one self if that person had immunity.
The change Megiddo just kind of matches that ability to.

It was honestly just one of those things I hadn't thought about happening until it was pointed out. :P
This space for rent

Offline DeimosTK

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Immunity: How It Works Now
« Reply #17 on: June 13, 2010, 12:59:55 PM »
Question, if I set something up like this,

Code: [Select]
ulx userallow Bob "ulx slap" "!%regular ^"
would this allow Bob to slap everyone below Regular, as well as himself?
Or would it make it so he can only slap himself if he's below Regular?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3586
  • Karma: 191
  • Project Lead
    • View Profile
Re: Immunity: How It Works Now
« Reply #18 on: June 13, 2010, 02:14:18 PM »
Question, if I set something up like this,

Code: [Select]
ulx userallow Bob "ulx slap" "!%regular ^"
would this allow Bob to slap everyone below Regular, as well as himself?
Or would it make it so he can only slap himself if he's below Regular?

Log:
Quote
] ulx who
ID Name                            Group
1  [ULX]Megiddo                    superadmin
] ulx slap ^
You slapped yourself with 0 damage
] ulx userallow ^ "ulx slap" "!%admin"
You granted access to ulx slap with access tag !%admin for yourself
] ulx slap ^
Command "ulx slap", argument #1: you cannot target this person or these persons
] ulx userallow ^ "ulx slap" "!%admin,^"
You granted access to ulx slap with access tag !%admin,^ for yourself
] ulx slap ^
You slapped yourself with 0 damage

The "," means and while it's being parsed. So with userallow "ulx slap" "!%superadmin,^", you're saying the person can slap anyone who is not a superadmin (or higher) and themselves.
This space for rent

Offline DeimosTK

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Immunity: How It Works Now
« Reply #19 on: June 13, 2010, 02:55:14 PM »
Log:
The "," means and while it's being parsed. So with userallow "ulx slap" "!%superadmin,^", you're saying the person can slap anyone who is not a superadmin (or higher) and themselves.
Epic, thanks!

Offline Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: Immunity: How It Works Now
« Reply #20 on: June 15, 2010, 04:13:49 AM »
How would this look like in the group.txt file?

The same?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3586
  • Karma: 191
  • Project Lead
    • View Profile
Re: Immunity: How It Works Now
« Reply #21 on: June 15, 2010, 04:49:05 AM »
How would what look?
This space for rent

Offline Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
Re: Immunity: How It Works Now
« Reply #22 on: June 15, 2010, 11:16:49 AM »
Like

"allow"
{
"ulx slap" "!%superadmin,^"
}

?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • ****
  • Posts: 3586
  • Karma: 191
  • Project Lead
    • View Profile
Re: Immunity: How It Works Now
« Reply #23 on: June 15, 2010, 02:11:32 PM »
Yes
This space for rent