skip navigation

Welcome, Guest [log in · register]
Cwn Annwn
Search
Page 1 of 1 1
Akoravin I don’t know if this will work in zmud, and you can also change the name, contents, and number of the nosac vars, but here is what I use:

#ALIAS {addsac} {#VA {sac} {1};#VA {sacrifice} {%additem(%0,@sacrifice)}} {autosac}

#ALIAS {sacall} {#VA {duplicate} {1};#IF (%numitems(@sacrifice) > 0) {#VA {sacrifice} {%additem("{}",@sacrifice)};#LOO %eval(%numitems(@sacrifice)-1) {#IF (%item(@sacrifice,%{i}) == %item(@sacrifice,%eval(%{i}+1))) {#VA {duplicate} {%eval(@duplicate+1)}} {#IF (@duplicate > 1) {drop all.~"%item(@sacrifice,%{i})~";} {drop ~"%item(@sacrifice,%{i})~"};#LOO @duplicate {sac ~"%item(@sacrifice,%eval(%{i}-@duplicate+%{j}))~"};#VA {duplicate} {1}}}};#UNVA {sacrifice};#UNVA {duplicate}} {autosac}

#VA {nosac_aroxa} {"a blue potion in a small glass beaker"|"a dusty old book"|"a glass jar"|"a pyramidial piece of rock on a cord"|"a perfumed handkerchief"|"a silver tuning fork"|"a sword named 'Dragonslayer'"} {"a blue potion in a small glass beaker"|"a dusty old book"|"a glass jar"|"a pyramidial piece of rock on a cord"|"a perfumed handkerchief"|"a silver tuning fork"|"a sword named 'Dragonslayer'"} {autosac}

#VA {nosac_gear} {a beautiful amulet made of white marble|a bracelet made of white marble|a fused breastplate|a guard's helm|a holy ring of Maradas|a lumberjack's axe|a pair of copper armplates|a pair of copper gauntlets|a pewter sextant|a plaque belt|a portable hole|a red collar|a ring of shielding|a sand-colored ring|a serrated spear|a sordiculum whirlbat|a steel sextant|a white shield of the holy|a wizard's cloak|an alligator tooth necklace|golden leg plates|some snake skin boots|the Necronomicon|a war banner} {a beautiful amulet made of white marble|a bracelet made of white marble|a fused breastplate|a guard's helm|a holy ring of Maradas|a lumberjack's axe|a pair of copper armplates|a pair of copper gauntlets|a pewter sextant|a plaque belt|a portable hole|a red collar|a ring of shielding|a sand-colored ring|a serrated spear|a sordiculum whirlbat|a steel sextant|a white shield of the holy|a wizard's cloak|an alligator tooth necklace|golden leg plates|some snake skin boots|the Necronomicon|a war banner} {autosac}

#VA {nosac_keep} {a blood crystal|a bouncy ball|a capsulated sprig of heather|a chipped orb of Vandemaar|a clear focusing crystal|a dark blue nightshade mushroom|a diamond|a didactic parchment|a goblin ear|a heavy, leatherbound bookcover|a jasper gemstone|a lottery ticket|a maleficarum root|a nightshade mushroom|a page of parchment|a portable glassware armoire|a postage stamp|a silverthorn plant|a small crystal|a sprig of heather|a velvet-lined toybox|a vial of runestone powder|an enchanted match|an ice bola|an orb of Vandemaar} {a blood crystal|a bouncy ball|a capsulated sprig of heather|a chipped orb of Vandemaar|a clear focusing crystal|a dark blue nightshade mushroom|a diamond|a didactic parchment|a goblin ear|a heavy, leatherbound bookcover|a jasper gemstone|a lottery ticket|a maleficarum root|a nightshade mushroom|a page of parchment|a portable glassware armoire|a postage stamp|a silverthorn plant|a small crystal|a sprig of heather|a velvet-lined toybox|a vial of runestone powder|an enchanted match|an ice bola|an orb of Vandemaar} {autosac}

#VA {nosac_lasler} {"a bit of faerie dust"|"a blue jewel"|"a green mushroom"|"a navy blue scroll"|"a partially-burned torch"|"a purple flower"|"a rag doll"|"a red jewel"|"a set of fortune bones"|"a small golden leaf"|"a small green leaf"|"a small red leaf"|"a strawberry"|"a torch"|"a wood and iron spade"|"the portrait of a pretty human girl"} {"a bit of faerie dust"|"a blue jewel"|"a green mushroom"|"a navy blue scroll"|"a partially-burned torch"|"a purple flower"|"a rag doll"|"a red jewel"|"a set of fortune bones"|"a small golden leaf"|"a small green leaf"|"a small red leaf"|"a strawberry"|"a torch"|"a wood and iron spade"|"the portrait of a pretty human girl"} {autosac}

#VA {nosac_loot} {"a giant ant's thorax"} {"a giant ant's thorax"} {autosac}

#VA {nosac_nosac} {a 20 Building Points voucher|a blue orb|a burnished silver collar|a crafted ring band|a crystal heart pendant|a cut gemstone|a coffin lid|a delicate jewelry box|a pair of rather generic-looking boots|a pair of rather generic-looking gloves|a pair of rather generic-looking greaves|a rather generic-looking brassard|a rather generic-looking breastplate|a rather generic-looking helmet|a rather generic-looking sword|a rather generic-looking shield|a Remorhaz scale|a pendant of meditation} {a 20 Building Points voucher|a blue orb|a burnished silver collar|a crafted ring band|a crystal heart pendant|a cut gemstone|a coffin lid|a delicate jewelry box|a pair of rather generic-looking boots|a pair of rather generic-looking gloves|a pair of rather generic-looking greaves|a rather generic-looking brassard|a rather generic-looking breastplate|a rather generic-looking helmet|a rather generic-looking sword|a rather generic-looking shield|a Remorhaz scale|a pendant of meditation} {autosac}

#VA {nosac_verity} {"a black tourmaline"} {"a black tourmaline"} {autosac}

#TRIGGER {^You take (*).$} {#VA {sac} {0};#IF (%match(%1,"pile of gold")=0 && %match(%1,"gold coins")=0 && %match(%1,"a stamp")=0 && %match(%1,"a decorative plate")=0 && %match(%1,"from a small canvas bag")=0 && %match(%1,"from a somber-looking incinerator")=0 && %match(%1,"from a portable hole")=0 && %match(%1,"a token for")=0 && %match(%1,"a manual of")=0 && %match(%1,"from a leather backpack")=0 && %match(%1,"from a large trunk")=0 && %match(%1,"from a tiny trunk")=0 && %match(%1,"plushie")=0) {#IF (%match(%1,"(%d) of (*) from the corpse of",num,item)>0) {#IF @isValidItem(@item) {#LOO @num {addsac @item}}} {#IF (%match(%1,"(*) from the corpse of",item)!=0) {#IF @isValidItem(@item) {addsac @item}} {#IF (%match(%1,"(%d) of (*)",num,item)!=0) {#IF @isValidItem(@item) {#LOO @num {addsac @item}}} {#IF (@isValidItem(%1)) {addsac %1}}}}};#UNVA num;#UNVA item;#UNVA sac} {autosac}

#FUNCTION isValidItem($item) {#RETURN !(%ismember($item,@nosac_aroxa) || %ismember($item,@nosac_gear) || %ismember($item,@nosac_keep) || %ismember($item,@nosac_lasler) || %ismember($item,@nosac_loot) || %ismember($item,@nosac_nosac) || %ismember($item,@nosac_verity))} {autosac}


To use this class, kill stuff or get stuff off the ground, and then type "sacall" to sacrifice all the stuff you collected except that which you specified in the no_sac vars. You may have to modify the trigger for your containers.

Edited by Akoravin on Tue, 09 Nov 2010 06:21:41 +0000.
Page 1 of 1 1