Godely
Member
- Joined
- Aug 19, 2007
- Messages
- 233
- Reaction score
- 16
JUST ADD THE BLUE CODES!
THE RED CODE IS ONLY FOR REFERENCE!
It's really simple. Go to your login.lua, in creaturescripts, and add it before the function onLogin:
Now add it -- inside the function --:
Just after it:
Now go to constant.lua, in lib, and add:
anywhere you want, but I would recommend you to put it just after "femaleOutfits". Just Ctrl + F it.
See you guys
Hope you like it.
THE RED CODE IS ONLY FOR REFERENCE!
It's really simple. Go to your login.lua, in creaturescripts, and add it before the function onLogin:
Code:
local male =
{
lookType = 128,
lookHead = 20,
lookBody = 30,
lookLegs = 40,
lookFeet = 50,
lookAddons = 0
}
local female =
{
lookType = 136,
lookHead = 20,
lookBody = 30,
lookLegs = 40,
lookFeet = 50,
lookAddons = 0
}
Now add it -- inside the function --:
Code:
if (not isPremium(cid)) then
if (isInArray(premiumOutfits, getCreatureOutfit(cid).lookType) == TRUE) then
if getPlayerSex(cid) == 1 then
doCreatureChangeOutfit(cid, male)
else
doCreatureChangeOutfit(cid, female)
end
end
end
Just after it:
Code:
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
Now go to constant.lua, in lib, and add:
Code:
premiumOutfits = {132,133,134,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,251,252,268,269,270,273,278,279,288,289,324,325,328,329}
See you guys
Hope you like it.
Last edited: