• NutScript - Nutty name, serious framework
    2,778 replies, posted
[QUOTE=Blazer232;44310571]I'm still unable to get items to change bodygroups when equipped. Someone please, help with this.[/QUOTE] I'll try to figure it out tonight. I'll message you on steam if I figure it out.
[QUOTE=sants1;44317153]I'll try to figure it out tonight. I'll message you on steam if I figure it out.[/QUOTE] Can you post it here in case you uncover anything spectacular? :)
I put up a NS server for those who want to try: hegemony.game.nfoservers.com:27015
Hey so I'm trying to set up the business section of nut script to operate on flags, and on top of that I'm trying to add items to the business section. Anybody got an ideas?
[QUOTE=Crossu88;44318189]Hey so I'm trying to set up the business section of nut script to operate on flags, and on top of that I'm trying to add items to the business section. Anybody got an ideas?[/QUOTE] I think You should do it like in Clockwork, but idk how to make flags purchaseable. They made it so you can buy business flags and they will grant you the x123 flags, Maybe an item with a function to give a flag upon usage?
Rebel or anybody else, can you show how the body group system works? thanks.
[QUOTE=afik068;44319308]I think You should do it like in Clockwork, but idk how to make flags purchaseable. They made it so you can buy business flags and they will grant you the x123 flags, Maybe an item with a function to give a flag upon usage?[/QUOTE] Item.noBusiness = false ?
Mh question; is there a thing like CLASS.maleModels = { "da model in here", "and in here" ,"and in here" }? Because i currently i'm currently making classes like CWU Medic etc.
[QUOTE=Saxithon;44323149]Mh question; is there a thing like CLASS.maleModels = { "da model in here", "and in here" ,"and in here" }? Because i currently i'm currently making classes like CWU Medic etc.[/QUOTE] That's exactly how I added multiple models to a certain faction. I don't see why that wouldn't work for a class? If anything make each class have a different model. That might get messy though. Give it a shot?
mh now tried idiot way: if (client:Model() == "models/betacz/group03/male_01.mdl") then client:SetModel("models/betacz/group03m/male_01.mdl") end ... AND well i know now why it is called idiot way. --And I don't really want in my Class Choose menu Male01 Medic Class, Male02 Medic Class and so on :l
How do you take a flag away from someone when they spawn if they are a certain faction?
/flagtake?
[QUOTE=Blazer232;44329528]/flagtake?[/QUOTE] I said when they spawn but it doesn't matter, it turns out that I don't need it.
[QUOTE=Saxithon;44324446]mh now tried idiot way: if (client:Model() == "models/betacz/group03/male_01.mdl") then client:SetModel("models/betacz/group03m/male_01.mdl") end ... AND well i know now why it is called idiot way. --And I don't really want in my Class Choose menu Male01 Medic Class, Male02 Medic Class and so on :l[/QUOTE] When you are whitelisted for a faction you choose the model on the character creation screen so I for it to work with models you'll need to have a model picking screen show up otherwise I don't see how this could work since you don't choose the class on the character creation screen. [QUOTE=imacc2009;44329554]I said when they spawn but it doesn't matter, it turns out that I don't need it.[/QUOTE] My answer would be don't give it to them in the first place e.g. remove it from default and award it like you would any other flag.
nutscript handles p. well with 60+ people [IMG]http://i.imgur.com/9wc44hi.png[/IMG]
I need to try New Vegas RP sometime.
Did you guys ever had any luck with MySQL? I tested it out and apparently it connects to my database but then... [code] Query Error: SELECT whitelists, plydata FROM players WHERE steamid = 76561197976058741 AND rpschema = 'stalker' MySQL server has gone away Query Error: SELECT id FROM characters WHERE steamid = 76561197976058741 AND rpschema = 'stalker' MySQL server has gone away [/code]
May I ask if there is a list somewhere to be found, regarding all of the available commands for "ITEM.xxxx", client:xxxx etc. , or is it just common knowledge that a lua programmer should know?
for most you can guess for example ITEM.name ITEM.weight it's also lower camel case for the varNames
[QUOTE=soliv;44337801]Did you guys ever had any luck with MySQL? I tested it out and apparently it connects to my database but then... [code] Query Error: SELECT whitelists, plydata FROM players WHERE steamid = 76561197976058741 AND rpschema = 'stalker' MySQL server has gone away Query Error: SELECT id FROM characters WHERE steamid = 76561197976058741 AND rpschema = 'stalker' MySQL server has gone away [/code][/QUOTE] Try tmysql4 instead
[QUOTE=Netrius;44337846]May I ask if there is a list somewhere to be found, regarding all of the available commands for "ITEM.xxxx", client:xxxx etc. , or is it just common knowledge that a lua programmer should know?[/QUOTE] One of the things that Chessnut posted for me for ITEM.xxxx and PLUGIN.xxxx etc. You can do a search to find all of them: [QUOTE=Chessnut;44282173]The names are pretty arbitrary. Go on your favorite text editor and look for "itemTable." throughout all the files.[/QUOTE]
[QUOTE=soliv;44337801]Did you guys ever had any luck with MySQL? I tested it out and apparently it connects to my database but then... [code] Query Error: SELECT whitelists, plydata FROM players WHERE steamid = 76561197976058741 AND rpschema = 'stalker' MySQL server has gone away Query Error: SELECT id FROM characters WHERE steamid = 76561197976058741 AND rpschema = 'stalker' MySQL server has gone away [/code][/QUOTE] I think there are two primary causes for this kind of error. The first one: connection time out is misconfigured for the MySQL server. Either get the timeout changed or (if you don't want to/can't) create a timer that runs every X seconds (30/60) and queries something like "SELECT 1+1;" or "SELECT steamid FROM players LIMIT 1;", just to keep the connection alive. The other one is that the connection was lost and you need to create a new one.
[b]New forums: [url]http://chessnut.info/forums/[/url][/b]
Okay next Question of tha fucking Lua noob here: Where is definded that the Nexus doors are only openable by Combine?
The map itself sets it to +use (the E button) will not active the door. What NutScript, Clockwork, Tiramisu, etc... does is check if the player presses their use key, looks at the entity in front of the player, checks if it has +use disabled, and then opens the door if it does.
[QUOTE=Chessnut;44385952]The map itself sets it to +use (the E button) will not active the door. What NutScript, Clockwork, Tiramisu, etc... does is check if the player presses their use key, looks at the entity in front of the player, checks if it has +use disabled, and then opens the door if it does.[/QUOTE] I don't think he means physically where but rather in the gamemode code or map functions where is it defined that a door can only be opened by combine.
Fixed the net exploit issue with the storage. Now transfer item between character and storage will get password/key/permission check.
So I was modifying a script to use FAS:2 weapons for a schema and I've been having problems with the weapon not registering as raised. However once either sprint, reload, or use the toggleraise command it can fire. If anybody can help me it would be appreciated. Here are the scripts, the modified areas are sectioned off. [URL="http://pastebin.com/NbQ1nSA9"]http://pastebin.com/NbQ1nSA9[/URL] [URL="http://pastebin.com/2N1rNuUv"]http://pastebin.com/2N1rNuUv[/URL]
what's up with the networking issue where some characters aren't sent to the client, this has been happening for a while and I'm really wondering as to why this is happening.
So, this raises an interesting question: Based on what Chessnut said a few posts back, is it possible to make a sandbox addon to allow combine doors to be opened? I only ask this because my admin pulled up a City 17 map and forgot to change the gamemode, and decided to bring this question to my attention, for which I have no real answer to.
Sorry, you need to Log In to post a reply to this thread.