lua:scripting:examples:vodurbirthdayletters
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua:scripting:examples:vodurbirthdayletters [2014/07/07 18:45] – vodur | lua:scripting:examples:vodurbirthdayletters [2014/12/24 05:48] (current) – vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Place 300 random letters in luai: | ||
| + | <code lua> | ||
| + | loadscript(" | ||
| + | for i=1,300 do | ||
| + | make_letter(getrandomroom(): | ||
| + | end | ||
| + | </ | ||
| + | |||
| < | < | ||
| - | |||
| Area: [ 57] Aes Sedai Clan Area | Area: [ 57] Aes Sedai Clan Area | ||
| - | |||
| Vnum: [31450] | Vnum: [31450] | ||
| - | |||
| Type: [treasure] | Type: [treasure] | ||
| - | |||
| Level: | Level: | ||
| - | |||
| Wear flags: | Wear flags: | ||
| - | |||
| Extra flags: [nolocate] | Extra flags: [nolocate] | ||
| - | |||
| Material: | Material: | ||
| - | |||
| Condition: | Condition: | ||
| - | |||
| Weight: | Weight: | ||
| - | |||
| Cost: [ 0] | Cost: [ 0] | ||
| - | |||
| OPs: [ 0/ 5] | OPs: [ 0/ 5] | ||
| - | |||
| Short desc: birthday quest letter | Short desc: birthday quest letter | ||
| - | |||
| Long desc: | Long desc: | ||
| - | |||
| | | ||
| - | |||
| Notes: | Notes: | ||
| - | |||
| Used for birthday quest, progs will set the actual | Used for birthday quest, progs will set the actual | ||
| - | |||
| name, desc, etc. | name, desc, etc. | ||
| - | |||
| OBJPrograms for [31450]: | OBJPrograms for [31450]: | ||
| - | |||
| Number Vnum Trigger Phrase | Number Vnum Trigger Phrase | ||
| - | |||
| ------ ---- ------- ------ | ------ ---- ------- ------ | ||
| - | |||
| [ 0] 31450 put 100 | [ 0] 31450 put 100 | ||
| + | </ | ||
| - | </code> | + | < |
| + | -- birthday.lua | ||
| - | <code lua>local lettervnum=31450 | + | local lettervnum=31450 |
| local bname=" | local bname=" | ||
| local bcolor=" | local bcolor=" | ||
| Line 78: | Line 67: | ||
| end | end | ||
| - | if # | + | if # |
| sendtochar( ch, "The letters merge together to form the word " | sendtochar( ch, "The letters merge together to form the word " | ||
| " | " | ||
| Line 106: | Line 95: | ||
| l.name=" | l.name=" | ||
| l.shortdescr=" | l.shortdescr=" | ||
| - | l.description=" | + | l.description=" |
| + | end | ||
| </ | </ | ||
| - | |||
lua/scripting/examples/vodurbirthdayletters.1404758702.txt.gz · Last modified: 2014/07/07 18:45 by vodur