ULX

Author Topic: Lick  (Read 5026 times)

0 Members and 1 Guest are viewing this topic.

Offline tomisord1

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Lick
« on: December 26, 2014, 08:17:11 PM »
Hey guys its my first command i made in ulx and all, it may have some bugs but its awesome to play with
There are some variables at the top of the script if you want to change some things and the usage is
!lick (ply)
To install it, put this lua script in ulx/modules/sh
Thanks for checking this out ^^
oh and also any criticism will be fine

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lick
« Reply #1 on: December 26, 2014, 09:13:46 PM »
Tips/Recommendations
1) learn to convert your releases to addon format. Feel free to ask/search how in developers corner section of our forum, and, there are plenty of releases here to learn from by example
2) tounge: Obsolete spelling of tongue - according to Google. So, technically, you spelled it correctly, but, only in the olden days.
3) Use a code editor that will indent your code.
Proper/easy to read code would be like
Code: [Select]
if this
  then do
    that
  else
end
Yours is like
Code: [Select]
if this
then do
that
else
end
No, you don't have to indent, but, it will sure help you later when coding to find out why a certain operator comparison isn't acting right.

And, see examples of other releases here for better presentation.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline tomisord1

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Lick
« Reply #2 on: December 26, 2014, 09:17:57 PM »
ah OK, thx for the feedback, ill try to improve in future, atm its 5am and i haven't slept... so yeah... ill fix it later today

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lick
« Reply #3 on: December 26, 2014, 09:20:20 PM »
4) Now sleep.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline silentkiller101

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: Lick
« Reply #4 on: March 14, 2015, 07:09:19 PM »
What does this do exactly? Lol

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Lick
« Reply #5 on: March 14, 2015, 09:15:15 PM »
What does this do exactly? Lol

My thought exactly without downloading it.  Might be wise to also give a brief description of what your command/script does.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Lick
« Reply #6 on: March 15, 2015, 07:30:27 PM »
My thought exactly without downloading it.  Might be wise to also give a brief description of what your command/script does.

What does this do exactly? Lol

ulx.fancyLogAdmin( calling_ply, "#A hurt #T by #s whilst licking him/her", affected_plys, dam)
ulx.fancyLogAdmin(calling_ply, "#A set #T on fire for #s seconds whilst licking him",affected_plys,timeburn)
ulx.fancyLogAdmin( calling_ply, "#A healed #T by #s with a green tounge",affected_plys, heal)
ulx.fancyLogAdmin( calling_ply, "#A normally licked #T", affected_plys)

looks like a slap and hp type of thing.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lick
« Reply #7 on: March 15, 2015, 07:46:49 PM »
I thought I asked original poster to give more info all those months ago. But, yeah, from the code review, it's a random heal/punish.
A lick from someone could have minty fresh healing power, do nothing, or acid bad breath hurting powers.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming