npc help. M2Server says Quest problem

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
This = the m2server error.

Code:
[1/02/2009 12:36:56] Quest problem: CHECKITEM SpecialNewbStone Row:25 FileName: .\Envir\Npc_def\Quests-1Garden.txt

This is the npc script i made
Code:
[@newb]
#SAY
So your new to the real of Killswitch,\
Ive got just the thing for you to do.\
Get a SpecialNewbStone in Newbiecave. Come back\
to me and i shall give you a reward.\
<Next/@newbnext>
[@newbnext]
#SAY
Hello have you come back with the SpecialNewbStone?\
<Yes/@newbfini> <No/@newbno>\
[@newbfini]
#IF
#ACT
CHECKITEM SpecialNewbStone
#SAY
Continue this quest by clicking <here/@newbfinished>\
#ELSEACT
GOTO @newbno
[@newbno]
You do not have the SpecialNewbStone!\

[@newbfinished]
TAKEITEM SpecialNewbStone
#SAY
Congratulations, You have found the SpecialNewbStone.\
Here's your reward.\
#ACT
CHANGELEVEL 20
 
Last edited:

Grinch

Dedicated Member
Dedicated Member
Dec 30, 2008
115
0
43
U have some mistake here:
[@newb]
#SAY
So your new to the real of Killswitch,\
Ive got just the thing for you to do.\
Get a SpecialNewbStone in Newbiecave. Come back\
to me and i shall give you a reward.\
<Next/@newbnext>
[@newbnext]
#SAY
Hello have you come back with the Newbiekit?\
<Yes/@newbfini> <No/@newbno>\
[@newbfini]
#IF
#ACT
CHECKITEM SpecialNewbStone
#SAY
Continue this quest by clicking <here/@newbfinished>\
#ELSEACT
#SAY
You do not have the SpecialNewbStone!\
[@newbfinished]
TAKEITEM SpecialNewbStone
#SAY
Congratulations, You have found the SpecialNewbStone.\
Here's your reward.\
#ACT
CHANGELEVEL 20

Must to look like this 1:

[@newb]
#SAY
So your new to the real of Killswitch,\
Ive got just the thing for you to do.\
Get a SpecialNewbStone in Newbiecave. Come back\
to me and i shall give you a reward.\
Have you one Newbiekit?\
<Yes/@newbfini> <No/@exit>\

[@newbfini]
#IF
#ACT
CHECKITEM SpecialNewbStone
#SAY
Continue this quest by clicking <here/@newbfinished>\
#ELSESAY
You do not have the SpecialNewbStone!\

[@newbfinished]
TAKEITEM SpecialNewbStone
#SAY
Congratulations, You have found the SpecialNewbStone.\
Here's your reward.\
#ACT
CHANGELEVELEX 20

Are very simple!!
 
Upvote 0

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
Now it brings up this,

Code:
[1/02/2009 12:59:41] Quest problem: CHECKITEM SpecialNewbStone Row:23 FileName: .\Envir\Npc_def\Quests-1Garden.txt
[1/02/2009 12:59:41] Quest problem: You do not have the SpecialNewbStone!\ Row:27 FileName: .\Envir\Npc_def\Quests-1Garden.txt
[1/02/2009 12:59:41] Quest problem: CHANGELEVELEX 20 Row:36 FileName: .\Envir\Npc_def\Quests-1Garden.txt

its only Row23, where i dont know what to do. Ive fixed Row 27 and 36.
 
Upvote 0

iJam

To the rhythm
VIP
Oct 8, 2007
1,522
99
195
London
[@newb]
#ACT
Checklevel = 20
#ACT
goto @soory
#ELSEACT
goto @Newb1

[@Soory]
#SAY
Sorry you are to high for my challange\
<oki bye/@exit>\

[newb1]
#SAY
So your new to the real of Killswitch,\
Ive got just the thing for you to do.\
Get a SpecialNewbStone in Newbiecave. Come back\
to me and i shall give you a reward.\
<Next/@newbnext>\

[@newbnext]
#SAY
Hello have you come back with the SpecialNewbStone?\
<Yes/@newbfini> <No/@newbno>\
[@newbfini]
#IF
CHECKITEM SpecialNewbStone 1
#ACT
goto @newbfinished
#ELSEACT
goto @newbno

[@newbno]
#SAY
You do not have the SpecialNewbStone!\
<ill get it now/@exit>\

[@newbfinished]
#ACT
TAKEITEM SpecialNewbStone 1
CHANGELEVEL = 20
#SAY
Congratulations, You have found the SpecialNewbStone.\
Here's your reward.\
<Thanks/@exit>\
 
Last edited:
Upvote 0

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
I simplified the script a little, still a couple bugs, no errors in m2server though.
When click the npc it shows [@newb]. So there are 2 options, I've found the SpecialNewbStone and I'll go for it !. When i click I've found the SpecialNewbStone without the stone in the bag, screen just stays same. (should exit here). With the stone in my bag it gos to Continue this quest by clicking here.
When i do so, it goes to Congratulations, You have found the SpecialNewbStone.\
Here's your reward.
. Here the npc should have taken SpecialNewbStone and set the character level to 20. But that doesnt happen, i also get some error in M2Server from the CHANGELEVEL command. Here's the simplified script & M2Server error information.

DiamondM2 Info:
Code:
[1/02/2009 13:21:49] [QuestAction]  Command:CHANGELEVEL NPC:Quests Map:1Garden(19:23) Param1:20 Param2: Param3: Param4: Param5: Param6:

Npc script:
Code:
[@main]

#SAY
Welcome <$USERNAME>,\
What quest's would you like to do?\
<Newbie Quest/@newb>\
<BoneElite Quests/@bone>\
<WoomaTaurus Quest/@wt>\
<ZumaTaurus Quests/@zuma>\
<Move to the next page/@next1>\

[@newb]
#SAY
So your new to the real of Killswitch,\
Ive got just the thing for you to do.\
Get a SpecialNewbStone in Newbiecave. Come back\
to me and i shall give you a reward.\
<I've found the SpecialNewbStone/@newbfini>\
<I'll go for it !/@exit>\

[@newbfini]
#IF
CHECKITEM SpecialNewbStone 1
#SAY
Continue this quest by clicking <here/@newbfinished>\

[@newbfinished]
#ACT
TAKECHECKITEM SpecialNewbStone 1
CHANGELEVEL 20
#SAY
Congratulations, You have found the SpecialNewbStone.\
Here's your reward.\
 
Upvote 0

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
Script works fine now, Just had to put TAKE instead of TAKECHECKITEM or TAKEITEM and CHANGELEVEL = 20 instead of CHANGELEVEL 20
 
Upvote 0

iJam

To the rhythm
VIP
Oct 8, 2007
1,522
99
195
London
ok me script will chek if ur 20+ and errm well wont let u do it

u can mek it shorter by checklevelex but forgot wat u put < or > lol

neway enjoy
 
Last edited:
Upvote 0

Mike_BE

Dedicated Member
Dedicated Member
Aug 1, 2008
34
0
52
If any1 wants this script or you just wana check it. Il post it here. Now working without any errors
Code:
[@newb] <----- MAKE THIS @main IF YOUR ARE PLANNING TO MAKE A SINGLE QUEST NPC
#IF
CHECKLEVEL 20
#SAY
You have already done this quest!\
#ELSEACT
GOTO @newbi

[@newbi]
#SAY
So your new to the real of Killswitch,\
Ive got just the thing for you to do.\
Get a SpecialNewbStone in Newbiecave. Come back\
to me and i shall give you a reward.\
<I've found the SpecialNewbStone/@newbfini>\
<I'll go for it !/@exit>\

[@newbfini]
#IF
CHECKITEM SpecialNewbStone 1
#SAY
Continue this quest by clicking <here/@newbfinished>\
#ELSESAY
You don't have the SpecialNewbStone

[@newbfinished]
#ACT
TAKE SpecialNewbStone 1
CHANGELEVEL = 20
#SAY
Congratulations, You have found the SpecialNewbStone.\
Here's your reward.\
 
Upvote 0