i need help with a lua script.
i am trying to create an npc that you can get nightmare or brotherhood outfit.
and if you already have nightmare you cant get brotherhood and if you already have brotherhood you cant get nightmare.
i want to know if someone could refine this code.
i have the code here
Please.
~Shade~
i am trying to create an npc that you can get nightmare or brotherhood outfit.
and if you already have nightmare you cant get brotherhood and if you already have brotherhood you cant get nightmare.
i want to know if someone could refine this code.
i have the code here
Code:
function SayText(cid)
if(getPlayerSex(cid) == 0)then
if doPlayerSendTextMessage == brotherhood then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 28)
doPlayerAddOutfit(cid,279,0)
else
if doPlayerSendTextMessage == nightmare then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 28)
doPlayerAddOutfit(cid,269,0)
else
if doPlayerSendTextMessage == brotherhood then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 28)
doPlayerAddOutfit(cid,278,0)
else
if
if doPlayerSendTextMessage == nightmare then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 28)
doPlayerAddOutfit(cid,268,0)
end
return TRUE
~Shade~