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:
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>