lua:scripting:astarkspank
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua:scripting:astarkspank [2014/12/24 04:55] – vodur | lua:scripting:astarkspank [2014/12/24 05:19] (current) – removed vodur | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Place 100 random Astarks in luai: | ||
- | |||
- | <code lua>for i=1,100 do | ||
- | end | ||
- | </ | ||
- | |||
- | < | ||
- | |||
- | Name: [commander astar] | ||
- | |||
- | Area: [ 142] Special Gear | ||
- | |||
- | Act: [npc sentinel no_track trigger_always no_quest safe traveller] | ||
- | |||
- | Vnum: [ 4849] Sex: [male | ||
- | |||
- | Level: | ||
- | |||
- | Hitroll: | ||
- | |||
- | Hitpoints: | ||
- | |||
- | Armor: | ||
- | |||
- | Affected by: [dark_vision] | ||
- | |||
- | Form: [edible sentient biped mammal] | ||
- | |||
- | Parts: | ||
- | |||
- | Imm: | ||
- | |||
- | Res: [bash cold] | ||
- | |||
- | Vuln: [disease] | ||
- | |||
- | Off: | ||
- | |||
- | Size: [huge] | ||
- | |||
- | Start pos. | ||
- | |||
- | Default pos [standing] | ||
- | |||
- | Wealth: | ||
- | |||
- | Stance: | ||
- | |||
- | Short descr: Commander Astark | ||
- | |||
- | Long descr: | ||
- | |||
- | Commander Astark is here with a swollen behind | ||
- | |||
- | Description: | ||
- | |||
- | It's the BIRTHDAY BOY. | ||
- | |||
- | Comments: | ||
- | |||
- | Astark' | ||
- | |||
- | MOBPrograms for [ 4849]: | ||
- | |||
- | | ||
- | |||
- | | ||
- | |||
- | [ 0] 4849 TIMER 300 | ||
- | |||
- | [ 1] 4849 SOCIAL spank | ||
- | |||
- | </ | ||
- | <code lua> | ||
- | local bname=" | ||
- | local bcolor=" | ||
- | |||
- | local qpreward=29 | ||
- | -- try to make word out of obj and all letters in cont | ||
- | -- return true if doesn' | ||
- | -- and reward qp and destroy the letters | ||
- | function put_trigger( ch, cont ) | ||
- | local letters={} | ||
- | for i=1,#bname do | ||
- | letters[i]=bname: | ||
- | end | ||
- | |||
- | local items={ obj } | ||
- | for k,v in pairs(cont.contents) do | ||
- | if v.vnum==lettervnum then | ||
- | table.insert(items, | ||
- | end | ||
- | end | ||
- | |||
- | local used={} | ||
- | for k,v in pairs(items) do | ||
- | local iletter=string.match(v.name, | ||
- | for i=# | ||
- | if iletter==letters[i] then | ||
- | table.insert(used, | ||
- | table.remove(letters, | ||
- | break | ||
- | end | ||
- | end | ||
- | end | ||
- | |||
- | if # | ||
- | sendtochar( ch, "The letters merge together to form the word " | ||
- | " | ||
- | ch: | ||
- | |||
- | for k,v in pairs(used) do | ||
- | v:destroy() | ||
- | end | ||
- | return false | ||
- | end | ||
- | |||
- | return true | ||
- | end | ||
- | |||
- | function make_letter(l) | ||
- | if not(l.vnum == lettervnum) then | ||
- | error(" | ||
- | end | ||
- | |||
- | local letters={} | ||
- | for i=1,#bname do | ||
- | letters[i]=bname: | ||
- | end | ||
- | |||
- | local letter=letters[randnum(1, | ||
- | |||
- | l.name=" | ||
- | l.shortdescr=" | ||
- | l.description=" | ||
- | </ | ||
lua/scripting/astarkspank.1419396922.txt.gz · Last modified: 2014/12/24 04:55 by vodur