Quest guide/help

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
has ne1 got a link to a good guide on how to add quests? or to just quickly explain here?

basically how it works... wot goes where etc...

how would u make a npc and quest that asks u to kill say 100 hens, then moves onto next part...

i know how to do the NPC part eg.

[@main]
#IF
check [200] 1
#ACT
goto @main2
#ELSEYSAY
Hi there, so u wanan do 1 of my quests, i need u to kill 100 hens for me.\
<Ok Sure!/@sure>

[@main2]
Gratz u have completed my quest... ur amazing.


thing im stuck on is where/how do i make the script to check if uve killed 100 hens and when u have killed 100 hens it pops up with a box

im kinda guessin u put the little script in qfunction? but wot would u put?

thx :eek:
 

Zidio

Banned
Banned
Golden Oldie
Nov 2, 2005
1,285
1
125
LOMCN
Im not 100% sure and no 1 has replyed yet so. I am pretty sure its do to with flags so search up npc flags bud you should find something im sure iv seen it posted up before.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
well i found a guide here

http://www.lomcn.co.uk/forum/showthread.php?t=19220&highlight=NPC+guide

but basically, ive put this into my mapquest.txt

0 [999] 1 BlackMaggot * Q999

and put a txt file called Q999 in \Envir\MapQuest_def
that says this

[@main]
#IF
check [999] 1
#ACT
goto @killed_mob

[@killed_mob]
#SAY
Well done, you killed mob X\
Click next to get your prize
<Next../@getprize>

[@getprize]
#IF
check [998] 0
#ACT
give benedictionoil 1
set [998] 1
#ELSESAY
You have already had your prize\\
<Exit/@exit>


yet i killa blackmaggot on map 0 (bw) and i dont get any pop up msg? lol
 
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
intergal is what you need to look at. nothing to do with flags as such.

EDIT- because you dont have the information in the map info.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
still aint workin, put this into map info

CHECKQUEST(Q999)

killed the mob... still no pop up msg ~.~
 
Upvote 0

KnightRider

Dedicated Member
Dedicated Member
Oct 30, 2003
107
1
45
maybe somethink like this

[@onkillmob(MOBNAME)]
#SAY
You kill a hen


in your QFunction.

not sure if it works for td files
 
Upvote 0

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
Probably best off using variables, although its such a volitile system the scripting has to be perfect everywhere. Search and you should find a guide on one of the posts asking about them. :)
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
figured out the qfunction stuff with @onkillmob, but thats only with random, which is 1 of the quests i wanted, however... i also want where u had 2 kill a certain amount

no offense newhope, but postin tellin me to search isnt rly helpin is it? lol
 
Upvote 0

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
no offense newhope, but postin tellin me to search isnt rly helpin is it? lol

Yes it is.
Many of the questions you ask have been answered countless times in many different ways. Its not other peoples fault if your too lazy to use the search function. :agree:

Most of the questions i've had i'd found answers form LOMCN by using the search function. Anything i can't find i make a thread. Theres also the one thread you'll ever need which could of answered some of your queries.

I searched and i found a guide for varibales in the 3rd thread.... http://www.lomcn.co.uk/forum/showthread.php?t=52907&highlight=variables
 
Upvote 0

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
if u dont wanna help, and u just wanna flame me... dont post at all?

Lol.. Im sorry not being a ass-kiss means im flaming you.
Im all for helping, but all you do is post thread after thread without using the search function. In the past people have been banned for constant question threads which have been answered elsewhere. Its lazyness when you can be bothered to search. Its a shame moderator presence isn't what it used to be.

Seaching is the most productive thing you could do on this forum for help, as theres about a 95% chance the problem you have has been solved before, or the question you have has been answered before.
Its not hard to type a key word and click a button.

I did help.
I suggested you use the search function for quicker answers to your problems.
I also posted what you needed after i did a SEARCH.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
i did search, and i came up with some answers, i didnt see wot harm makin a post would do either

after all this is a HELP section, im after help, so i made a post

if u dont wanna help w/o bein a twat just dont help, i rly couldnt care less

u make it sound like i spam for post count, all my threads could be deleted i dont care... i post for help... and ppl help, im grateful.

ur just bein an arse about it tho.
 
Upvote 0

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
I was helping. You just took it the wrong way, arrogance can do that.
All i was saying is searching is your best bet, even though you think otherwise. :)
 
Last edited:
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
In my earlier post in the thread i said intergal for some reason when yes i did mean variables lol.

[@onkillmob(MOBNAME)]

could use that command also to do it. Wouldnt be all that easy though.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
yer ive alrdy used [@onkillmob]

thing is wot do u put so that it gives a msg after u kill 100 / 200 / 300 etc

atm ive got it as

#IF
random 100
#ACT
set [100] 1

or w/e


i wanan change random a certain amount, wot would u put?
 
Upvote 0

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
yer ive alrdy used [@onkillmob]

thing is wot do u put so that it gives a msg after u kill 100 / 200 / 300 etc

atm ive got it as

#IF
random 100
#ACT
set [100] 1

or w/e


i wanan change random a certain amount, wot would u put?

I have a quest system that once a mob is killed it will add it to a count of how many mobs that user has killed... for example everytime you kill a Hen it will say 'You have Killed 4/20 Hens'.

However for this to work you'll need to do it via variables.
The guide i posted a link to on that thread shows you how to set up a basic variable which will need the user to kill a certain amount of mobs to complete the quest. Practice with the beginner quest it provides for you, then altar certain parts to fit the quest you want to make.

To get the message everytime you kill a mob will require you to check the variable you make, everytime you kill a mob through the @onkillmob(mobname) function which goes in your Q-Function.txt file.

Goodluck. :agree:
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
tbh i think i prefer the random atm, it is a lot easier also.

but least i got a thread and link if i want a proper count
 
Upvote 0

lewis

LOMCN Veteran
Veteran
Jan 15, 2004
327
0
43
Southampton
you still trying to script this bon? i have some scripts i cud send you for an example, i have bug fixed most of it, just gives u basic idea of what needs doing, then im sure you can sort the rest from there.
 
Upvote 0