Creation/Dev/Script/Helpful Posts
From Graal Bible
This article is currently being written or rewritten by Chris Vimes.
This article contains an incomplete list of helpful scripting snippets, mostly from the Graal Forums, but also from other websites. Please edit this page to add more links as you come across them.
Control Structures
Serverside and Clientside
- Explanation of serverside and clientside, introduction to triggers
- Good trigger examples (both ways)
- Triggering database NPCs from level NPCs
Object/Data Types and Structures
- Arrays
- Custom object types
- Comparing arrays
- Dynamic variable names
- Checking for objects in arrays
- Sorting arrays
Player
- Check if a player is staff
- Timeouts in the player object
- Player classes and reusable public functions
- Getting actual level name on a GMAP
- Passing parameters along with attributes
- Offline player manipulation
- Player latency measuring
GUIs
Client
SQLite
iOS and Flash
NPC-Control and Script Types
Code Gallery
This list contains widely-used tools and code snippets that demonstrate a particular skill or technique. For a complete listing of scripts, see the Code Gallery.