DenZ
Zasłużony
- Joined
- Feb 23, 2011
- Messages
- 868
- Reaction score
- 30
- Age
- 28
Jak w temacie, kto? by mi przerobi? addon dolla aby tylko 2 razy mo?na by?o u?y??
Code:
local outfits = {
-- ['addon name'] = {male, female}
['citizen'] = {128, 136},
['hunter'] = {129, 137},
['mage'] = {130, 138},
['knight'] = {131, 139},
['nobleman'] = {132, 140},
['summoner'] = {133, 141},
['warrior'] = {134, 142},
['barbarian'] = {143, 147},
['druid'] = {144, 148},
['wizard'] = {145, 149},
['oriental'] = {146, 150},
['pirate'] = {151, 155},
['assassin'] = {152, 156},
['beggar'] = {153, 157},
['shaman'] = {154, 158},
['norsewoman'] = {251, 252},
['nightmare'] = {268, 269},
['jester'] = {273, 270},
['brotherhood'] = {278, 279},
['demonhunter'] = {289, 288},
['yalaharian'] = {325, 324},
['warmaster'] = {335, 336},
['wayfarer'] = {367, 366}
}
function onSay(cid, words, param)
local param = param:lower()
if getPlayerItemCount(cid, 9693) > 0 then
if param ~= '' and outfits[param] then
doPlayerRemoveItem(cid, 9693, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Full Addon Set sucesfully added!')
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
for i = 1, 2 do
doPlayerAddOutfit(cid, getPlayerSex(cid) == 1 and outfits[param][1] or outfits[param][2], i)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'In param type addon name!')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You dont have Addon Doll!')
end
return true