Discussions of the design and development of in-game content.
Moderator: Team Members
-
Sylva1n
- Posts: 271
- Joined: Tue Mar 24, 2009 3:03 pm
- Location: Quebec, Canada
Post
by Sylva1n » Sun Jul 05, 2009 12:31 am
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.
-
Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Post
by Scatman » Sun Jul 05, 2009 7:46 am
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.
-
John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
-
Contact:
Post
by John Adams » Sun Jul 05, 2009 7:53 am
Submitted to dev server.
-
Sylva1n
- Posts: 271
- Joined: Tue Mar 24, 2009 3:03 pm
- Location: Quebec, Canada
Post
by Sylva1n » Sun Jul 05, 2009 9:12 am
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?
-
John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
-
Contact:
Post
by John Adams » Sun Jul 05, 2009 9:41 am
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.
Who is online
Users browsing this forum: No registered users and 0 guests