-- By ErMex
local tablica = {
[3001] = {addon = 1, looktype = {136, 128}, text = "1 addon Citizen"},
[3002] = {addon = 2, looktype = {136, 128}, text = "2 addon Citizen"},
[3003] = {addon = 1, looktype = {137, 129}, text = "1 addon Hunter"},
[3004] = {addon = 2, looktype = {137, 129}, text = "2 addon Hunter"},
[3005] = {addon = 1, looktype = {138, 130}, text = "1 addon Mage"},
[3006] = {addon = 2, looktype = {138, 130}, text = "2 addon Mage"},
[3007] = {addon = 1, looktype = {139, 131}, text = "1 addon Knight"},
[3008] = {addon = 2, looktype = {139, 131}, text = "2 addon Knight"},
[3010] = {addon = 1, looktype = {140, 132}, text = "1 addon Noblewoman"},
[3011] = {addon = 2, looktype = {140, 132}, text = "2 addon Noblewoman"},
[3012] = {addon = 1, looktype = {141, 133}, text = "1 addon Summoner"},
[3013] = {addon = 2, looktype = {141, 133}, text = "2 addon Summoner"},
[3014] = {addon = 1, looktype = {142, 134}, text = "1 addon Warrior"},
[3015] = {addon = 2, looktype = {142, 134}, text = "2 addon Warrior"},
[3016] = {addon = 1, looktype = {147, 143}, text = "1 addon Barbarian"},
[3017] = {addon = 2, looktype = {147, 143}, text = "2 addon Barbarian"},
[3018] = {addon = 1, looktype = {148, 144}, text = "1 addon Druid"},
[3019] = {addon = 2, looktype = {148, 144}, text = "2 addon Druid"},
[3020] = {addon = 1, looktype = {149, 145}, text = "1 addon Wizard"},
[3021] = {addon = 2, looktype = {149, 145}, text = "2 addon Wizard"},
[3022] = {addon = 1, looktype = {150, 146}, text = "1 addon Oriental"},
[3023] = {addon = 2, looktype = {150, 146}, text = "2 addon Oriental"},
[3024] = {addon = 1, looktype = {155, 151}, text = "1 addon Pirate"},
[3025] = {addon = 2, looktype = {155, 151}, text = "2 addon Pirate"},
[3026] = {addon = 1, looktype = {156, 152}, text = "1 addon Assassin"},
[3027] = {addon = 2, looktype = {156, 152}, text = "2 addon Assassin"},
[3028] = {addon = 1, looktype = {157, 153}, text = "1 addon Beggar"},
[3029] = {addon = 2, looktype = {157, 153}, text = "2 addon Beggar"},
[3030] = {addon = 1, looktype = {158, 154}, text = "1 addon Shaman"},
[3031] = {addon = 2, looktype = {158, 154}, text = "2 addon Shaman"},
[3032] = {addon = 1, looktype = {252, 251}, text = "1 addon Norsewoman"},
[3033] = {addon = 2, looktype = {252, 251}, text = "2 addon Norsewoman"},
[3034] = {addon = 1, looktype = {269, 268}, text = "1 addon Nightmare"},
[3035] = {addon = 2, looktype = {269, 268}, text = "2 addon Nightmare"},
[3036] = {addon = 1, looktype = {270, 273}, text = "1 addon Jester"},
[3037] = {addon = 2, looktype = {270, 273}, text = "2 addon Jester"},
[3038] = {addon = 1, looktype = {279, 278}, text = "1 addon Brotherhood"},
[3039] = {addon = 2, looktype = {279, 278}, text = "2 addon Brotherhood"},
[3040] = {addon = 1, looktype = {288, 289}, text = "1 addon Demonhunter"},
[3041] = {addon = 2, looktype = {288, 289}, text = "2 addon Demonhunter"},
[3042] = {addon = 1, looktype = {324, 325}, text = "1 addon Yalaharian"},
[3043] = {addon = 2, looktype = {324, 325}, text = "2 addon Yalaharian"},
[3044] = {addon = 1, looktype = {329, 328}, text = "1 addon Weeding"},
[3045] = {addon = 2, looktype = {329, 328}, text = "2 addon Weeding"},
[3046] = {addon = 1, looktype = {336, 335}, text = "1 addon Warmaster"},
[3047] = {addon = 2, looktype = {336, 335}, text = "1 addon Warmaster"},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local zmienna = tablica[item.actionid]
if getPlayerSex(cid) == PLAYERSEX_MALE then
doPlayerAddOutfit(cid, zmienna.looktype[1], zmienna.addon)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Otrzymales "..zmienna.text..".")
elseif getPlayerSex(cid) == PLAYERSEX_FEMALE then
doPlayerAddOutfit(cid, zmienna.looktype[2], zmienna.addon)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Otrzymalas "..zmienna.text..".")
end
return true
end