Ulysses

General => Developers Corner => Topic started by: CroX on August 17, 2013, 06:12:47 PM

Title: I need help with ULX Admin Addon.
Post by: CroX on August 17, 2013, 06:12:47 PM
Hi, Im new to the LUA codeing and stuff.
And I've searched on google and youtube but I cant find any help. If someone knows please tell me!  :-[
I need help with TWO things.

First of all, I need help to add a reason to jail. ex.:

!jail bob 300 Hi

and It will say in the chat >:

Bob jailed bob for 300 seconds (Hi)       (No need to color script/code it)

Thanks for the help.






Second thing I need help with.

Me and my friend found out the jail is just totally wrong.    Reasons:

1. The jailed guy can kill you thru the jail.

2. People from the OUTSIDE can kill the jailed guy

The jail looks like this.

(http://i41.tinypic.com/2rm7ds8.png)












And I'd like it to be this material and I want the form to be this

(http://i41.tinypic.com/zu2kv4.png)







(http://i40.tinypic.com/11hz6sw.png)







(http://i44.tinypic.com/1581dol.png)







(http://i44.tinypic.com/1581dol.png)




Thanks for the help!  ;D


Title: Re: I need help with ULX Admin Addon.
Post by: Megiddo on August 20, 2013, 05:37:53 PM
For the first, it's a relatively straightforward change that you should have no problem making yourself, even with limited coding knowledge. Consider it a good first challenge.

For the second, jails are already like that for the next release.
Title: Re: I need help with ULX Admin Addon.
Post by: CroX on August 21, 2013, 06:57:41 AM
Come on please help me.

I have tried to code it but I cant.
Title: Re: I need help with ULX Admin Addon.
Post by: Mr582 on August 22, 2013, 07:39:37 PM
Come on please help me.

I have tried to code it but I cant.
You and I are from the same place right now. The way you would do it is look at other commands that do have reasons and kind of copy that code to jail. I am new to lua too and that's what I would do. If you can't figure it out ill try and help you.
Title: Re: I need help with ULX Admin Addon.
Post by: CroX on August 22, 2013, 11:27:29 PM
You and I are from the same place right now. The way you would do it is look at other commands that do have reasons and kind of copy that code to jail. I am new to lua too and that's what I would do. If you can't figure it out ill try and help you.



I'd be happy if you could help me. And if you know how to do it. I tried it once, nothing happened, not even lua error.
Title: Re: I need help with ULX Admin Addon.
Post by: Mr582 on August 23, 2013, 02:25:07 PM


I'd be happy if you could help me. And if you know how to do it. I tried it once, nothing happened, not even lua error.
Ill help you while I am waiting for something. Give me 15 minutes or so
Title: Re: I need help with ULX Admin Addon.
Post by: CroX on August 23, 2013, 05:39:38 PM
Are you done yet?

:)