hm someone requested this script. It's very simple, it changes the outfit based on certain groupIDs of characters. Just edit the outfit and you'll get rid of those robes xD
A) BASED ON GROUP ID (GOD, GM, CM, etc)
outfit.lua
B) BASED ON VOCATION
add to creaturescripts.xml
You are allowed to give me ideas to improve this script, ex. to change the outfit based on the char's name. I tried it but didn't work.
KNOWN BUGS:
-) OUTFIT MAY NOT BE CHANGED, IT DOESN'T WORK
gotta need to fix that
A) BASED ON GROUP ID (GOD, GM, CM, etc)
outfit.lua
Lua:
--[[
Script by Cybermaster
Fix by Shawak
[1] = Player
[2] = GM outfit
[3] = GOD outfit
]]--
local outfits = {
[1] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[2] = {lookType = 75, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[3] = {lookType = 302, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}
function onLogin(cid)
local group_id = getPlayerGroupId(cid)
if group_id > 1 then
doSetCreatureOutfit(cid, outfits[group_id], -1)
end
return TRUE
end
B) BASED ON VOCATION
Lua:
-- Script by Cybermaster
-- Fix by Shawak
--Rescripted, based on vocations
--[[
[1] = Sorcerer
[2] = Druid
[3] = Paladin
[4] = Knight
[5] = Master Sorcerer
[6] = Elder Druid
[7] = Royal Paladin
[8] = Elite Knight
]]--
local outfits = {
[1] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[2] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[3] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[4] = {lookType = 75, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[5] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[6] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[7] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[8] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}
function onLogin(cid)
local voc_id = getPlayerVocation(cid)
if getPlayerVocation(cid) > 0 then
doSetCreatureOutfit(cid, outfits[voc_id], -1)
end
return TRUE
end
add to creaturescripts.xml
Lua:
<event type="login" name="Outfit" script="outfit.lua"/>
You are allowed to give me ideas to improve this script, ex. to change the outfit based on the char's name. I tried it but didn't work.
KNOWN BUGS:
-) OUTFIT MAY NOT BE CHANGED, IT DOESN'T WORK
gotta need to fix that
Last edited: