Little Release, (Npc Quest System)

smoochy boys on tour

Madman

LOMCN Veteran
Veteran
Jan 16, 2010
490
17
44
Not much but might help a few people out, Would prefer it if people changed name of the quests, as they are on my server.

Npc Were you start the quests from.

[@Main]
#IF
CHECKLEVELEX > 9
#SAY
Welcome <$USERNAME>, Here you can earn some gold, and Items. All\
you need to do Is complete a few quests for me.\
-\
<What Quests are there ?/@1> <Not at the moment thanks./@Exit>\
#ELSESAY
You need to be level 10 to start my quests, come back then.\
-\
<Exit./@Close>

[@1]
#SAY
Here are the quests I need them completed as soon as possible!\
-\
<Attack of the Oma's./@1a> <Poison Antidote./@1b> <Save Old Joe./@1c>\
-\
<Danger In The Woods!/@1d> <Journey To OmaWarrior./@1e> <Journey To Cathedral Village./@1f>\
-\
<Not at the moment thanks./@Exit>

[@1a]
#IF
CHECK [152] 1
#SAY
You have allready completed this quest <$USERNAME>, Or you are currently doing It\
You must defeat a GreatOma found North of the Village.\
-\
<Back./@1> <Exit./@Exit>
#ELSEACT
#IF
CHECKJOB Warrior
#ACT
GOTO @War1
BREAK

#IF
CHECKJOB Wizard
#ACT
GOTO @Wiz1
BREAK

#IF
CHECKJOB Taoist
#ACT
GOTO @Tao1
BREAK

[@War1]
#SAY
QUEST: Attack Of The Oma's
REWARD: Gold 1,500, LeatherBoots, SmallDcStone.\
-\
Ok leave the village through the north gate, and kill all the Oma's you\
come across. You will find a GreatOma after a short amount of time.\
Take him out and the reward will be yours!\
-\
<Il get to It!/@1aa> <Back./@1> <Exit./@Exit>

[@Wiz1]
#SAY
QUEST: Attack Of The Oma's
REWARD: Gold 1,500, LeatherBoots, SmallMcStone.\
-\
Ok leave the village through the north gate, and kill all the Oma's you\
come across. You will find a GreatOma after a short amount of time.\
Take him out and the reward will be yours!\
-\
<Il get to It!/@1aa> <Back./@1> <Exit./@Exit>

[@Tao1]
#SAY
QUEST: Attack Of The Oma's
REWARD: Gold 1,500, LeatherBoots, SmallScStone.\
-\
Ok leave the village through the north gate, and kill all the Oma's you\
come across. You will find a GreatOma after a short amount of time.\
Take him out and the reward will be yours!\
-\
<Il get to It!/@1aa> <Back./@1> <Exit./@Exit>

[@1aa]
#ACT
SET [151] 1
CLOSE
#ELSEACT
BREAK

[@1b]
#IF
CHECK [152] 1
#SAY
QUEST: Poison Antidote.
REWARD: Gold 2,500, LeatherBelt, Skeleton Pet x 1\
-\
Ok travel South of the village, following the path through the woods. You will soon\
come across some PoisonSpiders, Kill these until you obtain a PoisonBladder.\
Once you have this I will reward you with the Items straight Into your bag.\
-\
<Ok Il go now./@1bb> <Back./@1>
#ELSESAY
You must complete the Attack Of The Oma's Quest, before you can start this.\
-\
<Back./@1> <Exit./@Exit>

[@1bb]
#ACT
SET [153] 1
CLOSE
#ELSEACT
BREAK

And put this lot Into Qfunction.

[@OnKillMob(GreatOma5)]
#IF
CHECK [151] 1
CHECKJOB Warrior
#ACT
SET [151] 0
SET [152] 1
GIVE Gold 1500
GIVE LeatherBoots 1
GIVE SmallDcStone 1
#SAY
Very well done <$USERNAME>, I have placed your reward In your bag.\
You can now start the second quest when you return to Trinity.\
-\
<Take me yo Trinity./@Trin> <Close./@Exit>

#IF
CHECK [151] 1
CHECKJOB Wizard
#ACT
SET [151] 0
SET [152] 1
GIVE Gold 1500
GIVE LeatherBoots 1
GIVE SmallMcStone 1
#SAY
Very well done <$USERNAME>, I have placed your reward In your bag.\
You can now start the second quest when you return to Trinity.\
-\
<Take me yo Trinity./@Trin> <Close./@Exit>

#IF
CHECK [151] 1
CHECKJOB Taoist
#ACT
SET [151] 0
SET [152] 1
GIVE Gold 1500
GIVE LeatherBoots 1
GIVE SmallScStone 1
#SAY
Very well done <$USERNAME>, I have placed your reward In your bag.\
You can now start the second quest when you return to Trinity.\
-\
<Take me yo Trinity./@Trin> <Close./@Exit>
#ELSEACT
BREAK

[@OnKillMob(PoisonSpider5)]
#IF
CHECK [153] 1
#ACT
SET [153] 0
SET [154] 1
GIVE LeatherBelt 1
GIVE Gold 2500
RECALLMOB SkeletonFriend 1 1 120
#SAY
Another great job <$USERNAME>, As promised I have put your reward In your bag\
and summoned you a SkeletonFriend, keep him alive as he will come In handy!\
Trinity has another Quest for you so hurry along, this one has a nice reward.\
-\
<Take me yo Trinity./@Trin> <Close./@Exit>
#ELSEACT
BREAK

[@Trin]
#ACT
mapmove Start1 ?? ??
BREAK


Ok now I have done this by using the same mob twice, So I have a poisonspider that when killed wont do anything, but i also have poisonspider5 witch when killed will run the script.
 

excluded

Golden Oldie
Golden Oldie
May 31, 2006
555
4
125
n1 m8 -- i bet quite a few ppl will use this --- i try it on me test server l8r
 

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
dont take this wrong way, but that is terrible

DO NOT USE QFUNCTION FOR QUESTS, THATS NOT WOT ITS THERE FOR.

learn to use mapquest ...... thats wot its there for.

i hate to be harsh but seriously, preachers evn posted a well good guide for quests and ppl ignore it
 

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
294
They was I have done mine is using variables. So much better.
 

Madman

LOMCN Veteran
Veteran
Jan 16, 2010
490
17
44
dont take this wrong way, but that is terrible

DO NOT USE QFUNCTION FOR QUESTS, THATS NOT WOT ITS THERE FOR.

learn to use mapquest ...... thats wot its there for.

i hate to be harsh but seriously, preachers evn posted a well good guide for quests and ppl ignore it

Its a easy way that works, and it hardly ever runs the script any ways, as there are only a few mobs that run the script. And the rest are 'fake' mobs that do nothing. Yes it would be crap if it run the script on every mob you killed, but it dont so its all good.

Ive used it on a server b4 with 50-60 people online, and i had this setup on like 10 caves, and my server never lagged, crashed. So i cant see it being a problem.

I will also look into the mapquest, and see how hard, easy that is. so cheers 4 pointing me to that.
 

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
runnin the qfunction doesnt make the server lag, or crash really, it will just make it eventually not work, its not designed to be ran over ad over again and spamed by such things as mob killin

yes u could probably use it for like 1 mob thats killed every now and then for ur quests, but wot im saying is, all quests u should really do them via mapquest, be it 1 mob kill or 300 mob kil with variables or randoms

im just saying dont get used to doin it the wrong way, learn the mapquest way, its really not hard at all, and its the proper way

wots so hard about it really?

open mapquest, put in the maps, flag, mob name, and script to run, then in mapqust_def put the script.txt and inside put the same **** ud put in qfunction, really isnt that hard is it
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
what ben says is true Qfun will stop working after so many onmonkills
 

Madman

LOMCN Veteran
Veteran
Jan 16, 2010
490
17
44
ok cheers for the info ben, will re-do the script using variables and re-release it. Dont really sound that hard tbh :P