Code: Select all
009-1.gat,81,41,0 script Milly 114, {
mes "[Milly]";
mes "\"Hello.\"";
close;
}
Above is an example of an NPC saying Hello. This NPC is using multiple Messages. First it says [Milly] Than it says Hello.
1)
2)is determining the map that the NPC is located.Code: Select all
009-1
Note: .Gat allows the server to recognize the map
is the spot on the grid (using square unites) an NPC will stand while on a map. 1,1 being the very most upper left of the grid.Code: Select all
81,41
Tells the NPC what way it is facing. This usually will remain 0Code: Select all
,0
is the command that indicates it is a scriptCode: Select all
script
is the name printed in the client below the sprite (you will see this in game below the NPC sprite)Code: Select all
Milly
is the sprite id to be looked up in client data /npc.xml This file is located in your updates.Code: Select all
114,
indicates the start of a scriptCode: Select all
{
3)This tells the client to print a message when you click on an npc.Code: Select all
mes
opens a place for you to type the printed message you want your npc to sayCode: Select all
"
At the end of the printed message, this lets the npc know the message is completeCode: Select all
"
This is placed after each command to indicate the command line is completeCode: Select all
;
4)refer to number 2)Code: Select all
mes
starts a stringCode: Select all
"
means there is a " within a stringCode: Select all
\"
Is the printed messageCode: Select all
Hello.
refer to 2 lines aboveCode: Select all
\"
refer to 2)Code: Select all
"
refer to 2)Code: Select all
;
5)is a command that allows a player the option to close the prompt while in gameCode: Select all
close
refer to 2)Code: Select all
;
If I missed anything or you feel the need to edit this Paste-bin via pm and I will credit you for your alterations. I plan on continuing this thread with example npc and eventually creating 1 downloadable documentindicates the end of the scriptCode: Select all
}
______________________________________________________________________
Authors: Meway, PjotrOrial