Creation/Dev/Script/Helpful Posts: Difference between revisions
From Graal Bible
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
== Client == | == Client == | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1482479&postcount=17 Generating commands.rtf] | * [http://forums.graalonline.com/forums/showpost.php?p=1482479&postcount=17 Generating commands.rtf] | ||
== DBNPC and File Data Storage == | |||
* [http://forums.graalonline.com/forums/showpost.php?p=1641003&postcount=3 Comparison of data storage methods] | |||
* [http://forums.graalonline.com/forums/showpost.php?p=1660902&postcount=3 Editing text files via script with GUI example] | |||
* [http://forums.graalonline.com/forums/showpost.php?p=1660900&postcount=2 Editing text files via script] | |||
== SQLite == | == SQLite == | ||
Line 41: | Line 46: | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1557272&postcount=17 Using and adding multiple SQLite databases] | * [http://forums.graalonline.com/forums/showpost.php?p=1557272&postcount=17 Using and adding multiple SQLite databases] | ||
* [http://forums.graalonline.com/forums/showthread.php?t=134256319 SQL Explorer] | * [http://forums.graalonline.com/forums/showthread.php?t=134256319 SQL Explorer] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1580985&postcount=12 SQL speed tests] | |||
== iOS and Flash == | == iOS and Flash == | ||
Line 48: | Line 54: | ||
* [http://www.youtube.com/watch?v=Fa40kRUBqI0 Using NPC-Control (video)] | * [http://www.youtube.com/watch?v=Fa40kRUBqI0 Using NPC-Control (video)] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1544448&postcount=5 Triggering public functions in weapons from level NPCs] | * [http://forums.graalonline.com/forums/showpost.php?p=1544448&postcount=5 Triggering public functions in weapons from level NPCs] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1668517&postcount=7 Classes explanation] | |||
== Code Gallery == | == Code Gallery == | ||
Line 63: | Line 70: | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1574459&postcount=6 Keycode constants] | * [http://forums.graalonline.com/forums/showpost.php?p=1574459&postcount=6 Keycode constants] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1573674&postcount=6 Communicating with external web servers] | * [http://forums.graalonline.com/forums/showpost.php?p=1573674&postcount=6 Communicating with external web servers] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1559863&postcount=1 sendText, requestText, and onReceiveText] | |||
== Other Useful Resources == | == Other Useful Resources == |
Revision as of 00:24, 28 September 2011
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
DBNPC and File Data Storage
- Comparison of data storage methods
- Editing text files via script with GUI example
- Editing text files via script
SQLite
iOS and Flash
NPC-Control and Script Types
- Using NPC-Control (video)
- Triggering public functions in weapons from level NPCs
- Classes explanation
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.
Misc
- Opening PM windows
- Keycode constants
- Communicating with external web servers
- sendText, requestText, and onReceiveText