[@main] <--The first section of script a npc runs when clicked
#SAY <--This makes the npc say something obviously
Hello\ <--The \ creates a new line a speech
<$USERNAME>\ <--The command to show a username
<Next Page/@p2>\ <--This is how you create a link to another page with the @p2 signifying where the next page is
<Exit/@exit> <-- This ends the script
[@p2] <-- Directing the link from the previous page to here
#IF <--A check to find if a value is true
checkgold 1000000 <--Check to see if the player has over 1mil in there pack
#SAY
You Have Over 1Million Gold!
#ELSEACT <--If the if statement is negative (in this case the player
doesnt have 1million gold) this signifies the script to perform an action
give gold 1000000
#ELSESAY <--If the statement is negative this tells the NPC to say something (can be used alongside ELSEACT)
There You Are Now You Have Over\
1 Million Gold