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

[XML] NPC name randomization?

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,295
Solutions
3
Reaction score
1,043
Hello, I have been trying to figure out a way to randomly generate npc names upon spawning into the map. The idea is to save space by not having to make 100 npcs with different names, instead you can place an npc named "runes" and its name will be random every time it spawns. Anyone that can figure out a way to do this would be amazing!

My current npc script:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Postman" script="parcel.lua" walkinterval="2000" skull="green" floorchange="0">
	<health now="100" max="100"/>
	<look type="132" head="58" body="68" legs="106" feet="114" addons="0"/>
	<parameters>
		<parameter key="message_greet" value="Hello |PLAYERNAME|. Do you need to send a letter or parcel? Feel free to {trade} with me if you do."/>
	</parameters>
</npc>
 
Back
Top