User Tools

Site Tools


lua:​old_vs_new

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lua:​old_vs_new [2015/04/09 22:03]
vodur created
lua:​old_vs_new [2015/04/09 22:06] (current)
vodur
Line 1: Line 1:
 +Before:
 +
 +Mprog 10501
 +
 +<​code>​
 +if qstatus 10500 $n>= 12
 +mob remember $n
 +say Hey $N. You have done a good job at helping to keep the vermin down.
 +smile $n
 +mob call 10245
 +else
 +if qstatus 10500 $n> 0
 +and qstatus 10500 $n <12
 +say You're doing a good job. Keep up the good work.
 +say Come back when you have killed some more rats.
 +reassure $n
 +else
 +say You need to kill at least a dozen rats before you can claim your reward.
 +endif
 +endif
 +</​code>​
 +
 +Mprog 10245
 +
 +<​code>​
 +* {WRandom QP Reward from Vermin Inspector{x
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 1
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 2
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 3
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 4
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 5
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 6
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 7
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 8
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 9
 +mob forget
 +else
 +if rand 10
 +mob qadvance $q 10500 -12
 +mob reward $q qp 10
 +mob forget
 +else
 +mob call 10245
 +endif
 +endif
 +endif
 +endif
 +endif
 +endif
 +endif
 +endif
 +endif
 +endif
 +</​code>​
 +
 +After
 +
 +Mprog 10501
 +
 <code lua> <code lua>
 -- {yVermin Inspector Reward Mprog{x -- {yVermin Inspector Reward Mprog{x
lua/​old_vs_new.txt · Last modified: 2015/04/09 22:06 by vodur