lua:scripting:astarkspank
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| lua:scripting:astarkspank [2014/12/24 04:56] – 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 | ||
| - | getrandomroom(): | ||
| - | 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> | ||
| - | -- astark' | ||
| - | if trigtype==" | ||
| - | local tbl=loadtbl(" | ||
| - | |||
| - | local cnt = tbl[ch.name] or 0 | ||
| - | |||
| - | if cnt >= 27 then | ||
| - | say(" | ||
| - | emote(" | ||
| - | goto(" | ||
| - | return | ||
| - | end | ||
| - | |||
| - | cnt=cnt+1 | ||
| - | |||
| - | tbl[ch.name]=cnt | ||
| - | savetbl( " | ||
| - | |||
| - | if cnt < 27 then | ||
| - | emote(" | ||
| - | say(" | ||
| - | reward(ch, " | ||
| - | emote(" | ||
| - | goto(" | ||
| - | return | ||
| - | else | ||
| - | say(" | ||
| - | reward(ch, " | ||
| - | emote(" | ||
| - | goto(" | ||
| - | return | ||
| - | end | ||
| - | |||
| - | elseif trigtype==" | ||
| - | say(" | ||
| - | emote(" | ||
| - | goto(" | ||
| - | |||
| - | elseif trigtype==" | ||
| - | local tbl=getmobproto(4849).area: | ||
| - | | ||
| - | for k,v in pairs(tbl) do | ||
| - | sendtochar( mob, (" | ||
| - | end | ||
| - | end | ||
| - | </ | ||
lua/scripting/astarkspank.1419396997.txt.gz · Last modified: by vodur
