[DiscordArchive] Can't you change starting level in world.conf?
[DiscordArchive] Can't you change starting level in world.conf?
Archived author: Alo? • Posted: 2022-08-08T03:25:00.274000+00:00
Original source
Can't you change starting level in world.conf?
Archived author: ragestriker • Posted: 2022-08-08T03:25:29.413000+00:00
Original source
i just what one race to start at lvl 20
Archived author: Peacy • Posted: 2022-08-08T03:33:12.326000+00:00
Original source
It's been a while since I coded something in Eluna but this should work:
```lua
local function ModifyPlayersLevel(event, player)
-- If the player is a troll
if (player:GetRace() == 8) then
-- If the player is level one.
-- This should only ever trigger once since we will level the player up.
if (player:GetLevel() == 1) then
player:SetLevel(20);
end
end
end
RegisterPlayerEvent(3, ModifyPlayersLevel)
```
Archived author: Alo? • Posted: 2022-08-08T03:41:32.207000+00:00
Original source
Ok I tried some more things and I tried simply reexporting the original unmodified Creature\IronDwarf\IronDwarf.m2 and that broke the game as well, so I have no idea what else it must be other then a problem with wbs. Strange since reexporting the original player models works fine. I'll try doing that again