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

Solved Jiddo NPC System Doesn't Have Female/Male parameter?

jigsaw

Member
Joined
Dec 21, 2008
Messages
137
Solutions
4
Reaction score
16
So guys I was working in my project and then I came with an issue: Some NPCs reacts differently with male/females characters.

The OTX 7.4 etc.. use Jiddo NPC System. Does this System has any parameter to use in order to NPC respond to female/male differently?
For example: Jiddo

XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Penny" script="default.lua" walkinterval="1000" access="3" floorchange="0">
    <health now="100" max="100"/>
    <look type="137" head="96" body="79" legs="95" feet="96" addons="0"/>
    <parameters>
     
        <parameter key="message_greet" value="Welcome home, Sir |PLAYERNAME|"/>
        <parameter key="message_farewell" value="May Justice be with you!."/>
     
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="name;job;mail;criminal;" />
        <parameter key="keyword_reply1" value="I am miss Penny, your secretary." />

Now, Looking around the forum I found this system OpenTibia
XML:
<?xml version="1.0"?>
<npc name="Penny" floorchange="0" walkinterval="1000">
  <health now="150" max="150"/>
  <look type="137" head="96" body="79" legs="95" feet="96"/>

  <interaction range="2" idletimeout="30">

    <interact keywords="hi" param="male" focus="1">
      <!--Essas são palavras-chaves alternativas-->
      <keywords>hello</keywords>
      <response text="Welcome home, Sir |NAME|."/>
    </interact>
 
    <interact keywords="hi" param="female" focus="1">
      <!--Essas são palavras-chaves alternativas-->
      <keywords>hello</keywords>
      <response text="Welcome home, Lady |NAME|."/>
    </interact>

Can someone help me with this? or there is no parameter in Jiddo System?

I Think I got it solved, sorry for openening this thread:
Solution:
if getPlayerSex(cid) == 0 then
npcHandler:setMessage
 
Last edited:
Back
Top