Using random kill count

Doddsy

LOMCN Veteran
Veteran
Loyal Member
Aug 2, 2005
456
2
45
Hartlepool
How do i set up a random kill count for a quest plz ??
also can i set up 1 so i only have to kill 1 time and quest complete without using variables if so
can sum 1 explain plz
ALL hlp apreciated and sorry for being a noob yet again LOL
 
Last edited:

Lucafer

LOMCN Veteran
Veteran
May 15, 2008
419
1
45
Newbury,Berks
do u mean sumthing like this:
[@main]
#IF
CheckVar Human KillCount = 1
#ACT
BREAK
#ACT
CalcVar Human KillCount + 1
SaveVar Human KillCount Integral.txt
BREAK
#ELSEACT
BREAK

[@finish]
#ACT
SET [101] 0
CalcVar Human KillCount + 1
SaveVar Human KillCount Integral.txt
ADDNAMELISTblahComplete.txt
#SAY
You have killed enough mobname to finish the quest. Return to the NPC for you \
prize. \ \
<Exit/@exit>
 
Upvote 0

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
105
All in Qfunction, is easy.
For a random kill of the same monster add;
[@ONKILLMOB(MobName)]
#IF
CHECK [301] 1 <-- checks if they completed NPC's quest.
#ACT
break
#ELSEACT
goto @rkc01
[@rkc01]
#IF
CHECK [300] 1 <--- checks to see that they've accepted NPC's quest
RANDOMEX 30 = 7 <--the random chance it will work. raise 30 higher if you want less of a chance.
#ACT
Set [300] 0 <-- resets accpted quest flag.
Set [301] 1 <--- marks quest done so NPC knows to give prize.
MESSAGEBOX "You have slain the beast."
break
#ELSEACT
break

Do the same as above for single kill, just remove the randomex bit.
 
Upvote 0

evildan

LOMCN Veteran
Veteran
Aug 8, 2004
310
3
45
Dartford/Kent
All in Qfunction, is easy.
For a random kill of the same monster add;
[@ONKILLMOB(MobName)]
#IF
CHECK [301] 1 <-- checks if they completed NPC's quest.
#ACT
break
#ELSEACT
goto @rkc01
[@rkc01]
#IF
CHECK [300] 1 <--- checks to see that they've accepted NPC's quest
RANDOMEX 30 = 7 <--the random chance it will work. raise 30 higher if you want less of a chance.
#ACT
Set [300] 0 <-- resets accpted quest flag.
Set [301] 1 <--- marks quest done so NPC knows to give prize.
MESSAGEBOX "You have slain the beast."
break
#ELSEACT
break

Do the same as above for single kill, just remove the randomex bit.


Never knew about that random command, thanks alot m8. Can try out a few more things now :D
 
Upvote 0

Doddsy

LOMCN Veteran
Veteran
Loyal Member
Aug 2, 2005
456
2
45
Hartlepool
ok so im using this in my npc
[@main]
#IF
checkjob warrior
#ACT
goto @main1
#ELSEACT
goto @wrong

[@main1]
Yo i am the great warrior and have the abitlty to /
unlock the power of the 9 key /
<u want to know how?/@main2>
<i have done your quest/@comp>

[@main2]
#Ok i see you do want to use key 9 i will help /
you if you help me i just need you to kill a few /
zoomakings for me
< do you acept this quest/@yes>/

[@yes]
#ACT
set [300] 1
#say go kill them then

[@comp]
#IF
CHECK [301] 1
#SAY n1 u can now use 9 key

[@wrong]
#SAY
Dude i help warriors and warriors only
and this in Q function like you said
[@ONKILLMOB zoomaking]
#IF
CHECK [301] 1
#ACT
break
#ELSEACT
goto @rkc01
[@rkc01]
#IF
CHECK [300] 1
RANDOMEX 30 = 3
#ACT
Set [300] 0
Set [301] 1
MESSAGEBOX "You have done me proud come get your prize."
break
#ELSEACT
break
how can i change this so it can only be done the 1 time i keep trying but im just geting realy confused
 
Upvote 0

Lucafer

LOMCN Veteran
Veteran
May 15, 2008
419
1
45
Newbury,Berks
[@main]
#IF
check [300] 0 <---think u need to add these so it checks to c if uve done
check [301] 0
checkjob warrior
#ACT
goto @main1
#ELSEACT
goto @wrong

[@main1]
Yo i am the great warrior and have the abitlty to /
unlock the power of the 9 key /
<u want to know how?/@main2>
<i have done your quest/@comp>

[@main2]
#Ok i see you do want to use key 9 i will help /
you if you help me i just need you to kill a few /
zoomakings for me
< do you acept this quest/@yes>/

[@yes]
#ACT
set [300] 1
#say go kill them then

[@comp]
#IF
CHECK [301] 1
#SAY n1 u can now use 9 key

[@wrong]
#SAY
Dude i help warriors and warriors only

think thats how its done
 
Upvote 0

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
[@ONKILLMOB (zoomaking)]
#IF
CHECK [301] 1
#ACT
break
#ELSEACT
goto @rkc01
[@rkc01]
#IF
CHECK [300] 1
RANDOMEX 30 = 3
#ACT
Set [300] 0
Set [301] 1
MESSAGEBOX "You have done me proud come get your prize."
break
#ELSEACT
break

Mob has to be in brackets mate.
 
Upvote 0