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:44] – vodur | lua:scripting:examples:vodurbirthdayletters [2014/12/24 05:48] (current) – vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | < | + | Place 300 random letters in luai: |
| + | < | ||
| + | loadscript(" | ||
| + | for i=1,300 do | ||
| + | make_letter(getrandomroom(): | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Area: [ 57] Aes Sedai Clan Area | ||
| + | Vnum: [31450] | ||
| + | Type: [treasure] | ||
| + | Level: | ||
| + | Wear flags: | ||
| + | Extra flags: [nolocate] | ||
| + | Material: | ||
| + | Condition: | ||
| + | Weight: | ||
| + | Cost: [ 0] | ||
| + | OPs: [ 0/ 5] | ||
| + | Short desc: birthday quest letter | ||
| + | Long desc: | ||
| + | Birthday quest letter | ||
| + | Notes: | ||
| + | Used for birthday quest, progs will set the actual | ||
| + | name, desc, etc. | ||
| + | OBJPrograms for [31450]: | ||
| + | Number Vnum Trigger Phrase | ||
| + | ------ ---- ------- ------ | ||
| + | [ 0] 31450 put 100 | ||
| </ | </ | ||
| - | </font> | + | <code lua> |
| + | -- birthday.lua | ||
| - | <code lua>local lettervnum=31450 | + | local lettervnum=31450 |
| local bname=" | local bname=" | ||
| local bcolor=" | local bcolor=" | ||
| Line 37: | 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 65: | Line 95: | ||
| l.name=" | l.name=" | ||
| l.shortdescr=" | l.shortdescr=" | ||
| - | l.description=" | + | l.description=" |
| + | end | ||
| </ | </ | ||
| - | |||
lua/scripting/examples/vodurbirthdayletters.1404758668.txt.gz · Last modified: 2014/07/07 18:44 by vodur