lua:scripting:examples:vodurbirthdayletters
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lua:scripting:examples:vodurbirthdayletters [2014/07/07 18:38] – created vodur | lua:scripting:examples:vodurbirthdayletters [2014/12/24 05:48] (current) – vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Place 300 random letters in luai: | ||
| <code lua> | <code lua> | ||
| + | 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: | ||
| + | | ||
| + | Notes: | ||
| + | Used for birthday quest, progs will set the actual | ||
| + | name, desc, etc. | ||
| + | OBJPrograms for [31450]: | ||
| + | Number Vnum Trigger Phrase | ||
| + | ------ ---- ------- ------ | ||
| + | [ 0] 31450 put 100 | ||
| + | </ | ||
| + | |||
| + | <code lua> | ||
| + | -- birthday.lua | ||
| + | |||
| local lettervnum=31450 | local lettervnum=31450 | ||
| local bname=" | local bname=" | ||
| Line 64: | Line 98: | ||
| end | end | ||
| </ | </ | ||
| - | |||
lua/scripting/examples/vodurbirthdayletters.1404758298.txt.gz · Last modified: 2014/07/07 18:38 by vodur