• 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] Playboy Girl (trampa)

azzkaban

Monster Maker
Joined
Feb 23, 2010
Messages
1,101
Reaction score
194
Location
Iquique Chile
Este es un NPC creado hoy, o mejor dicho re-editado hoy. Lo que hice fue acortar el script de un NPC llamado Ruby el cual te ataca si le dices alguna mala palabra... lo que hice de mi parte fue crear una pequeña conversación en la cual todos vamos a decirle que si, y ahí viene lo divertido


NPCPlayboyGirl.png



playboy girl.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Playboy Girl" nameDescription="a playboy girl" script="Playboy Girl.lua" walkinterval="2000" floorchange="0" skull="red">
<health now="100" max="100"/>
<look type="156" head="79" body="94" legs="114" feet="94" addons="0"/>
<interaction range="5" idletime="30">
  <interact keywords="hola" focus="1">
   <!--These are the keywords will trigger this interaction-->
   <keywords>hello</keywords>
   <response>
    <action name="script">
    <![CDATA[
     if(getPlayerSex(cid)) == 0 then
      selfSay("Bienvenido al Burdel, Madam, quieres tener SEXO conmigo? " .. getCreatureName(cid) .. ".", cid)
     else
      selfSay("Bienvenido al Burdel, Sir, quieres tener SEXO conmigo? " .. getCreatureName(cid) .. ".", cid)
     end
    ]]>
    </action>
   </response>
  </interact>
  <interact keywords="chao" focus="0">
   <keywords>farewell</keywords>
   <response text="Chao. y recuerda, decirle a tus amigos de mis servicios.">
    <!--
    <action name="script">
     doRemoveCreature(getNpcCid());
    </action>
    -->
   </response>
  </interact>
  <!--
  If the event onBusy exists, the npc will make a queue like Tibia, if the event is removed
  the npc will be able to talk to all customers at the same time without problems.
  -->
  <interact event="onBusy">
   <response text="Espera que estoy ocupada, |NAME|.">
    <action name="addqueue" value="|PLAYER|"/>
   </response>
  </interact>
  <!--This event triggers if the player goes to far away from the npc/logout/idle timeout-->
  <interact event="onPlayerLeave" focus="0">
   <response text="Chao. y recuerda, decirle a tus amigos de mis servicios."/>
  </interact>
  <!---Example of calling a script function, check ruby.lua-->
  <interact focus="1">
   <!--These are the keywords will trigger this interaction-->
   <keywords>si</keywords>
   <keywords>si</keywords>
   <keywords>si</keywords>
   <keywords>si</keywords>
   <keywords>si</keywords>
   <response function="onSayCurse">
    <action name="idle" value="1"/>
    <action name="scriptparam" value="|PLAYER|"/>
    <action name="scriptparam" value="|TEXT|"/>
   </response>
  </interact>
  <interact focus="0">
   <!--These are the keywords will trigger this interaction-->
   <keywords>si</keywords>
   <keywords>si</keywords>
   <keywords>yes</keywords>
   <keywords>si</keywords>
   <keywords>si</keywords>
   <response function="onSayCurse">
    <action name="idle" value="1"/>
    <action name="scriptparam" value="|PLAYER|"/>
    <action name="scriptparam" value="|TEXT|"/>
   </response>
  </interact>
</interaction>
</npc>

playboy girl.lua

Code:
function onCreatureAppear(cid)
--
end
function onCreatureDisappear(cid)
--
end
function onCreatureSay(cid, type, msg)
--
end
function onThink()
end
function onSayCurse(cid, text)
selfSay("Toma esto pervertido!")
doTargetCombatHealth(getNpcCid(), cid, COMBAT_LIFEDRAIN, -100000, -200000, CONST_ME_HEARTS)
end


Recuerden que es una versión en español.
 
Pero si la culpa es de ella que ha preguntado por sexo LOL. XD
 
Back
Top