• 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!

Lua need help with a script

shadeness

@ Hackintosh
Joined
Jan 15, 2011
Messages
31
Reaction score
1
Location
Sweden
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
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
Please.

~Shade~
 
so this is like if you are a female and you say nightmare, you will get female nightmare outfit and if you say brotherhood you will get female brotherhood outfit. and if you are a male you will get male outfit and so on...
and you should only get one of it?
no, you get both. check outfits.xml next time
Code:
	<outfit id="17" premium="yes" default="0">
		<list gender="0" lookType="269" name="Nightmare"/>
		<list gender="1" lookType="268" name="Nightmare"/>
	</outfit>
&
	<outfit id="19" premium="yes" default="0">
		<list gender="0" lookType="279" name="Brotherhood"/>
		<list gender="1" lookType="278" name="Brotherhood"/>
	</outfit>
 
ah.
well, i want like that i just said, so...
if it isn't to much to ask, could you do it? :S
i suck at lua scripting, and it would be a miracle if i even got an server with AAC up and runing :p
 
no.
i want them to get either brotherhood outfit or nightmare outfit without addons.
but only 1 of them.
not both.
and if you are a female you will get female version and if you are a male you will get male version
 
Back
Top