TD [DM2] Making an NPC COUNT!?

Mu online season 21 - grand opening

DavidShaw

LOMCN Member
Untrusted Member
Veteran
Nov 3, 2007
377
4
44
Hello again ..

In my quest to update OldSkool I know i request some stuff that seems ridiculous ...

Now I am wondering if it is possible to make an NPC COUNT???

For example ...

I want to make an npc that will trade 10 gold for a woodenstick

But ONLY to the first 3 people ...


Is this possible? :P:P:P

I been thinking of ways and ways :S but it is wracking my brain :S


Thanks in advance :P
 

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
155
newbury
could do something like

[@main]
#if
random 3
#act
@goto nextpart
#elseact
@goto @sorryfull

just an example
 
Upvote 0

Prai

Most Importantest
VIP
Sep 10, 2004
2,616
68
275
It deffo works, It worked on LOCMS server, A quest for a clear ring and as soon as its gone, the npc tells you.

So as soon as you click the npc after that. it pops up saying blah blah blah this quest has been completed by (Name).

Ask the owner of LOCMS.
 
Upvote 0

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
105
Hows about, you add everybody who uses it to a namelist, then also check the position they are at in the list using CHECKNAMELISTPOSITION.

So for example:
[@part1]
#ACT
addnamelist whatever.txt
goto @part2

[@part2]
#IF
checknamelistposition whatever.txt 1
#ACT
give ......
#ELSEACT
goto @part3

[@part3]
#IF
checknamelistposition whatever.txt 2
#ACT
give ......
#ELSEACT
goto @part4

[@part4]
#IF
checknamelistposition whatever.txt 3
#ACT
give ......
#ELSESAY
Nothing for you, go home...

I can't see why that wouldn't work. But as has been said if you need something more complicated use global variables.
 
Upvote 0