June 19, 2013, 03:18:40 AM
Pre-Releases are now available at the PreRelease section.
If any issues occur please post exceptions or information as to how to reproduce in the correct section.

Author Topic: [b38] Essentials!  (Read 30432 times)

0 Members and 1 Guest are viewing this topic.

BlueJayofEvil

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: [b29] Essentials!
« Reply #90 on: August 24, 2011, 08:12:48 PM »
Could a /buff command be added to Essentials?
Syntax: /buff <Buff name or ID> <duration # in minutes>
Example: /buff Shine 20 would give 20 minutes of Shine potion effect.

Also, if possible, could an indefinite buff duration be implemented? One (somewhat crude) way would be to auto-apply a specified buff when the duration runs out.

amarriner

  • Plugin Developer
  • Jr. Member
  • ****
  • Posts: 99
  • Karma: +13/-0
    • View Profile
Re: [b29] Essentials!
« Reply #91 on: August 24, 2011, 09:46:24 PM »
Unfortunately player buffs are handled in the client so a server mod won't be able to do that, sorry. :(
We demand rigidly defined areas of doubt and uncertainty.

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: [b29] Essentials!
« Reply #92 on: August 24, 2011, 09:51:28 PM »
You should read the post in Plugin Requests about what can and can't be done before you say such things.  Turns out, with 1.0.6, the server CAN add buffs to players.

amarriner

  • Plugin Developer
  • Jr. Member
  • ****
  • Posts: 99
  • Karma: +13/-0
    • View Profile
Re: [b29] Essentials!
« Reply #93 on: August 24, 2011, 10:32:47 PM »
Reeeeally? Nice, I'd read the post, but I guess I missed that. Great news as I was going to use some in the Liquid plugin. Sorry for sticking my foot in my mouth there.
We demand rigidly defined areas of doubt and uncertainty.

Luke

  • Plugin Developer
  • Jr. Member
  • ****
  • Posts: 76
  • Karma: +2/-0
    • View Profile
Re: [b32] Essentials!
« Reply #94 on: September 03, 2011, 01:48:28 AM »
Essentials updated for tonghts new build.

Stray Mongrel (野犬)

  • Full Member
  • ***
  • Posts: 130
  • Karma: +8/-1
    • View Profile
Re: [b32] Essentials!
« Reply #95 on: September 03, 2011, 05:27:04 PM »
I was looking through the source code to get a better idea of what the commands do. I was looking at the /slay command, and it appears this can be used by non-operator players. Am I misunderstanding that?

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: [b32] Essentials!
« Reply #96 on: September 03, 2011, 07:11:56 PM »
Yes, it appears /slay and /suicide are somehow backwards on their permissions.  /slay should be op only, and /suicide should be any player.

Stray Mongrel (野犬)

  • Full Member
  • ***
  • Posts: 130
  • Karma: +8/-1
    • View Profile
Re: [b32] Essentials!
« Reply #97 on: September 03, 2011, 07:31:30 PM »
Yes, it appears /slay and /suicide are somehow backwards on their permissions.  /slay should be op only, and /suicide should be any player.

Ok, I thought the exact same thing, but being new to this programming language. I was not sure I was seeing that right.

Vindicator209

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Re: [b32] Essentials!
« Reply #98 on: September 04, 2011, 12:19:59 PM »
I'm not sure if you meant godmode to work slowly like that, but might I suggest healing the player to max by spawning enough hearts?

Code: [Select]
for (int s = 0; s < (int)(Math.Abs(eplayer.statLife - eplayer.statLifeMax) / 20) + 1; s++)
Item.NewItem((int)eplayer.Position.X, (int)eplayer.Position.Y, eplayer.Width, eplayer.Height, 58, 1, false);

Luke

  • Plugin Developer
  • Jr. Member
  • ****
  • Posts: 76
  • Karma: +2/-0
    • View Profile
Re: [b33] Essentials!
« Reply #99 on: September 05, 2011, 04:38:01 AM »
Updated for build 33, fixed some minor bugs with slay and suicide others will be fixed once I get back to my pc.

Xemak

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: [b33] Essentials!
« Reply #100 on: September 29, 2011, 11:00:40 AM »
I got this error message when starting up the server,
 Error loading plugin assembly C:\Users\Computer\Desktop\terraria\Plugins\Essentials.dll:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at Terraria_Server.Plugins.PluginManager.LoadPluginAssembly(Assembly assembly)
   at Terraria_Server.Plugins.PluginManager.LoadPluginFromDLL(String PluginPath)

omnija

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: [b33] Essentials!
« Reply #101 on: September 30, 2011, 03:03:31 AM »
In the future are you planning on adding /setspawn? would be very useful.

Stray Mongrel (野犬)

  • Full Member
  • ***
  • Posts: 130
  • Karma: +8/-1
    • View Profile
Re: [b33] Essentials!
« Reply #102 on: September 30, 2011, 11:26:15 AM »
In the future are you planning on adding /setspawn? would be very useful.

This is funny, I was wanting this too. Right now the spawn point is editable through TEdit, but it's a pain to shut down the server just for this.

DeathCradle

  • Founder/Developer.
  • Sr. Member
  • ******
  • Posts: 447
  • Karma: +42/-1
    • View Profile
Re: [b33] Essentials!
« Reply #103 on: October 01, 2011, 12:03:33 AM »
In the future are you planning on adding /setspawn? would be very useful.

This is funny, I was wanting this too. Right now the spawn point is editable through TEdit, but it's a pain to shut down the server just for this.

I added that a few weeks ago :P Should be in for b36.

D1G1T4L3CH0

  • TDSM Team Member
  • Hero Member
  • *****
  • Posts: 518
  • Karma: +22/-2
  • Tester / Moderator
    • View Profile
    • Personal Website
Re: [b33] Essentials!
« Reply #104 on: October 01, 2011, 11:41:10 AM »
I added that a few weeks ago :P Should be in for b36.

Nice, that should be useful.  :D
Server Machine: Xubuntu 11.10 Xfce Mono 2.10.5
Thanks to all those who work on TDSM. It's a great alternative to the official one. And thanks to the plugin devs too for making it even better.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal