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

How to change the text color in an shop npc?

Alkenix

New Member
Joined
Oct 2, 2008
Messages
26
Reaction score
3
Location
Germany
Hey guys.

It could be easy for u, but iam searching like hell for a solution of this.
U all know that in real Tibia the text of an npc is multicolored right?
For example:
Hey traveler. Do u want to visit my shop for a moment? Just say trade to enter.



And i want this in my npc's texts as well..
Atm it's this one:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Gustav" script="data/npc/scripts/schmied.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="152" head="114" body="97" legs="114" feet="132" addons="2"/>
	<parameters>
		<parameter key="message_greet" value="Hello |PLAYERNAME|. Iam there to sell you defense. Say trade to interact with me."/>
		<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
	</parameters>
</npc>

Would be epic great if u guys could give me a solution.^^
 
XML:
<parameter key="message_greet" value="Hello |PLAYERNAME|. Iam there to sell you defense. Say {trade} to interact with me."/>
Using { } will make it dark blue.
 
Do u also know a way how to change the home town as a player?
For exmaple going through a teleporter changes "Thais" to "Carlin"? o.o Or talking to an npc?
 
If you have the script citizen.lua in movements, you can use the teleport with id 1387 and then add action id 30020 + the town id to the teleport, for example 30021 for townid 1.
 
Back
Top Bottom