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

[NPC] Anyone can solve this XML problem?

Ezzam

New Member
Joined
Jan 16, 2008
Messages
213
Reaction score
2
As you can see I want that the first time you say hi to the NPC, he asks for the players name. I want to make that the player MUST say his name.

Code:
    <interact keywords="hi" storageId="200001" storageValue="0" storageComp="less" focus="1">
      <response text="Hi there, I havn't seen you in town before, may I ask for your name?">
        [COLOR="Red"]<interact keywords="|NAME|">[/COLOR]
          <response text="Well hello then |NAME|, and welcome to {Elburd}! If you'd like i can show you my {books}.">
            <action name="storage" key="200001"  value="1"/>
          </response>
        </interact>
      </response>
    </interact>

    <interact keywords="hi" focus="1">
      <response text="Hello |NAME|. If you need a {book} just ask"/>
    </interact>
 
Back
Top Bottom