Page 1 of 1
SpawnScripts/OutpostOverlord/Whizratchet.lua
Posted: Sun Jul 05, 2009 12:31 am
by Sylva1n
The spawn script from selecting "hail" in the right click menu.
Code: Select all
--[[
Spawn Template
Script Name: Whizratchet.lua
Script Purpose: Banker (evil)
Script Author: Sylva1n
Script Date: 2009.07.05
Script Notes: Auto-Generated Conversation from PacketParser Data
--]]
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
Say(NPC, "As a banker it is my job to hold items and coin for you for safe-keeping. If you would like to learn more, speak with Trainer Vissa Sathliss. She is just east of me, around the corner.")
end
Wasn't sure it it was the right place nor way to submit spawnt scripts, but figured the project does need all the content from live servers.
Re: SpawnScripts/OutpostOverlord/Whizratchet.lua
Posted: Sun Jul 05, 2009 7:46 am
by Scatman
If the spawn has an audible voice we prefer getting the collect from live so we can get what he actually says out loud. We usually don't do these things manually since we can collect them and John has a nifty tool to convert the raw data to actual scripts so all we have to do is delete duplicate data and make sure everything is connected.
Also, for future reference, the Say() function takes a third parameter which is a Spawn type. In your case the variable name is Spawn so it'd look like this: Say(NPC, "message", Spawn). The third param is there so only that spawn sees the text bubble when displayed. If left out, everyone near the NPC will see the text bubble when someone else hails him.
Re: SpawnScripts/OutpostOverlord/Whizratchet.lua
Posted: Sun Jul 05, 2009 7:53 am
by John Adams
Submitted to dev server.
Re: SpawnScripts/OutpostOverlord/Whizratchet.lua
Posted: Sun Jul 05, 2009 9:12 am
by Sylva1n
Scatman wrote:
Also, for future reference, the Say() function takes a third parameter which is a Spawn type. In your case the variable name is Spawn so it'd look like this: Say(NPC, "message", Spawn). The third param is there so only that spawn sees the text bubble when displayed. If left out, everyone near the NPC will see the text bubble when someone else hails him.
My reference was:
the LUA Functions Sticky
by LethalEncounter
found :
here
LethalEncounter wrote:
Say(Spawn, message)
Looked more uptodate than the wiki, maybe something to update?
Re: SpawnScripts/OutpostOverlord/Whizratchet.lua
Posted: Sun Jul 05, 2009 9:41 am
by John Adams
Yeah, documentation is nothing we have time for. Regardless of what is posted, Scatman is merely stating the function has an added param.
Doesn't hurt to not have it, but helps when you do.