[2.3] m2server error

Mu online season 21 - grand opening

SabreMir

Dedicated Member
Dedicated Member
Jul 21, 2012
114
2
45
Hi im kinda new at server side stuff and getting this error after adding a NPC think i have done all correct but dont know for sure have added NPC to NPC table in sql and put script in NPC_def do i need to put anything anywhere else? npc appearing ingame and takes the mutant token but is not teleing grp. using TD 2.3

heres error msg

[23/07/2012 13:03:35] Quest problem: ISGROUPOWNER Row:16 Filename: .\Envir\Npc_def\MutantCave-0.txt
[23/07/2012 13:03:35] Quest problem: GROUPINRANGE 5 Row:26 Filename: .\Envir\Npc_def\MutantCave-0.txt
[23/07/2012 13:03:35] Quest problem: MOVEALLMAPGROUP FOX03 47 21 Row:53 FileName: .\Envir\Npc_def\MutantCave-0.txt


and script is

[@main]
#IF
ISGROUPOWNER
#ACT
goto @grouphere
break
#ELSESAY
(*You hear a slight whisper in the wind:*)\
"Only party leaders with their parties may pass here."\


[@grouphere]
#IF
GROUPINRANGE 5
#ACT
goto @checkorb
break
#ELSESAY
(*You hear a slight whisper in the wind:*)\
"You are a party leader but your party is not present.\
You may not pass.All Must be within 5 spots of npc."\


[@checkorb]
#IF
CheckItem MutantToken 1
#SAY
(*You hear a slight whisper in the wind:*)\
"You are a party leader, Youre party is present,\
You have the Mutant Token..."\
You may pass hunter!\ \
<Pass/@pass> <Do not pass/@exit>
#ELSESAY
(*You hear a slight whisper in the wind:*)\
"Only parties weilding a Mutant Token may pass here."\


[@pass]
#IF
CheckItem MutantToken 1
#ACT
Take MutantToken 1
MOVEALLMAPGROUP FOX03 47 21
break
#ELSESAY
(*You hear a slight whisper in the wind:*)\
"Only parties weilding a Mutant Token may pass here."\


basically ripped off fox cave script not changed where it teles u too yet just wanted to test it 1st but getting these errors in M2Server

any help be most appreciated

Cheers
 
Last edited:

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Try:
CHECKGROUPNEARBY
and
CHECKGROUPMOVEMAP
and
CHECKGROUPLEADER
Also you can use things like "Group Count"
e.g.
#IF
CHECKGOLD 50000000 <--- Obviously checking the gold
CHECKLEVEL 50 <--- Obviously checking the level
CHECKGROUPCOUNT > 3 <--- Checks if you have 3 or more people in the group (To allow entry)
CHECKGROUPNEARBY <---- Obviously checks if your group is around the NPC
CHECKGROUPLEADER <---- Obviously checks if the person using the teleport is the group leader.
Other options are:
CHECKGROUPCLASS Warrior = 1/2/3 etc
CHECKGROUPCLASS Taos = 1/2/3 etc
CHECKGROUPCLASS Wizard = 12/3 etc
(Obviously this checks if there is 1 of each class before entry can be made onto the map)
And the #ACT section is:
#ACT
TAKEGOLD 50000000
GROUPMOVEMAP X(Map number) Y(Coordinate 1) Z(Coordinate 2)
 
Last edited:
Upvote 0

SabreMir

Dedicated Member
Dedicated Member
Jul 21, 2012
114
2
45
Try:
CHECKGROUPNEARBY
and
CHECKGROUPMOVEMAP
and
CHECKGROUPLEADER
Also you can use things like "Group Count"
e.g.
#IF
CHECKGOLD 50000000 <--- Obviously checking the gold
CHECKLEVEL 50 <--- Obviously checking the level
CHECKGROUPCOUNT > 3 <--- Checks if you have 3 or more people in the group (To allow entry)
CHECKGROUPNEARBY <---- Obviously checks if your group is around the NPC
CHECKGROUPLEADER <---- Obviously checks if the person using the teleport is the group leader.
Other options are:
CHECKGROUPCLASS Warrior = 1/2/3 etc
CHECKGROUPCLASS Taos = 1/2/3 etc
CHECKGROUPCLASS Wizard = 12/3 etc
(Obviously this checks if there is 1 of each class before entry can be made onto the map)
And the #ACT section is:
#ACT
TAKEGOLD 50000000
GROUPMOVEMAP X(Map number) Y(Coordinate 1) Z(Coordinate 2)

Cheers for help all sorted :)
 
Upvote 0