Set STDMode to 31 and anicount to differeing numbers (each number has to have a unique anicount from 1 to 30 as far as I can remember).
Then, in the C:\Mirserver\Mir200\Envir\market_def\QFunction-0.txt type an NPC code using the following commands:
Code:
[@StdModeFunc1] for item with Anicount 1
[@StdModeFunc2] for item with Anicount 2
etc etc
Here's an example I made:
Code:
[@StdModeFunc1]
#IF
CHECKSLAVECOUNT < 5
#ACT
goto @summon1
#ELSEACT
goto @error1
[@summon1]
#ACT
recallmob FeliceHunter 0
#SAY
You have summoned a Felice Hunter!\ \
<Exit/@exit> \
[@error1]
#ACT
give SummonFelice 1
#SAY
You cannot summon any more creatures...\ \
<Exit/@exit> \
[@StdModeFunc2]
#IF
CHECKSLAVECOUNT < 5
#ACT
goto @summon2
#ELSEACT
goto @error2
[@summon2]
#ACT
recallmob Ogre 0
#SAY
You have summoned an Ogre!\ \
<Exit/@exit> \
[@error2]
#ACT
give RecallOgre 1
#SAY
You cannot summon any more creatures...\ \
<Exit/@exit> \