Creation/Dev/Script/Helpful Posts: Difference between revisions

From Graal Bible
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Scripting Reference]][[Category:Scripting Tutorials]]
[[Category:Scripting Reference]][[Category:Scripting Tutorials]]
{{Under Construction|author=[[User:Cbk1994|Chris Vimes]]}}
This article contains an incomplete list of helpful scripting snippets, mostly from the [http://forums.graalonline.com/ Graal Forums], but also from other websites. Please edit this page to add more links as you come across them.


This article contains an incomplete list of helpful scripting snippets, mostly from the [http://forums.graalonline.com/ 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 ==
== Control Structures ==
* [http://forums.graalonline.com/forums/showpost.php?p=1493584&postcount=7 For and foreach loop]
* [http://forums.graalonline.com/forums/showpost.php?p=1493584&postcount=7 For and foreach loop]
* [http://forums.graalonline.com/forums/showthread.php?t=76294 Using switch statements]


== Serverside and Clientside ==
== Serverside and Clientside ==
Line 19: Line 20:
* [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 38:
== 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 ==
* [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 ==
* [http://forums.graalonline.com/forums/showpost.php?p=1482284&postcount=4 Stefan's announcement of the addition of SQLite to GScript]
* [http://forums.graalonline.com/forums/showpost.php?p=1580831&postcount=2 SQL injection]
* [http://forums.graalonline.com/forums/showpost.php?p=1580831&postcount=2 SQL injection]
* [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 58:
* [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 ==
This list contains widely-used tools and code snippets that demonstrate a particular skill or technique. For a complete listing of scripts, see the [http://forums.graalonline.com/forums/forumdisplay.php?f=179 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 [http://forums.graalonline.com/forums/forumdisplay.php?f=179 the Code Gallery itself].


* [http://forums.graalonline.com/forums/showthread.php?t=134256319 SQL Explorer]
* [http://forums.graalonline.com/forums/showthread.php?t=134256319 SQL Explorer]
Line 63: Line 74:
* [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]
* [http://forums.graalonline.com/forums/showthread.php?p=1368875#post1368875 Callstack access]
* [http://forums.graalonline.com/forums/showpost.php?p=1670487&postcount=2 Download images from web to scriptfiles]


== Other Useful Resources ==
== Other Useful Resources ==

Latest revision as of 17:13, 10 March 2012

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

Object/Data Types and Structures

Player

GUIs

Client

DBNPC and File Data Storage

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 itself.

Misc

Other Useful Resources