This is great guide very useful!
This maybe helpful, I had asked about random quests in the past I think in serverdv forum and this is how I think it work: (though I didn't finally do it, so some things I still don't know what is)
Random mob to kill:
AddRandKillInfo( level , monsterid, randvalue, randscope, exp , money )
AddRandKillInfo( 10 , 206 , 3 , 2 , 4028 , 4000 )
10 = Char level
206= id of mob to hunt (mini bee in this one)
3 = minimum number of mobs to hunt
2 = variation: minimun number + 2, quest can ask kill 3, 4, or 5 (3+2) mobs
4028: Quest gives 201g money reward at round 1 (roughly 4028/20) and each round increases by 40 (2 first digits)
4000: Quest give 200exp first round (4000/20) and increase 40 each round
Random item to collect:
AddRandGetItem( level, itemid, randvalue, randscope, exp, money )
AddRandGetItem( 10 , 4485 , 3 , 2 , 4028 , 4000 )
Same as above:
10 = Char level
4485= id of item to collect (Bee Wing)
3 = min number of items
2 = variation
4028 and 4000: money and exp as above
Random give item to other NPC:
AddRandSendInfo( level, npcid, exp, money )
AddRandSendInfo( 80 , 41 , 727500 , 86569 )
AddRandSendItem( level, item )
AddRandSendItem( 80 , 1850 )
80 = level
41 = npc ID
727500 and 86569 money and exp
1850 is parcel
Price (randomised)
SetRandPrizeItem( level )
SetRandPrizeItem( 10 )
AddRandPrizeItem( level, item1, itemdata1, item2, itemdata2, item3, itemdata3, item4, itemdata4 )
AddRandPrizeItem( 10 , 290 , 810 )
level 10, item reward 290 (husk armor) and itemdata 810 I am not sure what means
Cycling quests (quest complete every 10 rounds)
SetRandPrizeOdds( loopnum, odds, completenum )
SetRandPrizeOdds( 1, 100, 10 )
completenum (10) is the number of quests to complete a cycle. I don't know how the other two are cacluleted