ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 02-Jun-10 18:22:12

|+HA+|AngelofDeath
Member
Registered: 01-Apr-10
Posts: 23

Re: lua

Are lua cripts compleet differed for N!tmod? The one i used for etpub does not seems to work  sad It makes my server crash  sad

Is there anybody who can tell me where  to find good anti sk scripts... ?

thx


|+HA+|AngelofDeath

Offline

#2 08-Jun-10 13:20:16

YCN'Adrian
Member
Registered: 31-Mar-10
Posts: 11

Re: lua

Hello,

I think this one will be good for you,

http://www.mediafire.com/?kzzmrmjnwwm

Regards,
Adrian

Offline

#3 10-Jun-10 09:59:21

|+HA+|AngelofDeath
Member
Registered: 01-Apr-10
Posts: 23

Re: lua

THx Adrian!
I already had a script like that, but still it doesnt seems so work.. It does load the sk protection, but it seems not to work. LIke in oasis the trigger for spawn 3 does not work after the wall is blown up. I can kill in every spawn and still nothing happens  roll  sad  yikes Can it be a setting in my server.cgf??


|+HA+|AngelofDeath

Offline

#4 21-Jun-10 17:34:17

N!trox*
Administrator
Registered: 30-Mar-10
Posts: 1,098

Re: lua

I just tried it and it works.

Put the ETWsk.lua in the nitmod folder.

Add this line in your server config :

set lua_modules "ETWsk.lua"

Exec your server config and voilà smile


iluvnitmod.png

Offline

#5 22-Jun-10 09:01:33

|+HA+|AngelofDeath
Member
Registered: 01-Apr-10
Posts: 23

Re: lua

lol mercie bien! lol But i did get it fixed, just forgot to make a post... Sorry Adrian and N!trox  hmm

Salut  wink


|+HA+|AngelofDeath

Offline

#6 17-Apr-12 20:05:15

HK_Delirium
BETA Tester
From: France
Registered: 01-Jun-10
Posts: 18
Website

Re: lua

Hi,

I've tried to run ETWsk on my server. It loads (I've got console popup message when a map doesn't have a script), but the spawn protection doesn't work. Can someone give me a link to download a working version of ETWsk on Nitmod?

Thanks.

Last edited by HK_Delirium (17-Apr-12 20:05:29)

Offline

#7 21-Jul-12 10:17:26

cinco
Member
Registered: 21-Jul-12
Posts: 7

Re: lua

Hi,

ETWSK have a problem with that we can not deal.

The problem occurs when a trigger:

c.actions [1] = {spawn = 1, newstate = PROTECT_ALLIES, trigger = "Allied team has stolen the Tank!"}

ETWSK still working without state change for the spawn

This does not work, it looks like ETWSK not work well for wm_announce

This is the part of LUA ETWSK

-- called when something is printed on server console
function et_Print(text)
--------------------------------------------------------------------------------
    if(c == nil) then return end
    for i,action in pairs(c.actions) do
        if(string.find(text, action.trigger)) then
            local msg
            if action.newstate == NO_PROTECT then
                msg = "is no longer protected!"
            else msg = "is now protected!"
            end
    c.spawns[action.spawn].state = action.newstate
            et.trap_SendServerCommand(-1, "cpm \"^3ATTENTION: ^1The "..
                c.spawns[action.spawn].name.." "..msg.."\n\"")
--            et.trap_SendServerCommand(-1, "cpm \"^3ATTENTION: ^1The ^4"..
--              c.spawns[action.spawn].name.." Spawn ^2"..msg.."\n\"")

        end
    end
end

Any ideas, thanks ..................

Last edited by cinco (21-Jul-12 10:54:15)

Offline

#8 22-Jul-12 12:10:56

cinco
Member
Registered: 21-Jul-12
Posts: 7

Re: lua

Hello!!!!!!

I think it's a bad time to ask .......... people are in hollidays wink


We carry with ETWsk long time, in NQ, after Silent
and now in N!TMOD, cost us a lot of time configuring Spawns on all maps.

As could do to make the trigger LUA worked on Nitmod ?

Could add a different sequence in the script wm_announce map LUA recognized for making the trigger?




Sorry for my English, ........... is very bad, I hope you understand me well.

Offline

#9 27-Jul-12 19:10:59

ailmanki
BETA Tester
Registered: 08-Jun-12
Posts: 42
Website

Re: lua

N!trox* wrote:

I just tried it and it works.

Put the ETWsk.lua in the nitmod folder.

Add this line in your server config :

set lua_modules "ETWsk.lua"

Exec your server config and voilà smile

The wm_announce messages from mapscript are not available through et_print().
So this lua script is currently not working


b_350_20_692108_381007_FFFFFF_000000.pngb_350_20_692108_381007_FFFFFF_000000.png

Offline

#10 27-Jul-12 20:13:12

cinco
Member
Registered: 21-Jul-12
Posts: 7

Re: lua

He had seen that announces not recorded in Nitmod, but did not know that this could be the cause.


Thanks ailmanki

Is this due to a bug in Nitmod??

Not only is a simple way to locate events in the game to ETWsk.lua, it is also to be used in any LUA script to other situations.

Offline

#11 27-Jul-12 21:28:43

ailmanki
BETA Tester
Registered: 08-Jun-12
Posts: 42
Website

Re: lua

http://etmods.net/tracker/index.php?do= … task_id=53

I wouldn't call it a bug, I guess its due to the new things, adding player names to it. Its just missing.
Good would be if both gets in to log, the original and the new msg.
And maybe a new cmd replacing wm_announce, so that a mapper can influence the msg.


b_350_20_692108_381007_FFFFFF_000000.pngb_350_20_692108_381007_FFFFFF_000000.png

Offline

Board footer

Powered by FluxBB