• 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 looktype=itemid

ib0w

teamfiveporject
Joined
Apr 3, 2009
Messages
91
Reaction score
4
Location
Sweden/Ronneby
hey guys how can i make a npc looks like an item?
i want a npc look like itemid 12319.
i tryed like this <look typeex="12319" corpse="3128"/>
but it bugged my client.
im using 8.6, 0.3.6
 
<?xml version="1.0" encoding="UTF-8"?>

<npc name="Sacred Dragon" script="dragon.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look typeex="12319" corpse="3128"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. What brings you to me? You want start the {adventures}?"/>
<parameter key="shop_buyable" value="sacred teleporter,9942,2000000;" />
</parameters>

</npc>
 
the dragon.lua works perfectly when i have another looktype, so thats not the problem, i dont need help with the lua, i just need help to make this npc look like 12319
 
what item actually it is of your id - 12319?

is that item registered to items.xml?

I am sure I can help you if you reply me fast and I will not have to wait.
 
if I were you I would try to make a simple actions lua file and test to do like this:

Code:
doSetItemOutfit(cid, 12319, -1)

if your outfit transforming to the item then you can make something like globalevent on startup that spawns that npc and in the moment change npc outfit. Its simple, but might be 12319 item id is too big or something that do client crash.
 
Code:
<?xml version="1.0" encoding="UTF-8"?>

<npc name="Sacred Dragon" script="dragon.lua" walkinterval="0" floorchange="0">
    <health now="100" max="100"/>
	[COLOR="#FF0000"]<look itemex="12319" corpse="3128"/>[/COLOR]
    <parameters>
    		<parameter key="module_shop" value="1"/>
        <parameter key="message_greet" value="Hello |PLAYERNAME|. What brings you to me? You want start the {adventures}?"/>
<parameter key="shop_buyable" value="sacred teleporter,9942,2000000;" />
	</parameters>

</npc>

Isn't it meant to be itemex?
 
No it should be typeex, at least it should work normaly in tfs. This is an example of a working npc on tfs 0.3.6pl1
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ariel" script="ariel.lua" walkinterval="2000" speed="0" floorchange="0">
	<health now="150" max="150"/>
    <look typeex="5811" head="55" body="68" legs="96" feet="32" corpse="2212"/>
	<parameters>
	<parameter key="message_greet" value="Hello, |PLAYERNAME|. What a beautiful day isn't it?" />	
	</parameters>
</npc>
 
Back
Top