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 17-Jul-17 09:59:15

kawka
Member
Registered: 17-Jul-17
Posts: 3

Free xp for new player

Hello!
Could someone help me to create a script for giving a new player 4000 xp?

Big Thanks!

Offline

#2 19-Jul-17 23:09:28

jay1110
BETA Tester
Registered: 01-Sep-12
Posts: 239
Website

Re: Free xp for new player

Hi,
ask on twc forum, maybe they can help you.

Offline

#3 09-May-23 08:20:54

Drago
Member
Registered: 07-May-23
Posts: 19

Re: Free xp for new player

Hi!

I am also looking for this famous script. did you find it? I intentionally revived this topic because, like many other topics, we are frustrated with the finality.
You open a subject but you do not come back to tell us if you have obtained satisfaction.

Offline

#4 15-May-23 20:00:23

kawka
Member
Registered: 17-Jul-17
Posts: 3

Re: Free xp for new player

If you are still looking:

givexp.lua

local version = "0.1"

function et_InitGame(levelTime, randomSeed, restart)
    et.RegisterModname ("XP Give Module " .. version)
end

function et_ClientBegin(cno)
    if tonumber(et.gentity_get(cno, "ps.stats", 8)) < 20 then  
        for i = 0, 6 do
            et.G_XP_Set(cno, 500, i, 0) 	-- Change the '500' if you want to give a different amount of XP
        end    
    end
end

Last edited by kawka (15-May-23 20:14:10)

Offline

#5 18-Jun-23 10:34:34

Drago
Member
Registered: 07-May-23
Posts: 19

Re: Free xp for new player

Thank you very much kawka. It works very well.
Do you have a lua script to give xp to a specific player?

Offline

#6 22-Jun-23 07:32:20

kawka
Member
Registered: 17-Jul-17
Posts: 3

Re: Free xp for new player

http://etmods.net/forums/viewtopic.php?id=238

example:

1. Join Team 
2. !give etplayter skill 2 60000

Last edited by kawka (22-Jun-23 07:33:06)

Offline

Board footer

Powered by FluxBB