Creation/Dev/Script/Helpful Posts: Difference between revisions
From Graal Bible
No edit summary |
|||
Line 19: | Line 19: | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1552270&postcount=8 Checking for objects in arrays] | * [http://forums.graalonline.com/forums/showpost.php?p=1552270&postcount=8 Checking for objects in arrays] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1621132&postcount=3 Sorting arrays] | * [http://forums.graalonline.com/forums/showpost.php?p=1621132&postcount=3 Sorting arrays] | ||
* [http://forums.graalonline.com/forums/showpost.php?p=1594899&postcount=20 float function] | |||
== Player == | == Player == | ||
Line 36: | Line 37: | ||
== 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] | ||
* [http://forums.graalonline.com/forums/showthread.php?p=1494270#post1494270 List of script events] | |||
== DBNPC and File Data Storage == | == DBNPC and File Data Storage == | ||
Line 71: | Line 73: | ||
* [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] | * [http://forums.graalonline.com/forums/showpost.php?p=1559863&postcount=1 sendText, requestText, and onReceiveText] | ||
* [http://forums.graalonline.com/forums/showthread.php?p=1368875#post1368875 Callstack access] | |||
== Other Useful Resources == | == Other Useful Resources == |
Revision as of 18:40, 28 September 2011
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.
If you can't edit the wiki but would like to contribute, please contact somebody with wiki access and tell them the changes to make.
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
- float function
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 itself.
Misc
- Opening PM windows
- Keycode constants
- Communicating with external web servers
- sendText, requestText, and onReceiveText
- Callstack access