This guide shows you how to make a gameobjct cast a spell when right clicked.
For example I will make a wanted poster gameobject cast a spell.
Go into your world database and click the + (Add Query)
Entry: choose your entry ID you will use to spawn the Game Object I will use 123123
Type: The type of Game Object it will be we will use 22 so when the gameobject is right clicked it will cast a spell upon the player who clicked.
DisplayID: The appearence of the Game Object you can find this by selecting a GO ingame with .go select and typing .go info then you will see Model: the # next to Model: is the displayid. For this we will use the displayid 17 which is the appearence of a "wanted poster".
Name: The name of your Gamobject choose wisely because this cannot be changed after you load the GO into the game and it will appear to all players when you scroll over. We will use Earthquake! as the name.
SpellFocus: SpellFocus is the ID of the spell you would like the GO to cast upon the player. To find this go to http://thottbot.com and find a spell you would like then in the adress bar the # next to /s is the ID of the spell. For this GO we will use the ID of the Earthquake Visual/Sound spell which is 33271.
Sound1,2,3,4,5,6,7,8: Leave the 0.
Unknown 1,2,3,4,5,6,7,8: Leave the 0.
After you have made your GO go ingame and type .reload gameobject_names if you do not want to restart the server.
Hope this guide helps you. Post comments on if this helped you or if you are confused.