• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Addon doll only for Yalaharian addons...

I Created this script its for money, your edit item or money say me and i edit.
talkactions

LUA:
function onSay(cid, words, param, channel)
local moneyReq = 1000
            if param == "yalaharian good" then
               if getPlayerMoney(cid) >= moneyReq then
                  doPlayerAddOutfit(cid, 324, 3)
                  doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
                  doPlayerSendTextMessage(cid, 22, "You have been added " .. param .. " full outfit.")
                                    
               else
                   doPlayerSendCancel(cid, "You Need "..moneyReq.."gp.")
               end
               
            elseif param == "yalaharian evil" then
               if getPlayerMoney(cid) >= moneyReq then
                  doPlayerAddOutfit(cid, 325, 3)
                  doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
                  doPlayerSendTextMessage(cid, 22, "You have been added " .. param .. " full outfit.")
               else
                   doPlayerSendCancel(cid, "Your Need "..moneyReq.."gp.")
               end
              
            end
         else
             doPlayerSendTextMessage(cid, 22, "You need ...")
         end
         return TRUE
end

Example:
!buy yalaharian good
And add outfit addon full 3.. Male Yalaharian
!buy yalaharian evil
Add outfit Femeale
 
I think i did not explained right xD

i want to player choose only between addon 1 or addon 2

both (male and female) can get good one or evil one, only one of them, not both
 
Back
Top