CheckHum

Play Now

craigj

LOMCN Veteran
Veteran
Jul 18, 2006
392
3
44
South Wales !!
Ok i just need to know if this would work, basically im creating the map+script for a certain lvl only which is 85. Only one person can access this map at a time, heres the script i havent tested yet as i am only making the NPC's before starting to map the server.

[@tt]
#IF
checklevelex = 85
checkhum (MapNumber)
checkgold 20000000
#ACT
take gold 20000000
mapmove
break
#ELSESAY
Only 1 person can access this temple.\
or you do not have the correct gold.\ \



-------------------------------------------

Also i have tried using QFunction and im getting m2 errors for some reason iv asked around and can't get a straight forward answer, so ill show you my script and hopefully you will have a solution for me..

[@key7]
#IF
CHECK [222] 1
CHECKJOB Taoist
#ACT
TEAMPOWERUP HP 200 9000
TEAMPOWERUP MP 200 9000
TEAMPOWERUP SC 40 9000
BREAK
#IF
CHECK [222] 1
CHECKJOB Wizard
#ACT
TEAMPOWERUP HP 250 9000
TEAMPOWERUP MC 30 9000
BREAK
#IF
CHECK [222] 1
CHECKJOB Warrior
#ACT
TEAMPOWERUP MP 300 9000
TEAMPOWERUP DC 50 9000
BREAK

and here is the m2 error.

FileName: .\Envir\Market_Def\QFunction-0.txt
[1/9/2009 9:55:26 AM] Quest problem: TEAMPOWERUP MP 300 9000 Row:40 FileName: .\Envir\Market_Def\QFunction-0.txt
[1/9/2009 9:55:26 AM] Quest problem: TEAMPOWERUP DC 50 9000 Row:41 FileName: .\Envir\Market_Def\QFunction-0.txt
[1/9/2009 9:55:26 AM] Quest problem: 6 "Congratulations <$USERNAME> has just reached level 75!" Row:87 FileName: .\Envir\Market_Def\QFunction-0.txt
[1/9/2009 9:55:26 AM] Quest problem: CHECKLEVELEX = 43 Row:144 FileName: .\Envir\Market_Def\QFunction-0.txt
[1/9/2009 9:55:26 AM] Quest problem: CHECKJOB Warrior Row:145 FileName: .\Envir\Market_Def\QFunction-0.txt

EDIT - Fixed some of the errors but stil getting the teampower up ones. is it cause TEAMPOWERUP is not a command?
 
Last edited:

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
[@key7]
#IF
CHECKJOB Taoist
#ACT
GOTO @Tao
#IF
CHECKJOB Wizard
#ACT
GOTO @Wiz
#IF
CHECKJOB Warrior
#ACT
GOTO @War
BREAK




[@Tao]
#IF
CHECK [222] 1
#ACT
TEMPOWERUP HP 200 9000
TEMPOWERUP MP 200 9000
TEMPOWERUP SC 40 9000
SENDMSG 6 "Boost Activated"
#ELSEACT
SENDMSG 6 "Boost Not Activated"
BREAK

[@Wiz]
#IF
CHECK [222] 1
#ACT
TEMPOWERUP HP 250 9000
TEMPOWERUP MC 30 9000
SENDMSG 6 "Boost Activated"
#ELSEACT
SENDMSG 6 "Boost Not Activated"
BREAK

[@War]
#IF
CHECK [222] 1
#ACT
TEMPOWERUP MP 300 9000
TEMPOWERUP DC 50 9000
SENDMSG 6 "Boost Activated"
#ELSEACT
SENDMSG 6 "Boost Not Activated"
BREAK

You also need to add @key7 into your custom commands in your Envir folder.
 
Upvote 0

craigj

LOMCN Veteran
Veteran
Jul 18, 2006
392
3
44
South Wales !!
Thanks, had just got it working lol.

Could anyone answer the first one..? I need to check how many people in the group, then the grp leader has to tele in.\

Also can this only be done by teleporting them to a new room, checking how many there is in that room then the teleportng them all in.

Thanks.
 
Upvote 0

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
Code:
[@Evil]
#SAY
This dungeon is extremely strong, the mobs alone,\
Have powerful ranged attacks.\
To enter this cave you must have atleast 3 of each class to enter.\
And 200k per person in gold.\
Do you wish to to enter this dungeon?\
<Yes/@Evil1>\
<No Way/@Main>\

[@Evil1]
#IF
CheckHum (MapNumber) = 1
#ACT
GOTO @Reject
#ELSEACT
GOTO @Evil-1

[@Reject]
There is other people on this map atm,\
Please try again later.\ \
<Close/@Exit>

[@Evil-1]
#IF
CHECKGROUPLEADER
#ACT
Goto @Groupowner
Break
#ELSESAY
Sorry but you have to be a group leader!\ \
<Okay/@exit>

[@Groupowner]
#IF
CHECKGROUPCLASS Warrior = 3
CHECKGROUPCLASS Taoist = 3
CHECKGROUPCLASS Wizard = 3
#SAY
Well now you have all the correct group, you may enter.\ \
<Ok let me in/@next4>
#ELSESAY
Sorry but you dont have all the required members\
Come back when you do.\ \
<Okay,I will/@exit>

[@next4]
#IF
CheckGold 1800000
#ACT
Take Gold 1800000
GROUPMOVEMAP <Map>
Break
#ELSESAY
You need 200k per person to enter.\ \
<Close/@exit>
 
Upvote 0

craigj

LOMCN Veteran
Veteran
Jul 18, 2006
392
3
44
South Wales !!
Code:
[@Evil]
#SAY
This dungeon is extremely strong, the mobs alone,\
Have powerful ranged attacks.\
To enter this cave you must have atleast 3 of each class to enter.\
And 200k per person in gold.\
Do you wish to to enter this dungeon?\
<Yes/@Evil1>\
<No Way/@Main>\
 
[@Evil1]
#IF
CheckHum (MapNumber) = 1
#ACT
GOTO @Reject
#ELSEACT
GOTO @Evil-1
 
[@Reject]
There is other people on this map atm,\
Please try again later.\ \
<Close/@Exit>
 
[@Evil-1]
#IF
CHECKGROUPLEADER
#ACT
Goto @Groupowner
Break
#ELSESAY
Sorry but you have to be a group leader!\ \
<Okay/@exit>
 
[@Groupowner]
#IF
CHECKGROUPCLASS Warrior = 3
CHECKGROUPCLASS Taoist = 3
CHECKGROUPCLASS Wizard = 3
#SAY
Well now you have all the correct group, you may enter.\ \
<Ok let me in/@next4>
#ELSESAY
Sorry but you dont have all the required members\
Come back when you do.\ \
<Okay,I will/@exit>
 
[@next4]
#IF
CheckGold 1800000
#ACT
Take Gold 1800000
GROUPMOVEMAP <Map>
Break
#ELSESAY
You need 200k per person to enter.\ \
<Close/@exit>


Cheers bud thats what i needed, also again i just made a script before u posted lol here it is, aint tested yet as im a bit stuck on items.


Code:
[@main]
Hello there for you teleport into this map you must\
first ensure that you are going in here with a group\
of 3 people, Warrior Wizard and a Tao aslong as they are\
level 75+ also make sure you are the leader of the group.\ \
<Ok send me in/@bg>\
<Ok i'll be back/@exit>\ \

[@bg]
#IF
checkhum < 3
CHECKGROUPLEADER
CHECKGROUPCLASS Warrior=1 
CHECKGROUPCLASS Wizard=1 
CHECKGROUPCLASS Taoist=1
#ACT
GROUPMOVEMAP (MAPNAME) (X) (Y)
BREAK
#ELSESAY
You are either not in a group of 3, or\
you are not with a Warrior Wizard and a Tao or\
there is not 3 people in the room.\ \
 
Upvote 0

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
Cheers bud thats what i needed, also again i just made a script before u posted lol here it is, aint tested yet as im a bit stuck on items.


Code:
[@main]
Hello there for you teleport into this map you must\
first ensure that you are going in here with a group\
of 3 people, Warrior Wizard and a Tao aslong as they are\
level 75+ also make sure you are the leader of the group.\ \
<Ok send me in/@bg>\
<Ok i'll be back/@exit>\ \

[@bg]
#IF
checkhum < 3
CHECKGROUPLEADER
CHECKGROUPCLASS Warrior=1 
CHECKGROUPCLASS Wizard=1 
CHECKGROUPCLASS Taoist=1
#ACT
GROUPMOVEMAP (MAPNAME) (X) (Y)
BREAK
#ELSESAY
You are either not in a group of 3, or\
you are not with a Warrior Wizard and a Tao or\
there is not 3 people in the room.\ \

When you checkhum you need the mapname it`s checking, si it would be.

#IF
CHECKHUM <Mapname> < 3

This checks the map to see if there is less than 3 people on that map.
 
Upvote 0