Resource icon

First Login with Rep Based on Faction lua

lua script to add rep on first login based on faction

wowdevtests

Member
wowdevtests Rep
1
0
0
Rep
6
wowdevtests Vouches
0
0
0
Vouches
0
Posts
8
Likes
6
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 6 270 XP
wowdevtests submitted a new resource:

First Login with Rep Based on Faction lua - lua script to add rep on first login based on faction

Greetings!

I’ve decided to do some tinkering with WotLK and Lua, and thought it’d be nice to have some reputation after creating a character.

I’ve taken pieces of FirstLogin.lua, and made something that will give reputation based on which faction you’re on.

Code:
local Team = {
    [0] = "Alliance",
    [1] = "Horde"
};

function FirstLogin (event, player)
player:AddItem(41599, 4)    -- 4 Frostweave bags
    --player:SetReputation(369, 20000)    -- Gadgetzan
    player:AddItem(50255, 1)...

Read more about this resource...
 
Liked By 1 member :

splicho

Emudevs Founder
Administrator
splicho Rep
6
0
0
Rep
6
splicho Vouches
3
0
0
Vouches
3
Posts
1,003
Likes
1,425
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 248 60 XP
Very nice. Love to see you getting into Lua 😇
 
Liked By 1 member :

wowdevtests

Member
wowdevtests Rep
1
0
0
Rep
6
wowdevtests Vouches
0
0
0
Vouches
0
Posts
8
Likes
6
Bits
1 YEAR
1 YEAR OF SERVICE
LEVEL 6 270 XP
Thank you sir! Hopefully I'll be able to share more scripts in the future!
 
Liked By 1 member :

3,391

1,271

9,555

428

Top