Quest NPC Problem Help please

Play Now

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
sorry couldnt fit it all on

if you know a lot about coding quests and such could you please help me?

got 2 different problems when trying to fix a quest

i couldnt click the npc and my friend had a problem were it said he already finished it
 
Last edited:

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
155
Hello, you know you can use the [ code ] [ / code ] tags and stick your code in-between them so it appears like
Code:
this
and
this
and
this
and
this
you should be able to fit it all on
 
Upvote 0

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
Code:
; ===================================
; Npc Def NPC File : OldMan-0
; Mountain Village Administrator
; -----------------------------------
; Name: DesperateHusband
; Job: 
; Map No: 0
; Pos 290
; Pos 611
; File name: *removed*
; Comment: Mountain Village Administrator

;==================================================
;

[@main]
#if
check [901] 0
#ACT
goto @main2
#elsesay
You Saved My Wife And I Am Eternally Grateful,\
But Please Go On To Do Greater Things!,\\
Code:
[@main2]
#if
check [900] 0
#say
You!?! Can You Please Help Me!! I Really Need Help,\
Please Im So Desperate My Wife Is Dying Please!\\
<What Do You Need!?!?/@goyes>\
<Sorry Your On Your Own/@exit>\\

[@goyes]
#say
Thank You!! Please I Need 3 Mushroom's,\
5 BrownChestNuts, 1 GoldChestnut and,\
5 (HP)DrugSmall!! Please Hurry!,\\
<Ill Be Quick!/@goyes2>\
<Sounds To Hard Sorry.../@exit>\\

[@goyes2]
#say
Please Hurry!
<Ok!/@exit>
#ACT
SET [900] 1
BREAK

[main3]
Do you have everything?,\\
<Yes/@goyes3>
<No/@exit>

[@goyes3]
#if
checkitem mushroom 3
checkitem brownchestnut 5
checkitem goldchestnut 1
checkitem (HP)DrugSmall 5
#ACT
goto @completequest
#ELSESAY
You Do Not Have Everything!,\
Please Hurry Im So Desperate!,\
<Ok Sorry/@exit>

[@completequest]
#SAY
Thank You So Much You Saved My Wifes Life,\
I Am Eternally Grateful I Don't Have Much,\
But Please Accept This Gift!,\\
#ACT
give gold 100000
CalcVar Human Reputation + 250
SaveVar Human QuestPoint Integral.txt
BREAK
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
Code:
[@main]
#if
check [901] 0
#ACT
goto @main2
#elsesay
You Saved My Wife And I Am Eternally Grateful,\
But Please Go On To Do Greater Things!,\\

[@main2]
#if
check [900] 0
#say
You!?! Can You Please Help Me!! I Really Need Help,\
Please Im So Desperate My Wife Is Dying Please!\\
<What Do You Need!?!?/@goyes>\
<Sorry Your On Your Own/@exit>\\
#ELSEACT
GOTO @main3

[@goyes]
#say
Thank You!! Please I Need 3 Mushroom's,\
5 BrownChestNuts, 1 GoldChestnut and,\
5 (HP)DrugSmall!! Please Hurry!,\\
<Ill Be Quick!/@goyes2>\
<Sounds To Hard Sorry.../@exit>\\

[@goyes2]
#say
Please Hurry!
<Ok!/@exit>
#ACT
SET [900] 1
BREAK

[main3]
Do you have everything?,\\
<Yes/@goyes3>
<No/@exit>

[@goyes3]
#if
checkitem mushroom 3
checkitem brownchestnut 5
checkitem goldchestnut 1
checkitem (HP)DrugSmall 5
#ACT
goto @completequest
#ELSESAY
You Do Not Have Everything!,\
Please Hurry Im So Desperate!,\
<Ok Sorry/@exit>

[@completequest]
#SAY
Thank You So Much You Saved My Wifes Life,\
I Am Eternally Grateful I Don't Have Much,\
But Please Accept This Gift!,\\
#ACT
SET [901] 1
give gold 100000
CalcVar Human Reputation + 250
SaveVar Human Reputation Integral.txt
BREAK

That should work. Were a few things wrong with it:

Forgot an ELSE statement on main2.
Forgot to set the 901 flag on completion.
Trying to save the wrong Variable.

Seemed a strange way of doing it to me, but each to their own. :P

p
 
Upvote 0

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
ok still the same problem
i cant click the npc after he tells me to hurry

suggestions?
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
Re-worked it a bit, try:

Code:
[@main]
#if
check [901] 1
#say
You Saved My Wife And I Am Eternally Grateful,\
But Please Go On To Do Greater Things!,\\
#ACT
BREAK
#if
check [900] 1
#SAY
Do you have everything?,\\
I Need 3 Mushroom's,\
5 BrownChestNuts, 1 GoldChestnut and,\
5 (HP)DrugSmall!! Please Hurry!,\\
<Yes/@goyes3>
<No/@exit>
#ACT
BREAK
#ELSESAY
You!?! Can You Please Help Me!! I Really Need Help,\
Please Im So Desperate My Wife Is Dying Please!\\
<What Do You Need!?!?/@goyes>\
<Sorry Your On Your Own/@exit>\\

[@goyes]
#ACT
SET [900] 1
#say
Thank You!! Please I Need 3 Mushroom's,\
5 BrownChestNuts, 1 GoldChestnut and,\
5 (HP)DrugSmall!! Please Hurry!,\\
<Ok!/@exit>

[@goyes3]
#if
checkitem mushroom 3
checkitem brownchestnut 5
checkitem goldchestnut 1
checkitem (HP)DrugSmall 5
#ACT
goto @completequest
#ELSESAY
You Do Not Have Everything!,\
Please Hurry Im So Desperate!,\
<Ok Sorry/@exit>

[@completequest]
#SAY
Thank You So Much You Saved My Wifes Life,\
I Am Eternally Grateful I Don't Have Much,\
But Please Accept This Gift!,\\
#ACT
SET [901] 1
TAKE mushroom 3
TAKE brownchestnut 5
TAKE goldchestnut 1
TAKE (HP)DrugSmall 5
give gold 100000
CalcVar Human Reputation + 250
SaveVar Human Reputation Integral.txt
BREAK


EDIT:
Forgot to say, make sure you reset your characters flags before trying (use GMCommand @setflag <charname> 900 0).
 
Last edited:
Upvote 0

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
ok ill try that but atm i cant cus the guy whos testing server with us is offline but i will try when hes back thanks for help
 
Upvote 0