• 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 this npc and monster

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
Monster:

Lava hole
deaththrower
a carved stone tile
paralyzethrowe

And npcs:
Gail
tesha
jessica
oiriz
iwan
hanna
shina
briasol

Thanks!
 
Example npc --> briasol-- give error :S

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Briasol" script="data/npc/scripts/Briasol.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="159" head="3" body="86" legs="87" feet="76" addons="0"/>
<voices>
<voice text="I have gems and beautiful jewellery for you!" interval2="100" margin="1" yell="no"/>
</voices>
<parameters>
<parameter key="message_greet" value="Please feel welcome to my gem and jewellery store."/>
<parameter key="message_farewell" value="Good bye."/>
<parameter key="message_walkaway" value="Good bye." />
<parameter key="message_sendtrade" value="Here, take a look." />
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="black pearl,2144,560;white pearl,2143,320;small amethyst,2150,400;small diamond,2145,600;small emerald,2149,500;small ruby,2147,500;small sapphire,2146,500;golden amulet,2130,6600;ruby necklace,2133,3560;wedding ring,2121,990;bronze goblet,5807,2000;golden goblet,5805,5000;silver goblet,5806,3000;" />
<parameter key="shop_sellable" value="gold ingot,9971,5000;white pearl,2143,160;giant green pearl,7632,3000;giant brown pearl,7633,3000;black pearl,2144,280;small amethyst,2150,200;small diamond,2145,300;small emerald,2149,250;small ruby,2147,250;small sapphire,2146,250;small topaz,9970,200;wedding ring,2121,100; " />
</parameters>
</npc>

can fix?
 
I think sales are npcs .. as this is an example of the above fails me.
I only said that failure but does not say where.
 
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="a carved stone tile" nameDescription="a carved stone tile" race="undead" experience="0" speed="0" manacost="0">
  <health now="9950" max="9950"/>
  <look typeex="3169"/>
  <targetchange interval="5000" chance="20"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="100"/>
    <flag hidehealth="1"/>
  </flags>
  <attacks>
  </attacks>
  <defenses armor="1" defense="1"/>
  <immunities>
    <immunity physical="1"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity ice="1"/>
    <immunity holy="1"/>
    <immunity death="1"/>
    <immunity lifedrain="1"/>
    <immunity manadrain="1"/>
    <immunity paralyze="1"/>
    <immunity drunk="1"/>
    <immunity outfit="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="7">
    <summon name="dreadbeast" interval="3000" chance="100" max="7"/>
  </summons>
  <loot>
    <item id="2148" countmax="20" chance1="100000" chancemax="0"/>
  </loot>
</monster>

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="deaththrower" nameDescription="a deaththrower" race="undead" experience="0" speed="0" manacost="0">
  <health now="9950" max="9950"/>
  <look typeex="1551"/>
  <targetchange interval="5000" chance="20"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="0"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="100"/>
    <flag hidehealth="1"/>
  </flags>
  <attacks>
    <attack name="death" interval="2000" chance="100" range="7">
      <attribute key="shootEffect" value="suddendeath"/>
	  <attribute key="areaEffect" value="MORTAREA"/>
	  
    </attack>
  </attacks>
  <defenses armor="1" defense="1"/>
  <immunities>
    <immunity physical="1"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity ice="1"/>
    <immunity holy="1"/>
    <immunity death="1"/>
    <immunity lifedrain="1"/>
    <immunity manadrain="1"/>
    <immunity paralyze="1"/>
    <immunity drunk="1"/>
    <immunity outfit="1"/>
    <immunity invisible="1"/>
  </immunities>
  <loot>
    <item id="2148" countmax="20" chance1="100000" chancemax="0"/>
  </loot>
</monster>

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="lava hole" nameDescription="a lava hole" race="undead" experience="0" speed="0" manacost="0">
  <health now="9950" max="9950"/>
  <look typeex="389"/>
  <targetchange interval="5000" chance="20"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag runonhealth="100"/>
    <flag hidehealth="1"/>
  </flags>
  <attacks>
  </attacks>
  <defenses armor="1" defense="1"/>
  <immunities>
    <immunity physical="1"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity ice="1"/>
    <immunity holy="1"/>
    <immunity death="1"/>
    <immunity lifedrain="1"/>
    <immunity manadrain="1"/>
    <immunity paralyze="1"/>
    <immunity drunk="1"/>
    <immunity outfit="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="2">
    <summon name="deathspawn" interval="1500" chance="10" max="1"/>
  </summons>
  <loot>
    <item id="2148" countmax="20" chance1="100000" chancemax="0"/>
  </loot>
</monster>

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="paralyzethrower" nameDescription="a paralyzethrower" race="undead" experience="0" speed="0" manacost="0">
  <health now="9950" max="9950"/>
  <look typeex="1551"/>
  <targetchange interval="2000" chance="0"/>
  <strategy attack="100" defense="0"/>
  <flags>
    <flag summonable="0"/>
    <flag attackable="0"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag runonhealth="100"/>
    <flag hidehealth="1"/>
  </flags>
  <attacks>
		<attack name="manadrain" interval="2000" radius="4" target="0" min="-60" max="-230">
			<attribute key="areaEffect" value="poff"/>
    </attack>
	 <attack name="paralyze" interval="2000" chance="40" target="1">
	 <attribute key="areaEffect" value="poff"/>
	 </attack>
  </attacks>
  <defenses armor="1" defense="1"/>
  <immunities>
    <immunity physical="1"/>
    <immunity energy="1"/>
    <immunity fire="1"/>
    <immunity poison="1"/>
    <immunity ice="1"/>
    <immunity holy="1"/>
    <immunity death="1"/>
    <immunity lifedrain="1"/>
    <immunity manadrain="1"/>
    <immunity paralyze="1"/>
    <immunity drunk="1"/>
    <immunity outfit="1"/>
    <immunity invisible="1"/>
  </immunities>
</monster>
 
Thanks You very Much!

=)


Briasol npc fixed-->

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Briasol" script="data/npc/scripts/default.lua" walkinterval="5000" floorchange="0">
<health now="100" max="100"/>
<look type="128" head="100" body="100" legs="114" feet="114" addons="2"/>
<parameters>
<parameter key="message_greet" value="Hi |PLAYERNAME|I have gems and beautiful jewellery for you! {Trade}." />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="hi;" />
<parameter key="keyword_reply1" value="|PLAYERNAME|Please feel welcome to my gem and jewellery store."/>


<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="black pearl,2144,560;white pearl,2143,320;small amethyst,2150,400;small diamond,2145,600;small emerald,2149,500;small ruby,2147,500;small sapphire,2146,500;golden amulet,2130,6600;ruby necklace,2133,3560;wedding ring,2121,990;bronze goblet,5807,2000;golden goblet,5805,5000;silver goblet,5806,3000;" />
<parameter key="shop_sellable" value="gold ingot,9971,5000;white pearl,2143,160;giant green pearl,7632,3000;giant brown pearl,7633,3000;black pearl,2144,280;small amethyst,2150,200;small diamond,2145,300;small emerald,2149,250;small ruby,2147,250;small sapphire,2146,250;small topaz,9970,200;wedding ring,2121,100;baking tray,2561,100"/>
2048
2679
</parameters>
</npc>

others do not know how to fix it = S
 
Last edited:
Back
Top