;Info [ Npc Name{TownsKeeper} X=34 Y=27 MapName={UndergroundTown} ]
(@buy @sell @repair @s_repair @storage @getback @getsellgold @selloff @buyoff @prices)
%100
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+43
+52
+53
+54
+500
[@main]
#SAY
Welcome <$USERNAME> . I am the Towns keeper and I try my \
              Not working <Merchant/@Mercmain>\
You are looking for (Click <more/@Main2> for Quests and Academies)\ \
**************** About <Secret Order/@infoS> Patch ****************\ \
Where is <Teleport/@Talk1>, <Repair/@Talk2>, <Potion/@Talk3> shop, <Blacksmith/@Talk4>, <Cloths/@Talk5> shop.\ \
Sell <items/@sell>, Store <Items/@storage>, Get back <Items/@getback>, Player<Control/@PLAYER>, Next <Page/@Main2> ...
#ELSEACT
BreakTimeRecall 
;---------------------------------
[@TE]


;------------player-----------------
[@PLAYER]
#SAY
*******Welcome <$USERNAME>*******\
<$GAMEGOLDNAME> :<$GAMEPOINT>    ¡º<Park Pets/@PPS>¡»\
Loging box (<on-off/@LGN>)       ¡º<Joining and controls/@Mmain>¡»\
Change name (<color/@NameC>)\
GameInfo (<Highest level/@GIHL>)\
Reduce PK <point 20 mill/@RDPK>\
<back/@Main>   <Exit/@exit>
[@PPS]
#ACT
Give townteleport
MAPMOVE  n001 91 91

[@RDPK]
#if
Checkgold 20000000
#ACT
Take gold 20000000
CHANGEPKPOINT - 200
#SAY
Done!\
<back/@PLAYER>   <Exit/@exit>
#ELSESAY
I siad 20mill\
<back/@PLAYER>   <Exit/@exit>

[@GIHL]
#CALL [\Common\GameInfo.txt] @ViewInfo

[@LGN]
#IF
CHECK [798] 0
#ACT
SET [798] 1
#SAY
Login box will be activated when you login to game.\
Logging Box: on\
<back/@Main>   <Exit/@exit>
#ELSEACT
SET [798] 0
#ELSESAY
Login box will be activated when you login to game.\
Logging Box: off\\
<back/@PLAYER>   <Exit/@exit>

[@NameC]
#SAY
Select your name color:\
(<Dark red/@NC1>) (<Turquoise /@NC8>) (<Black/@NC15>) (<Gray-Purple/@NC22>) (<Gray/@NC7>) \ 
(<Dark Green/@NC2>) (<Light Blue/@NC9>) (<Brown/@NC16>)  (<Light Green/@NC23>)\
(<Dark Yellow/@NC3>) (<Dark Gray/@NC10>) (<Orange/@NC17>  (<Green/@NC24>)\
(<Dark Blue/@NC4>) (<Very dark gray/@NC11>) (<V.Dark Blue/@NC18>)   (<MedGreen/@NC25>)\
(<Dark Purple/@NC5>) (<Light Red/@NC12>) (<Red Tint/@NC19>) (<Med red/@NC14>)\ 
(<Dark Turquoise/@NC6>) (<Yellow/@NC13>) (<Dark Gold/@NC20>)  (<Blue/@NC21>)\
<back/@PLAYER>   <Exit/@exit>

;------------------------------
[@infoS]
#SAY
First thing you need to know is, mobs have taken over\
Provinces. Most of the people have fled (NPCS), its just\
To dangers for them now. This is the last place of safety\
So always keep a town teleport to hand\ \
<More/@Infos2>   <Exit/@exit>

[@infoS2]
#SAY
It appears that the Torozor academy have found a gate\
That has allowed a great power to effect our lands.\
They are trying there best to keep it under hand but\
They just don’t have the members. Maybe all is lost.\ \
<Exit/@exit>

[@main2]
#if
Check [013] 1
#SAY
(<Quests/@Talk6>)   (<About Town/@Talk7>) \
(<Academies/@Talk8>)  (<Houses/@Talkh>) \
(<Pet system/@eggsys>)\
(<Townkeepers attack grp(Pets)/@Newpets>)\
<Exit/@exit>
#ElseSAY
<Quests/@Talk6> \
<About Town/@Talk7> \
<Academies/@Talk8> \
<Houses/@Talkh> \
<Exit/@exit>

[@Newpets]
#say
Must be lvl 36 or higher\
Must have completed Proving grounds\
Must have not current pets\
(zombiekingx2 EvilTongsx2 banditx1)\
<Attack grp 5mill/@Npet3> \
<Okay Cya/@exit>

;---- pet Slave
[@Npet3]
#IF
CHECK [013] 1
Checklevel 36
CHECKSLAVECOUNT < 1
Checkgold 5000000
#ACT
RECALLMOB zombieking 1
RECALLMOB zombieking 1
RECALLMOB EvilTongs 1
RECALLMOB EvilTongs 1
RECALLMOB bandit 1
take gold 5000000
#SAY
here you go  :P\\
<Okay Cya/@exit>
#ELSESAY
you may need to get rid of your pets first or,\
you do not have enough gold, or Level to low,\\
Or you need to complete Proving grounds\
<Okay Cya/@exit>\


[@Talkh]
#SAY
***Player houses***\
Mountain town has 3\
See front Town has 1\ \
<Exit/@exit>

[@Talk1]
#SAY
Talk to the Teleporter man,\
He will send you where ever\
You wish to go\ \
<Exit/@exit>

[@Talk2]
#SAY
You need to find Bob for wepons\
or George for cloths reapair. Jack\
Special repair anything but it will\
cost you.\ \
<Exit/@exit>

[@Talk3]
#SAY
Tara will help you with all your\
General potion needs. I have aslo\
Heard that Jane has some special\
Scrolls, but she only sells to Cretan\
People.\ \
<Exit/@exit> 

[@Talk4]
#SAY
Go and Find Bob. His is our\
Town blacksmith.\
<Exit/@exit>

[@Talk5]
#SAY
Go and see George in the market\
Area. He will deal with your clothing\
Needs.\\
<Exit/@exit> 

[@Talk6]
#SAY
Jane - HP and MP Scrolls. (Very useful)\
Bob - Specail Weapons.Refine Quests (low to mid lvl)\
Lostman - Services, can be found in oldmine 2nd\
Tara - Specail ring (lvl 35 to 38+ ring)\
<Artifact construction/@arts> - See Bob for example (84:81)\
Try the <Academies/@Talk8> for more quest.\ \

<Exit/@exit>

[@Talk7]
#SAY
This is the ‘Under Ground Town’, you will find many\
Things here. Talk to people for quest and information,\
I’m sure you will find something useful. Enjoy your stay!\ \
<Exit/@exit>

[@Talk8]
#SAY
There are a few Academies that I know of.\
Proving Grounds Academy <More/@Acad1>\
Magic Academy <More/@Acad2>\
Warriors Academy <More/@Acad3>\
Taoist Academy <More/@Acad4>\
Torozor Academy <More/@Acad5> \
But there may be more.. \ \
<Back/@Main>

[@Acad1]
#SAY
Anyone that wants to be in an academy must first\
join the proving Grounds academy. All good\
Academies will ask for a recommendation from\
The proving Grounds academy \ \
\ \
Go to <Academy/@T1lvl5> \
<Back/@Talk8>, <Exit/@exit>\

[@Acad2]
#SAY
The magic academy will only except wizards.\
It can me found in this town.\ \
Go to <Academy/@T3lvl5> \
<Back/@Talk8>, <Exit/@exit>\

[@Acad3]
#SAY
The warriors academy will only except warriors.\
It can me found in this town.\ \
Go to <Academy/@T2lvl5> \
<Back/@Talk8>, <Exit/@exit>\

[@Acad4]
#SAY
The taoist academy will only except taoist.\
It can me found in this town.\ \
Go to <Academy/@T4lvl5> \
<Back/@Talk8>, <Exit/@exit>\

[@Acad5]
#SAY
Only a high ranking member for either the \
Wizards, Warrior or Taoist academy can\
Enter the academy of Torozor. I cant tell \
You where it is, sorry \ \
<Back/@Talk8>, <Exit/@exit>\

[@sell]
 <Back/@main>

[@storage]
 <Back/@main>

[@getback]
Take back storage\ \
 <Back/@main>



---------------
[@arts]
#SAY
Stones: These are basic Stat bonus stone that drop off mobs.\
Artifacts: These are rare items that work like stone and some\
Require construction. By this I mean, you must fine items\
To take to an NPC and they will give you an artifacts\\
See Bob at 84:81 at undergraound town for example\
<back/@Talk6>\
<exit/@exit>


;-------Acad teles---------
[@T1Lvl5]
#ACT
mapmove NT02 64 62
Give Townteleport

[@T2Lvl5]
#IF
checkjob Warrior
check [810] 0
#ACT
mapmove Nw01 23 35
Give Townteleport
#Elsesay
your not a warrior\
\ \
\ \
<exit/@exit>

[@T3Lvl5]
#IF
checkjob Wizard
check [810] 0
#ACT
mapmove NM01 33 37
Give Townteleport
#Elsesay
your not a wizard\
\ \
\ \
<exit/@exit>

[@T4Lvl5]
#IF
checkjob Taoist
check [810] 0
#ACT
mapmove NA01 25 25
Give Townteleport
#Elsesay
your not a Taoist\
\ \
\ \
<exit/@exit>
[@eggsys]
#Say
In general, to get pets you must get eggs, then\
Take them to the Hatchery. At the Hatchery\
You can have upto 5 pet. The Hatchery also\
offer special room to get eggs from, but you\
Can get eggs from normal mobs too\
<Back/@Main2>      <exit/@exit>

;---Name color motor
[@NC1]
#ACT
CHANGENAMECOLOR 1
GOTO @NCCD1
[@NC2]
#ACT
CHANGENAMECOLOR 2
GOTO @NCCD1
[@NC3]
#ACT
CHANGENAMECOLOR 3
GOTO @NCCD1
[@NC4]
#ACT
CHANGENAMECOLOR 4
GOTO @NCCD1
[@NC5]
#ACT
CHANGENAMECOLOR 5
GOTO @NCCD1
[@NC6]
#ACT
CHANGENAMECOLOR 6
GOTO @NCCD1
[@NC7]
#ACT
CHANGENAMECOLOR 7
GOTO @NCCD1
[@NC8]
#ACT
CHANGENAMECOLOR 8
GOTO @NCCD1
[@NC9]
#ACT
CHANGENAMECOLOR 9
GOTO @NCCD1
[@NC10]
#ACT
CHANGENAMECOLOR 10
GOTO @NCCD1
[@NC11]
#ACT
CHANGENAMECOLOR 11
GOTO @NCCD1
[@NC12]
#ACT
CHANGENAMECOLOR 20
GOTO @NCCD1
[@NC13]
#ACT
CHANGENAMECOLOR 150
GOTO @NCCD1
[@NC14]
#ACT
CHANGENAMECOLOR 40
GOTO @NCCD1
[@NC15]
#ACT
CHANGENAMECOLOR 0
GOTO @NCCD1
[@NC16]
#ACT
CHANGENAMECOLOR 60
GOTO @NCCD1
[@NC17]
#ACT
CHANGENAMECOLOR 70
GOTO @NCCD1
[@NC18]
#ACT
CHANGENAMECOLOR 235
GOTO @NCCD1
[@NC19]
#ACT
CHANGENAMECOLOR 90
GOTO @NCCD1
[@NC20]
#ACT
CHANGENAMECOLOR 130
GOTO @NCCD1
[@NC21]
#ACT
CHANGENAMECOLOR 180
GOTO @NCCD1
[@NC22]
#ACT
CHANGENAMECOLOR 240
GOTO @NCCD1
[@NC23]
#ACT
CHANGENAMECOLOR 250
GOTO @NCCD1
[@NC24]
#ACT
CHANGENAMECOLOR 210
GOTO @NCCD1
[@NC25]
#ACT
CHANGENAMECOLOR 220
GOTO @NCCD1

[@NCCD1]
#SAY
Name Color Changed\
.\
<back/@PLAYER>   <Exit/@exit>


[@ChangGender]
#IF
gender man
#SAY
So you would like to change you gender to a Woman\ \
<Yup Im sure/@towoman>\ \
<Er maybe not/@main>
#ELSESAY
So you would like to change you gender to a Man\ \
<Yup Im sure/@toman>\

[@toman]
#ACT
CHANGEGENDER 0
#SAY
You are now a Man\ \
<Bye/@exit>

[@towoman]
#ACT
CHANGEGENDER 1
#SAY
You are now a Woman\ \
<Bye/@exit>

;------------------------------------------
[@mmain]
¡º<Join/@master>¡»\
¡º<UnJoin/@unmaster>¡»\
¡º<Commands/@SRC>¡»\
¡º<Buy Join recall item/@BJI>¡»\
¡¼<Exit/@exit>¡½
[@BJI]
#SAY
You can buy an item that will let you recall apprentice\
Just by clicking on it. Remember, they must have allowed\
recall before hand\
(Remember, some areas do not allow recall)\
<Buy for 100k/@BFOK>\
¡¼<Exit/@exit>¡½
[@BFOK]
#IF
CheckGold 100000
#ACT
Take gold 100000
Give JoinRecall 1
#SAY
There you go!\
<Back/@mmain>\
¡¼<Exit/@exit>¡½
[@SRC]
#SAY
To recall : @MasterRecall\
To allow recall: @AllowMasterRecall\
Only master can recall!\
¡¼<Exit/@exit>¡½


[@master]
Do you wish to join with a Hunting Partner \
\ \
¡º<Yes/@agree>¡»\
¡º<Not/@exit>¡»\ \ 
¡¼<Back/@mmain>¡½
[@agree]
#if
   checkismaster
#act
   break
#say
You already have a partner \ \
¡¼<back/@mmain>¡½
#if
   checkmaster
#act 
   break
#say
??? \ \
¡¼<back/@mmain>¡½
#if
  checkposemaster
#say
???2\ \
¡¼<Back/@mmain>¡½
#act
  break
#if
   checkposedir
#elsesay
You must face partner\ \
¡¼<Back/@mmain>¡½
#elseact
  break
;#if
;  checklevel > 39
;#say
;You need to be Level 40 or higher\ \
;¡¼<Back/@mmain>¡½
;#act
;  break
;#if
;  checkposelevel > 39
;#elsesay
;Hunting Partner needs to be Level 40 or higher\ \
;¡¼<Back/@mmain>¡½
;#elseact
;  break
#act
   master
[@StartGetMaster]
Do you want to ask partner to join with you? \ \
\ \
¡º<Yes/@RequestMaster>¡»
[@StartMaster]
???8\ \
\ \
[@RequestMaster]
#if 
#act
   master requestmaster
[@WateMaster]
Please wait for partner to confirm ?\
[@RevMaster]
Do you want to join with partner? \ \
¡º<Yes/@ResposeMaster>¡» \
¡º<No/@ResposeMasterFail>¡»
[@ResposeMaster]
#if
#act
  master responsemaster ok
[@ResposeMasterFail]
#if
#act
  master responsemaster fail
[@EndMaster]
You are now partners\
¡¼<Exit/@exit>¡½
[@EndMasterFail]
Something has gone wrong , maybe a disagreement\ \
¡¼<Exit/@exit>¡½
[@MasterDirErr]
Person walked off?\
[@MasterCheckDir]
Person walked off? .\
[@HumanTypeErr]
>>Unknow error\
¿ªÊ¼
[@unmaster]
#if
   havemaster
#act
   unmaster
#elsesay
You do not have a partner \ \
¡¼<Eixt/@mmain>¡½
 
[@UnMasterCheckDir]
Unjoin ??2\
\ \
¡º<Force Unjoin/@fUnMaster>¡»\
¡¼<Back/@mmain>¡½
[@UnMasterTypeErr]
Some sort of error\ \
¡¼<·µ»Ø/@mmain>¡½
[@UnIsMaster]
Your not joined?\ \
¡¼<·µ»Ø/@mmain>¡½
[@UnMasterError]
Some sort of error\ \
¡¼<·µ»Ø/@mmain>¡½
[@StartUnMaster]
Do you wish to Unjoin?\ \
\ \
¡º<Yes/@RequestUnMaster>¡»
[@WateUnMaster]
Wait for conformation from other player \ \
[@RequestUnMaster]
#if
  havemaster
#act
  unmaster requestunmaster
[@ResposeUnMaster]
#if
  havemaster
#act
  unmaster responseunmaster
[@WateUnMaster]
Wait for conformation from other player. \ \
[@RevUnMaster]
Do you wish to Unjoin? \ \
¡º<Yes/@RequestUnMaster>¡»
¡¼<Back/@mmain>¡½
[@ExeMasterFail]
Somthing whent wrong \ \
[back/@mmain]
[@fUnMaster]
#if
;checkitem ½ðÌõ 1
  havemaster
#act
  ;take ½ðÌõ 1
  unmaster requestunmaster force
#elsesay
????pp1\
¡º<Eixt/@exit>¡»
[@UnMasterEnd]
You are no longer joined! \ \
¡º<Exit/@exit>¡»


;--------Merc-------
[@Mercmain]
»¶Ó­¹âÁÙÅÄÂôÐÐ£¬ÄãÈç¹ûÓÐÊ²Ã´ÖµÇ®ÓÖÓÃ²»ÉÏµÄÎïÆ·£¬¿É·ÅÔÚÎÒÕâ\
ÅÄÂô¡£\ \
<Selloff/@selloff> <Selfitem/@selfitem>\
<Buyoff/@buyoff> <selfgold/@selfgold>\ \
<Back/@Main> <Exit/@exit>
<>
[@selloff]
.............
Çë½«ÅÄÂôÎïÆ··ÅÉÏ£¬²¢ÊäÈëÅÄÂô¼Û¸ñ: \ \
<back/@Mercmain>


[@buyoff]
ÒÔÏÂÎªÈ«²¿ÅÄÂôµÄÎïÆ·£¬ÂÌÑÕÉ«µÄÎªÄã×Ô¼ºÅÄÂôµÄÎïÆ·£¬¿ÉÒÔÖ±½Ó\
È¡»Ø¡£\ \
Çë½«Ñ¡ÔñÄãÏë¹ºÂòµÄÎïÆ·: \ \
<back/@Mercmain>


[@selfitem]
<back/@Mercmain>\
ÒÔÏÂÎªÄãÔÚ´ËÅÄÂôµÄÎïÆ·:\ \
<$SELLOFFITEM>


[@selfgold]
<back/@Mercmain> <Getsellgold/@getsellgold>\
ÒÔÏÂÎªÄãÔÚ´ËÅÄÂôËùµÃ¿îÏî:  \ \
<$SELLOUTGOLD>



[@getsellgold]
<back/@Mercmain> <get sell gold/@getsellgold>\
È¡¿îÍê³É¡£

[goods]