Sizaro
Advanced OT User
This is not working.
No error in console.
No error in console.
Lua:
-- Script by Master-M and Sizaro --
function onSay(cid, words, param)
if words == "citizen" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 128, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 136, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "hunter" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 129, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 137, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "mage" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 130, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 138, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "knight" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 131, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 139, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "nobleman" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 132, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 140, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "summoner" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 133, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 141, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "warrior" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 134, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 142, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "barbarian" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 147, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 143, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "druid" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 148, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 144, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "wizard" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 149, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 145, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "oriental" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 150, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 146, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "pirate" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 151, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 155, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "assassin" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 152, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 156, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "assassin" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 153, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 157, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "beggar" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 153, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 157, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "shaman" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 154, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 158, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "norseman" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 251, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 252, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "nightmare" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 268, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 269, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "jester" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 273, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 270, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "brotherhood" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 278, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 279, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "demonhunter" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 289, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 288, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
elseif words == "yalaharian" then
if getPlayerSex(cid) == 1 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 325, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
elseif getPlayerItemCount(cid, 8982) and getPlayerSex(cid) == 0 then
if doPlayerRemoveItem(cid, 8982, 1) == true then
doPlayerAddOutfit(cid, 324, 3)
doPlayerSendTextMessage ( cid, 24, 'You just got your addons.' )
else
doPlayerSendTextMessage ( cid, 24, 'You don\'t have the correct item.' )
end
end
end
end
Code:
<talkaction words="!addon" event="script" value="donationaddons.lua"/>