脚本文件可用的定义

这些定义/宏,是将无意义的数字变成能容易理解有意义符号。

因为数量很多,这里列出来的是我觉得会用得上,有需要的时候再增加吧。

这些定义/宏,分为通用(注册和执行部分都可以用) 、和只能在执行部分可以用两类。

#define global false		0
#define global true 		1
#define global falseM		-1

#define global null		0
#define global sizeInt		4
#define global strNull		""

#define global extBarrier	1000

#define global defRandArea	40
#define global defAreaRenew	25
#define global defItemCompress	10
#define global defSpellStock	100
#define global defBadKarma	-30
#define global defGoodKarma	20
#define global defNoise		100
#define global defCookWeight	500
#define global defWebFreeWeight	100

#define global defImpEnemy	0
#define global defImpHate	25
#define global defImp		50
#define global defImpParty	53
#define global defImp2		75
#define global defImpFriend	100
#define global defImpFriend2	150
#define global defImpMarry	200
#define global defImpSoulMate	300
#define global defGodGift1	1500
#define global defGodGift2	2500
#define global defGodGift3	4000

#define global defNpcFovFire	6
#define global defNpcFovThrow	8

#define global fatigueHeavy	0
#define global fatigueModerate	25
#define global fatigueLight	50

#define global defArmorHeavy	35000
#define global defArmorMedium	15000

#define global hungerVomit	35000
#define global hungerBloated	12000
#define global hungerSatisfied	10000
#define global hungerNormal	5000
#define global hungerHungry	2000
#define global hungerStarving	1000
#define global extHunger	1000

#define global sleepLight	15
#define global sleepModerate	30
#define global sleepHeavy	50

#define global resistGrade	50
#define global resistValid	3
#define global resistStrong	7
#define global resistImmune	10
#define global waitMusic 	50
#define global respawnTime	48
#define global respawnTimeAdv	24
#define global restockTime	72
#define global maxTone		7
#define global maxDb		800
#define global maxSave		5
#define global maxCsv 		40

#define global maxFov 		17
#define global maxList 		500
#define global maxTalkLen	56
#define global maxMapArray 	10
#define global maxRoom 		30
#define global maxBone		80
#define global maxNews		195
#define global maxCmapItem	400
#define global maxQuestNum	5
#define global maxjKey		12
#define global identifyAny	9999
#define global rangePlayerPic	67
#define global maxCorrupt	20000

#define global maxAlly		8
#define global maxFollower	16
#define global maxNullChara	1
#define global maxAdv		40-maxNullChara

#define global screenW 		inf_screenW
#define global screenH 		inf_screenH
#define global screenX		inf_screenX
#define global screenY 		inf_screenY

#define global canPass 		396
#define global pc 		0
#enum global aiNull=0
#enum global aiRoam
#enum global aiDull
#enum global aiStand
#enum global aiFollow
#enum global aiSpecial

#define global cantSee		1
#define global cantPass		4
#define global cantBoth		5

#define global atkEvadePlus	-2
#define global atkEvade		-1
#define global atkHit		1
#define global atkCriticalHit	2

#define global animeArrow	1

#enum global aniBolt=0
#enum global aniArrow
#enum global aniBall
#enum global aniBreath
#enum global aniTail
#enum global aniHeal
#enum global aniCurse
#enum global aniOffer
#enum global aniFizzle
#enum global aniAttack
#enum global aniBlood
#enum global aniHealFast
#enum global aniNormalAttack
#enum global aniThunder
#enum global aniCrush
#enum global aniThrow
#enum global aniSand
#enum global aniBallNuke
#enum global aniSpore
#enum global aniHoly
#enum global aniGene
#enum global aniRagna
#enum global aniMeteor

#enum global	atxNone=0
#enum global	atxCasino
#enum global	atxRE
#enum global	atxSleep
#enum global	atxFruit

#define global atxLoc atxId(1)

#enum global atxRandom=0
#enum global atxDungeon
#enum global atxForest
#enum global atxField
#enum global atxBuilding
#enum global atxWater
#enum global atxMine
#enum global atxBush
#enum global atxRemain

#enum global atxDungeon1
#enum global atxForest1
#enum global atxField1
#enum global atxBuilding1
#enum global atxWater1
#enum global atxMine1
#enum global atxBush1
#enum global atxRemain1
#enum global atxGen1
#enum global atxGlobal1
#enum global atxGeneral1


#define global cDead		0
#define global cAlive		1
#define global cSpirit		2
#define global cAdv		3
#define global cAdvHospital	4
#define global cAdvDead		5
#define global cAllyDead	6
#define global cAllyWait	7
#define global cSuspend		8
#define global cAllyWork	9
#define global cTemp		10


#define global cAlly		10
#define global cNeutral		0
#define global cDislike		-1
#define global cHate		-2
#define global cEnemy		-3


#enum global coDefault=0
#enum global coRand
#enum global coGreen
#enum global coRed
#enum global coBlue
#enum global coYellow
#enum global coBrown
#enum global coBlack
#enum global coPurple
#enum global coSkyBlue
#enum global coPink
#enum global coOrange
#enum global coWhite
#enum global coFresh
#enum global coDarkGreen
#enum global coGray
#enum global coLightRed
#enum global coLightBlue
#enum global coLightPurple
#enum global coLightGreen
#enum global coTalk
#enum global tailCol

#define global costNone		0
#define global costHp		1
#define global costMp		2



#enum global conPoison=1
#enum global conSleep
#enum global conParalyze
#enum global conBlind
#enum global conConfuse
#enum global conFear
#enum global conDim
#enum global conDrunk
#enum global conBleed
#enum global conWet
#enum global conInsane
#enum global conSick
#enum global tailCon

#enum global cRoleShopkeeper=1
#enum global cRoleChef
#enum global cRoleSpecial
#enum global cRoleCitizen
#enum global cRoleIdentifer
#enum global cRoleMayor
#enum global cRoleTrainer
#enum global cRoleInformer
#enum global cRoleBarten
#enum global cRoleArenaMaster
#enum global cRolePetArenaMaster
#enum global cRoleHealer
#enum global cRoleAdv
#enum global cRoleGuard
#enum global cRoleKing
#enum global cRoleShopGuard
#enum global cRoleSlaver
#enum global cRoleMaid
#enum global cRoleSister
#enum global cRoleUser
#enum global cRoleReturner
#enum global cRoleHorseMaster
#enum global cRoleCaravanMaster

#enum global cRoleShopWeapon=	1000
#enum global cRoleShopArmor
#enum global cRoleShopFood
#enum global cRoleShopBakery
#enum global cRoleShopMagic
#enum global cRoleShopInn
#enum global cRoleShopGeneral
#enum global cRoleShopBlack
#enum global cRoleShopGoods
#enum global cRoleShopTrade
#enum global cRoleShopWander
#enum global cRoleShopSf
#enum global cRoleShopOffice
#enum global cRoleShopDeed
#enum global cRoleShopFish
#enum global cRoleShopNoyel
#enum global cRoleShopMirok
#enum global cRoleShopMountain1
#enum global cRoleShopMountain2
#enum global cRoleShopSister
#enum global cRoleShopBookR
#enum global cRoleShopThief
#enum global cRoleShopFestival

#enum global cRoleGuestBegger=	2000
#enum global cRoleGuestSex
#enum global cRoleGuestCitizen
#enum global cRoleGuestMerchant
#enum global cRoleGuestCritic
#enum global cRoleGuestTrainer
#enum global cRoleGuestProducer

#define global ctype range_cRoleGuest(%1) (%1>=2000)&(%1<3000)
#define global ctype range_cRoleShop(%1) (( (%1>=1000)&(%1<2000) ) or (%1=cRoleGuestMerchant) )

#enum global dbModeFind		=1
#enum global dbModeRef
#enum global dbModeSet
#enum global dbModeSetInitEq
#enum global dbModeRefEat
#enum global dbModeRefRead
#enum global dbModeRefZap
#enum global dbModeRefDrink
#enum global dbModeRefPlayable
#enum global dbModeStatsSet
#enum global dbModeRefCm
#enum global dbModeIfEaten
#enum global dbModeIfRead
#enum global dbModeIfZapped
#enum global dbModeIfDrunk
#enum global dbModeRefSpec
#enum global dbModeDesc


#define global dbModeTxtCalm	100
#define global dbModeTxtAggro	101
#define global dbModeTxtDead	102
#define global dbModeTxtKilled	103
#define global dbModeTxtWelcome 104
#define global dbModeTxtBye	105
#define global dbModeTxtDialog	106

#define global dmgFromChara	0
#define global dmgFromTrap	-1
#define global dmgFromOverCast	-2
#define global dmgFromHunger	-3
#define global dmgFromPoison	-4
#define global dmgFromCurse	-5
#define global dmgFromBurden	-6
#define global dmgFromTumble	-7
#define global dmgFromPerform	-8
#define global dmgFromFire	-9
#define global dmgFromAtx	-10
#define global dmgFromUnknown	-11
#define global dmgFromBadFood	-12
#define global dmgFromBleed	-13
#define global dmgFromCorrupt	-14
#define global dmgFromAcid	-15
#define global dmgFromSuicide	-16
#define global dmgFromNuke	-17
#define global dmgFromMaiden	-18
#define global dmgFromCutNeck	-19
#define global dmgFromHang	-20
#define global dmgFromMochi	-21

#enum global dmgNormal	=0
#enum global dmgSub
#enum global dmgRow


#enum global effNone	=0
#enum global effCarpentry
#enum global effAlchemy
#enum global effJeweller
#enum global effTailor
#enum global effScope
#enum global effMusicPlayer
#enum global effShelter
#enum global effShop
#enum global effTrain
#enum global effStoryPlayer
#enum global effMoneyBox
#enum global effFreezer
#enum global effTorch
#enum global effSnow
#enum global effCooking
#enum global effFishing
#enum global effPerform
#enum global effBite
#enum global effMirror
#enum global effIncognito
#enum global effMaterialKit
#enum global effRune
#enum global effLeash
#enum global effMine
#enum global effUnicornHorn
#enum global effRenewDungeon
#enum global effRenewWeather
#enum global effNuke
#enum global effTrait
#enum global effSpell
#enum global effPlant
#enum global effGeneMerge
#enum global effMonsterBall
#enum global effHealSan
#enum global effIronMaiden
#enum global effCutNeck
#enum global effDeck
#enum global effCard
#enum global effWhistle
#enum global effEvolution
#enum global effNewFeat
#enum global effLomias
#enum global effLuck
#enum global effChair
#enum global effSandBag
#enum global effRope
#enum global effUserNpc
#enum global effCreator
#enum global effGarokHammer
#enum global effKumiromiSeed
#enum global effManiBoost
#enum global effAttackFlag
#enum global effPhotograph


#enum global encounterNone=0
#enum global encounterEnemy
#enum global encounterMerchant
#enum global encounterAssassin
#enum global encounterRogue

#enum global evNone=0
#enum global evWinLesimas
#enum global evOpening
#enum global evLesimasBoss
#enum global evRandBoss
#enum global evRandBossWin
#enum global evDead
#enum global evVernisSpeech1
#enum global evQuestEliminate
#enum global evQuestFail
#enum global evQuestCheck
#enum global evShopWander
#enum global evFirstAlly
#enum global evMarry
#enum global evQuestTimeOut
#enum global evClientDead
#enum global evClientReached
#enum global evWelcome
#enum global evRagnarok
#enum global evShowHouse
#enum global evKillMother
#enum global evNuke
#enum global evGuild
#enum global evRogue
#enum global evInitEconomy
#enum global evVisitor
#enum global evSleepAmbush
#enum global evLittleSister
#enum global evGodInsideEhekatl
#enum global evRandBoss2
#enum global evMyEyes

#enum global eqNothing=0
#enum global eqWarrior
#enum global eqMage
#enum global eqArcher
#enum global eqGunner
#enum global eqWarMage
#enum global eqPriest
#enum global eqThief
#enum global eqClaymore

#define global extEmo	100
#enum global emoHappy=6
#enum global emoSilent
#enum global emoSkull
#enum global emoBleed
#enum global emoBlind
#enum global emoConfuse
#enum global emoDim
#enum global emoFear
#enum global emoSleep
#enum global emoParalyze
#enum global emoEat
#enum global emoHeart
#enum global emoAngry
#enum global emoItem
#enum global emoNotice
#enum global emoQuestion
#enum global emoQuestTarget
#enum global emoQuestClient
#enum global emoInsane
#enum global emoParty

#define global rpListExt	100000
#define global extSc		10000

#define global extFlt		10000

#define global extFood		1000
#enum global headCooked	=1
#enum global headFdMeat =headCooked
#enum global headFdVege
#enum global headFdFruit
#enum global headFdSweet
#enum global headFdPasta
#enum global headFdFish
#enum global headFdBread
#enum global headFdEgg
#enum global tailCooked

#define global maxFoodLevel	10

#enum global fdMeat=headFdMeat*extFood
#enum global fdVege=headFdVege*extFood
#enum global fdFruit=headFdFruit*extFood
#enum global fdSweet=headFdSweet*extFood
#enum global fdPasta=headFdPasta*extFood
#enum global fdFish=headFdFish*extFood
#enum global fdBread=headFdBread*extFood
#enum global fdEgg=headFdEgg*extFood

#define global fltHeadWear	10000
#enum	global fltWeapon = 10000
#enum	global fltHeavySword
#enum	global fltLongSword
#enum	global fltShortSword
#enum 	global fltClub
#enum 	global fltHammer
#enum	global fltStave
#enum 	global fltPole
#enum	global fltHeavyPole
#enum	global fltSmallAxe
#enum	global fltLargeAxe
#enum	global fltSickle

#define global fltHeadArmor		12000
#define global fltHeadHelm		12000
#define global fltHelm			12000
#define global fltHeavyHelm		12001
#define global fltLightHelm		12002
#define global fltMediumHelm		12003

#define global fltShield		14000
#define global fltLargeShield		14001
#define global fltMediumShield		14002
#define global fltSmallShield		14003

#define global fltArmor			16000
#define global fltHeavyArmor		16001
#define global fltMediumArmor		16002
#define global fltLightArmor		16003

#define global fltBoots			18000
#define global fltHeavyBoots		18001
#define global fltLightBoots		18002
#define global fltMediumBoots		18003

#define global fltGirdle		19000
#define global fltMediumGirdle		19001

#define global fltCloack		20000
#define global fltMediumCloack		20001

#define global fltGlove			22000
#define global fltHeavyGlove		22001
#define global fltMediumGlove		22002
#define global fltLightGlove		22003

#define global fltHeadRange 		24000
#define global fltRange			24000
#define global fltShortBow		24001
#define global fltCrossBow		24003
#define global fltPistol		24020
#define global fltLaser			24021
#define global fltThrowingRock		24030

#define global fltAmmo			25000
#define global fltAmmoBow		25001
#define global fltAmmoCrossBow		25002
#define global fltAmmoPistol		25020
#define global fltAmmoEnergy		25030

#define global fltHeadRing		30000
#define global fltRing			32000
#define global fltSmallRing		32001

#define global fltAmulet		34000
#define global fltSmallAmulet		34001

#define global fltHeadItem		50000

#define global fltHeadPotion		52000
#define global fltPotion		52000
#define global fltPotionHeal		52001
#define global fltAle			52002

#define global fltScroll		53000
#define global fltBuildingDeed		53100


#define global fltSpellbook		54000
#define global fltBook			55000
#define global fltRecipe		55500


#define global fltStaff			56000

#define global fltFood			57000
#define global fltBread			57001
#define global fltPasta			57002
#define global fltVege			57003
#define global fltFruit			57004
#define global fltHerb			58005

#define global fltLiquid		58000
#define global fltSeed			58500

#define global fltTool			59000
#define global fltBlendTool		59500

#enum global fltFurniture=60000
#enum global fltWell
#enum global fltAltar
#enum global fltUse
#enum global fltBed
#enum global fltInstrument

#define global fltRemain		62000

#define global fltJunk			64000
#define global fltField			64000
#define global fltTownJunk		64100

#define global fltGold			68000
#define global fltPlat			69000
#define global fltChest			72000
#define global fltRock			75000

#define global fltHeadOre		77000
#define global fltOre			77000
#define global fltGem			77001

#define global fltEnviro		80000

#define global fltHeadCargo		90000
#define global fltCargoFood		91000
#define global fltTrade			92000



#define global fltNone		99999

#define global ctype range_fltArmor(%1) 	((%1>=fltHeadHelm)&(%1<fltHeadRange))
#define global ctype range_fltAccessory(%1)	((%1>=fltHeadRing)&(%1<fltHeadItem))


#enum global fltSp=1
#enum global fltUnique
#enum global fltSpUnique
#enum global fltFriend
#enum global fltTown
#enum global fltSfTown
#enum global fltShop
#enum global fltSnow
#enum global fltTownSp

#enum global fltGoblin=1
#enum global fltOrc
#enum global fltSlime
#enum global fltElea
#enum global fltKobolt
#enum global fltSpider
#enum global fltYeek
#enum global fltMercenary
#enum global fltZombie
#enum global fltDog
#enum global fltBear
#enum global fltKamikaze
#enum global fltMummy
#enum global fltHoundFire
#enum global fltHoundIce
#enum global fltHoundLightning
#enum global fltHoundDarkness
#enum global fltHoundMind
#enum global fltHoundNerve
#enum global fltHoundPoison
#enum global fltHoundSound
#enum global fltHoundNether
#enum global fltHoundChaos

#define global fixBad		1
#define global fixNormal	2
#define global fixGood		3
#define global fixGreat		4
#define global fixGod		5
#define global fixUnique	6

#enum global fMode_readMap	=1
#enum global fMode_writeMap
#enum global fMode_readInv
#enum global fMode_writeInv
#enum global fMode_readCMap
#enum global fMode_writeCMap
#enum global fMode_readGame
#enum global fMode_writeGame
#enum global fMode_deleteSav
#enum global fMode_deleteTmp
#enum global fMode_deleteMap
#enum global fMode_deleteHome
#enum global fMode_deleteArea
#enum global fMode_writeGene
#enum global fMode_readGene
#enum global fMode_reloadCmap
#enum global fMode_readChara
#enum global fMode_writeChara
#enum global fMode_importMap
#enum global fMode_exportMap
#enum global fMode_importChara
#enum global fMode_exportChara
#enum global fMode_writeDeck
#enum global fMode_readDeck


#define global idGold 		54
#define global idFountain	173
#define global idShrine		172
#define global idChestGood	239
#define global idChestNormal	240
#define global idChestMoney	241
#define global idBookWish	289
#define global idShopBag	361

#define global idItemNull	25
#define global idCreatureNull	9
#define global idShopKeeper	1
#define global idShopGuardHead	159
#define global idShopGuardTail	161
#define global idRogueHead	303
#define global idRogueTail	305

#define global knownNone	0
#define global knownName	1
#define global knownQuality	2
#define global knownFull	3



#define global sizeListN 	40
#define global mode_Main	0
#define global mode_CharaMake	1
#define global mode_New		2
#define global mode_Continue	3
#define global mode_quickStart	4
#define global mode_normalStart 5
#define global mode_shop	6
#define global mode_event 	7
#define global mode_questChat	8
#define global mode_txtAdv	9
#define global mode_title	10
#define global mode_map		11
#define global mode_rp		12

#define global mStartUpstairs	1
#define global mStartDownstairs 2
#define global mStartEdge	3
#define global mStartCenter	4
#define global mStartRandom	5
#define global mStartWorld	6
#define global mStartSpec	7
#define global mStartBottom	8

#define global mExitTeleport	2
#define global mExitDead	3
#define global mExitNormal	4
#define global mExitNone	5


#define global mTypeWorld	1
#define global mTypeVillage	2
#define global mTypeTown	3
#define global mTypeLocal	4
#define global mTypeHome	5
#define global mTypeField	6
#define global mTypeQuest	7

#define global rangeDungeon	4
#define global headDungeon	20
#define global mTypeDungeon	20
#define global mTypeTower	21
#define global mTypeForest	22
#define global mTypeFort	23

#define global ctype rangeMtypeDungeon(%1) ((%1>=mTypeDungeon)&(%1<=mTypeFort))

#define global mFieldIndoor	1
#define global mFieldOutdoor	2


#define global objUpstairs	10
#define global objDownstairs	11
#define global objDownLocked	12
#define global objTrap		14
#define global objArea		15
#define global objDoorOpen	20
#define global objDoorClosed	21
#define global objHiddenPath	22
#define global objBoard		23
#define global objRE		24
#define global objREmine	25
#define global objREspring	26
#define global objREremain	27
#define global objREbush	28
#define global objPlant		29
#define global objBarrel	30
#define global objVoteBox	31
#define global objMedal		32
#define global objTownBoard	33
#define global objBuilding	34

#define global ctype rangeFeatRE(%1) ((%1>=24)&(%1<=28))



#define global propNone		0
#define global propNpc		1
#define global propShop		2
#define global propConstruct	3
#define global propQuest	4
#define global propSpecial	5

#define global rangePortrait	32
#define global rangePS		4
#define global psDull		0
#define global psMoney		1
#define global psScience	2
#define global psAdventure	3
#define global psShopkeeper	1000

#enum	global qArena		=1
#enum	global qPetArena

#enum	global qHeadRdQuest	=1000
#enum	global qHunt
#enum	global qDeliver
#enum	global qCook
#enum	global qSupply
#enum	global qMusic
#enum	global qHarvest
#enum	global qGuard
#enum	global qConquer
#enum	global qPerform
#enum	global qHuntEx
#enum	global qCollect

#enum	global qTypeEliminate	=1
#enum	global qTypeDeliver
#enum	global qTypeSupply
#enum	global qTypeMusic
#enum	global qTypeCarry
#enum	global qTypeGuard
#enum	global qTypePerform
#enum	global qTypeConquer
#enum	global qTypeCollect

#enum	global qDoing		=1
#enum	global qFail
#enum	global qSuccess

#enum	global rdStandard	=1
#enum 	global rdWide
#enum 	global rdBigRoom
#enum  	global rdResident
#enum  	global rdJail
#enum 	global rdHunt
#enum	global rdHarvest
#enum	global rdLong
#enum	global rdMaze
#enum	global rdDog
#enum	global rdPerform

#enum global rowActEat=1
#enum global rowActRead
#enum global rowActTravel
#enum global rowActRest
#enum global rowActDig
#enum global rowActPerform
#enum global rowActFish
#enum global rowActPlant
#enum global rowActSearch
#enum global rowActGeneral
#enum global rowActSex
#enum global rowActBlend

#enum global rowActSleep=100
#enum global rowActConstruct
#enum global rowActOpenHatch
#enum global rowActHarvest
#enum global rowActTrain
#enum global rowActSteal

#enum global roleFileIdNone=0
#enum global roleFileIdWander
#enum global roleFileTxtAdv
#enum global roleFileGene
#enum global roleFileIncome
#enum global roleFileShopIncome
#enum global roleFileFreezer
#enum global roleFileCoolerBox
#enum global roleFilePocket
#enum global roleFileIdBegin=1000

#define global raderSizeX	120
#define global raderSizeY	84


#define global styleShield	1
#define global styleTwohand	2
#define global styleTwoWield	4

#define global stDoomed		-2
#define global stCursed		-1
#define global stNormal		0
#define global stBlessed	1

#define global sourceStaff	1
#define global sourceScroll	2
#define global sourceSpell	3
#define global sourcePotion	4
#define global sourceTrap	5

#define global selInf		3
#define	global selScr		0
#define global selMap 		2
#define global selChr 		5
#define global selBuf		4
#define global selItem		1
#define global selMapS		6
#define global selPic		7
#define global selLog		8
#define global selPic2		9
#define global selPcc		10

#define global extTg		1000
#define global tgEnemy		2000
#define global tgSelf		3000
#define global tgArea		4000
#define global tgDir		5000
#define global tgOther		6000
#define global tgLocation	7000
#define global tgDirection	8000
#define global tgBoth		9000
#define global tgSelfOnly	10000

#define global rangeTrap	8
#define global trapArrow	0
#define global trapAcid		1
#define global trapSleep	2
#define global trapTeleport	3
#define global trapBlind	4
#define global trapConfuse	5
#define global trapParalyze	6
#define global trapMine		7

#enum global tradeFish=0
#enum global tradeDoll
#enum global tradeAlcohol
#enum global tradeCoffin
#enum global tradeMusic
#enum global tradeRope
#enum global tradeSnow
#enum global tradeArt
#enum global tailTrade


#define global tonePolite	0
#define global toneRude		1
#define global toneFriendly	2
#define global toneShy		3
#define global toneVIP		4
#define global toneBushi	5
#define global toneSu		6

#define global tsDungeon1	0
#define global tsWorld1		1
#define global tsTown1		2
#define global tsHome1		3
#define global tsWildness1	4
#define global tsDesert1	5
#define global tsDungeon2	6
#define global tsFire1		7
#define global tsSF1		8
#define global tsJP1		9
#define global tsWater1		10
#define global tsParty1		11
#define global tsJail		12

#define global tsTower1		100
#define global tsTower2		101
#define global tsFort1		200
#define global tsForest1	300

#define global weatherSunny	0
#define global weatherEther	1
#define global weatherSnow	2
#define global weatherRain	3
#define global weatherHardRain	4
#define global maxArea		500
#define global maxAdata		40
#define global headUserArea	300
#define global headRandArea	450

#define global maxAreaOld	200
#define global headUserAreaOld	100
#define global headRandAreaOld	150

#define global areaWorld	1
#define global areaWildness	2
#define global areaLesimas	3
#define global areaNorthTyris	4
#define global areaVernis	5
#define global areaArena	6
#define global areaHome		7
#define global areaRandDungeon	8
#define global areaRQ		9
#define global areaGraveyard	10
#define global areaKapul	11
#define global areaYowyn	12
#define global areaQuest	13
#define global areaRogueDen	14
#define global areaPalmia	15
#define global areaFireTrial	16
#define global areaUndeadTrial	17
#define global areaRogueTrial	18
#define global areaDragonNest	19
#define global areaShrine	20
#define global areaCyberDome	21
#define global areaGod1		22
#define global areaGod2		23
#define global areaGod3		24
#define global areaHighMountain	25
#define global areaMountainPass	26
#define global areaDogDungeon	27
#define global areaYeekDungeon	28
#define global areaSister	29
#define global areaShelter	30
#define global areaRanch	31
#define global areaOffice	32
#define global areaNoyel	33
#define global areaSmith	34
#define global areaShowHouse	35
#define global areaLumiest	36
#define global areaPyramid	37
#define global areaMinotaur	38
#define global areaDungeon	39
#define global areaPetArena	40
#define global areaJail		41
#define global areaVoid		42
#define global areaStationNT1	43
#define global areaSouthTyris	44
#define global areaStationST1	45
#define global areaInn1		46
#define global areaTestWorld	47
#define global areaStationTW	48

#define global areaMuseum	101
#define global areaShop		102
#define global areaCrop		103
#define global areaStorage	104


#define global ctype areaType(%1)		adata(0,%1)
#define global ctype areaX(%1)			adata(1,%1)
#define global ctype areaY(%1)			adata(2,%1)
#define global ctype areaStartOn(%1)		adata(3,%1)
#define global ctype areaTileFile(%1)		adata(4,%1)
#define global ctype areaName(%1)		adata(5,%1)
#define global ctype areaDeepest(%1)		adata(6,%1)
#define global ctype areaTimescale(%1)		adata(9,%1)
#define global ctype areaMaxLevel(%1)		adata(10,%1)
#define global ctype areaCanSave(%1)		adata(11,%1)
#define global ctype areaRestorePos(%1)		adata(12,%1)
#define global ctype areaIcon(%1)		adata(15,%1)
#define global ctype areaId(%1)			adata(16,%1)
#define global ctype areaMinLevel(%1)		adata(17,%1)
#define global ctype areaTileSet(%1)		adata(18,%1)
#define global ctype areaLastVisit(%1)		adata(19,%1)
#define global ctype areaBoss(%1)		adata(20,%1)
#define global ctype areaField(%1)		adata(21,%1)
#define global ctype areaArenaWin(%1)		adata(22,%1)
#define global ctype areaPetArenaWin(%1)	adata(23,%1)
#define global ctype areaRandSeed(%1)		adata(24,%1)
#define global ctype areaRandRenew(%1)		adata(25,%1)
#define global ctype areaArenaRenew1(%1)	adata(26,%1)
#define global ctype areaArenaRenew2(%1)	adata(27,%1)
#define global ctype areaEconomy(%1)		adata(28,%1)
#define global ctype areaFestival(%1)		adata(29,%1)
#define global ctype areaParent(%1)		adata(30,%1)
#define global maxClient 	500
#define global maxQdata		20
#define global sizeQname	40

#define global ctype qClient(%1)	qdata(0,%1)
#define global ctype qMap(%1)		qdata(1,%1)
#define global ctype qRenew(%1)		qdata(2,%1)
#define global ctype qExist(%1)		qdata(3,%1)
#define global ctype qVar(%1)		qdata(4,%1)
#define global ctype qLevel(%1)		qdata(5,%1)
#define global ctype qReward(%1)	qdata(6,%1)
#define global ctype qRewardItem(%1)	qdata(7,%1)
#define global ctype qStatus(%1)	qdata(8,%1)
#define global ctype qDeadline(%1)	qdata(9,%1)
#define global ctype qEncount(%1)	qdata(10,%1)
#define global ctype qDestClient(%1)	qdata(10,%1)
#define global ctype qDestItem(%1)	qdata(11,%1)
#define global ctype qParam1(%1)	qdata(12,%1)
#define global ctype qParam2(%1)	qdata(13,%1)
#define global ctype qType(%1)		qdata(14,%1)
#define global ctype qQuestTarget(%1)	qdata(15,%1)
#define global sizeCmapMdata		5
#define global mWidth 			mdata(0)
#define global mHeight 			mdata(1)
#define global mTileFile		mdata(2)
#define global mRenew			mdata(3)
#define global mDownStairPos		mdata(4)
#define global mUpStairPos		mdata(5)
#define global mType			mdata(6)
#define global mCanSave			mdata(7)
#define global mRestorePos		mdata(8)
#define global mTimeScale		mdata(9)
#define global mModerateCrowd		mdata(10)
#define global mLevel			mdata(11)
#define global mTileSet			mdata(12)
#define global mMusic			mdata(13)
#define global mField			mdata(14)
#define global mWall			mdata(15)
#define global mRenewMinor		mdata(16)
#define global mNoRenew			mdata(17)
#define global mMaxInv			mdata(18)
#define global mVersion			mdata(19)
#define global mFireSound		mdata(20)
#define global mVersionFix1		mdata(21)
#define global mnName			mdataN(0)
#define global headBody		100
#define global sizeBody		30
#define global extBody		10000
#define global bodyHead		1
#define global bodyNeck		2
#define global bodyBack		3
#define global bodyChest	4
#define global bodyHand		5
#define global bodyFinger	6
#define global bodyArm		7
#define global bodyWaist	8
#define global bodyLeg		9
#define global bodyRange	10
#define global bodyAmmo		11

#enum global blood=0
#enum global bloodStone

#define global ctype cExist(%1) 	cdata(0,%1)
#define global ctype cX(%1) 		cdata(1,%1)
#define global ctype cY(%1) 		cdata(2,%1)
#define global ctype cXnew(%1) 		cdata(3,%1)
#define global ctype cYnew(%1) 		cdata(4,%1)
#define global ctype cRespawn(%1) 	cdata(5,%1)
#define global ctype cSync(%1) 		cdata(6,%1)
#define global ctype cPic(%1) 		cdata(7,%1)
#define global ctype cSex(%1) 		cdata(8,%1)
#define global ctype cRelation(%1)	cdata(9,%1)

#define global ctype cSpeedSum(%1) 	cdata(10,%1)
#define global ctype cSpeed(%1) 	cdata(11,%1)
#define global ctype cAiItem(%1)	cdata(12,%1)
#define global ctype cPortrait(%1) 	cdata(13,%1)
#define global ctype cInterest(%1) 	cdata(14,%1)
#define global ctype cInterestRenew(%1) cdata(15,%1)
#define global ctype cPersonality(%1) 	cdata(16,%1)
#define global ctype cImpression(%1) 	cdata(17,%1)
#define global ctype cTone(%1)	 	cdata(18,%1)
#define global ctype cHeight(%1)	cdata(19,%1)
#define global ctype cWeight(%1)	cdata(20,%1)
#define global ctype cAge(%1)		cdata(21,%1)
#define global ctype cHunger(%1)	cdata(22,%1)
#define global ctype cTxt(%1)		cdata(23,%1)
#define global ctype cUnique(%1)	cdata(24,%1)
#define global ctype cQuality(%1)	cdata(25,%1)
#define global ctype cTurn(%1)	 	cdata(26,%1)
#define global ctype cId(%1)	 	cdata(27,%1)
#define global ctype cFov(%1) 		cdata(28,%1)
#define global ctype cTarget(%1)	cdata(29,%1)
#define global ctype cGold(%1) 		cdata(30,%1)
#define global ctype cPlat(%1)	 	cdata(31,%1)
#define global ctype cAttackStyle(%1) 	cdata(32,%1)
#define global ctype cMeleeStyle(%1) 	cdata(33,%1)
#define global ctype cFame(%1) 		cdata(34,%1)
#define global ctype cExp(%1) 		cdata(35,%1)
#define global ctype cExpToNext(%1) 	cdata(36,%1)
#define global ctype cTimeScale(%1) 	cdata(37,%1)
#define global ctype cLevel(%1) 	cdata(38,%1)
#define global ctype cSpeedFix(%1) 	cdata(39,%1)
#define global ctype cAlignment(%1) 	cdata(40,%1)
#define global ctype cSkillPoint(%1) 	cdata(41,%1)
#define global ctype cSPearned(%1) 	cdata(42,%1)
#define global ctype cInvWeight(%1) 	cdata(43,%1)
#define global ctype cCarryLimit(%1) 	cdata(44,%1)
#define global ctype cBurden(%1) 	cdata(45,%1)
#define global ctype cLevelOrg(%1) 	cdata(48,%1)
#define global ctype cKarma(%1) 	cdata(49,%1)
#define global ctype cHP(%1) 		cdata(50,%1)
#define global ctype cMHP(%1) 		cdata(51,%1)
#define global ctype cSP(%1) 		cdata(52,%1)
#define global ctype cMSP(%1) 		cdata(53,%1)
#define global ctype cMP(%1) 		cdata(55,%1)
#define global ctype cMMP(%1)		cdata(56,%1)
#define global ctype cDrainHP(%1)	cdata(60,%1)
#define global ctype cGod(%1)		cdata(61,%1)
#define global ctype cPiety(%1)		cdata(62,%1)
#define global ctype cPray(%1)		cdata(63,%1)
#define global ctype cEqWeight(%1)	cdata(64,%1)
#define global ctype cCastStyle(%1) 	cdata(65,%1)
#define global ctype cVopalChance(%1) 	cdata(66,%1)
#define global ctype cCritChance(%1) 	cdata(67,%1)
#define global ctype cBodySpdFix(%1) 	cdata(68,%1)
#define global ctype cOrgRelation(%1)	cdata(69,%1)

#define global ctype cPV(%1) 		cdata(70,%1)
#define global ctype cDV(%1) 		cdata(71,%1)
#define global ctype cATK(%1) 		cdata(72,%1)
#define global ctype cDMG(%1) 		cdata(73,%1)
#define global ctype cRATK(%1) 		cdata(74,%1)
#define global ctype cRDMG(%1) 		cdata(75,%1)
#define global ctype cPvFix(%1) 	cdata(76,%1)
#define global ctype cDvFix(%1) 	cdata(77,%1)
#define global ctype cBarrier(%1)	cdata(78,%1)
#define global ctype cEmoIcon(%1)	cdata(79,%1)


#define global ctype cArea(%1) 		cdata(80,%1)
#define global ctype cAreaLv(%1) 	cdata(81,%1)
#define global ctype cQuestNpc(%1) 	cdata(82,%1)
#define global ctype cDir(%1)	 	cdata(83,%1)
#define global ctype cHireDate(%1)	cdata(84,%1)
#define global ctype cFriendship(%1)	cdata(85,%1)
#define global ctype cSAN(%1)		cdata(86,%1)
#define global ctype cCurse(%1) 	cdata(87,%1)
#define global ctype cExtraMelee(%1) 	cdata(88,%1)
#define global ctype cExtraShoot(%1) 	cdata(89,%1)
#define global ctype cResDamage(%1) 	cdata(90,%1)
#define global ctype cImmuneDamage(%1) 	cdata(91,%1)
#define global ctype cReflectDamage(%1)	cdata(92,%1)
#define global ctype cVomit(%1)		cdata(93,%1)

#define global ctype cRowAct(%1)	cdata(140,%1)
#define global ctype cActionPeriod(%1) 	cdata(141,%1)
#define global ctype cItemUsing(%1) 	cdata(142,%1)
#define global ctype cRowActWarn(%1)	cdata(143,%1)
#define global ctype cPerformScore(%1) 	cdata(144,%1)
#define global ctype cPerformGold(%1)	cdata(145,%1)

#define global ctype cRole(%1) 		cdata(150,%1)
#define global ctype cRoleShopLv(%1)	cdata(151,%1)
#define global ctype cRowActTc(%1)	cdata(152,%1)
#define global ctype cRoleFileId(%1) 	cdata(153,%1)
#define global ctype cRoleRestock(%1) 	cdata(154,%1)
#define global ctype cRoleVal(%1) 	cdata(155,%1)
#define global ctype cAiInt(%1) 	cdata(156,%1)
#define global ctype cUNID(%1)	 	cdata(157,%1)
#define global ctype cRaceId(%1)	cdata(158,%1)


#define global ctype cXorg(%1) 		cdata(171,%1)
#define global ctype cYorg(%1) 		cdata(172,%1)

#define global ctype cAi(%1)		cdata(200,%1)
#define global ctype cAiAggro(%1) 	cdata(201,%1)
#define global ctype cAiCalm(%1) 	cdata(202,%1)
#define global ctype cMoveAround(%1) 	cdata(203,%1)
#define global ctype cMoveDir(%1) 	cdata(204,%1)
#define global ctype cXdest(%1)		cdata(205,%1)
#define global ctype cYdest(%1)		cdata(206,%1)
#define global ctype cAiMoveFreq(%1)	cdata(207,%1)
#define global ctype cAiDistance(%1)	cdata(208,%1)
#define global ctype cAiSub(%1)		cdata(209,%1)

#define global ctype cActRange(%1)	cdata(210,%1)
#define global ctype cActHeal(%1)	cdata(211,%1)
#define global ctype cActIndex(%1)	cdata(212,%1)

#define global headActMain		215
#define global rangeActMain		5
#define global headActSub		220
#define global rangeActSub		5

#define global extEle 100000
#define global ctype cElement(%1)	cdata(230,%1)


#define global headAttbFix		240

#define global headCondition		250
#define global ctype cPoison(%1)	cdata(250,%1)
#define global ctype cSleep(%1)		cdata(251,%1)
#define global ctype cParalyze(%1)	cdata(252,%1)
#define global ctype cBlind(%1)		cdata(253,%1)
#define global ctype cConfuse(%1)	cdata(254,%1)
#define global ctype cFear(%1)		cdata(255,%1)
#define global ctype cDim(%1)		cdata(256,%1)
#define global ctype cDrunk(%1)		cdata(257,%1)
#define global ctype cBleed(%1)		cdata(258,%1)
#define global ctype cWet(%1)		cdata(259,%1)
#define global ctype cInsane(%1)	cdata(260,%1)
#define global ctype cSick(%1)		cdata(261,%1)
#define global ctype cGravity(%1)	cdata(262,%1)
#define global ctype cMochi(%1)		cdata(263,%1)
#define global ctype cAngry(%1)		cdata(264,%1)

#define global headFoodExp	270
#define global rangeFoodExp	10

#define global headBuff		280
#define global arrayBuff	3
#define global maxBless		8
#define global maxHex		8

#define global headCBit		450
#define global rangeTempCbit	30
#define global maxCbit		50

#enum global cFloat	=5
#enum global cInvisi
#enum global cSeeInvisi
#enum global cResConfuse
#enum global cResBlind
#enum global cResFear
#enum global cResSleep
#enum global cResParalyze
#enum global cResPoison
#enum global cEater
#enum global cResSteal
#enum global cIncognito
#enum global cDropGold
#enum global cSuicide
#enum global cDeathMaster
#enum global cRapidMagic
#enum global cLayHand
#enum global cHorse
#enum global cSplit
#enum global cEncCurse
#enum global cNoHorse
#enum global cResEle
#enum global cSplit2
#enum global cMetal
#enum global cCureBleeding
#enum global cPowerBash
#enum global cImmuneMine
#enum global cTemper

#enum global cLivestock	=rangeTempCbit*32
#enum global cMarry
#enum global cMakeLove
#enum global cBodyguard
#enum global cSummoned
#enum global cShutup
#enum global cScope
#enum global cPcc
#enum global cLeash
#enum global cHired
#enum global cQuestTarget
#enum global cGuardTemp
#enum global cSuicideSwitch
#enum global cDeathCount
#enum global cLayHandCharge
#enum global cRide
#enum global cPrecious
#enum global cHaveName
#enum global cPregnant
#enum global cNoTarget
#enum global cContingency
#enum global cRefresh
#enum global cEventTalk
#enum global cStoneBlood
#enum global cTokenFriend
#enum global cSandBag
#enum global cAnorexia
#enum global cPoisonFlag
#enum global cAiSaveMana
#enum global cMsgFile
#enum global cNoGod
#enum global cFestival


#define global ctype cFoodExp(%1,%2)	cdata(headFoodExp+(%1)-rsSTR,%2)

#define global ctype cBuff(%1,%2)	cdata(headBuff+(%1)*arrayBuff,%2)
#define global ctype cBuffPower(%1,%2)	cdata(headBuff+(%1)*arrayBuff+1,%2)
#define global ctype cBuffDur(%1,%2)	cdata(headBuff+(%1)*arrayBuff+2,%2)

#define global ctype cnName(%1) 	cdataN(0,%1)
#define global ctype cnAka(%1)		cdataN(1,%1)
#define global ctype cnRace(%1) 	cdataN(2,%1)
#define global ctype cnClass(%1) 	cdataN(3,%1)
#define global ctype cnMsg(%1) 		cdataN(4,%1)
#define global ctype cnUNTAG(%1) 	cdataN(5,%1)

#enum global cRefNone	=1
#enum global cOrgNameRef
#enum global cLootRef
#enum global cEquipTypeRef
#enum global cColRef
#enum global cRareRef
#enum global cBloodRef
#enum global cFilterRef
#enum global cBreederRef

#define global ctype cLoot(%1) 		refChara(cId(%1),cLootRef)
#define global ctype cCol(%1)		refChara(cId(%1),cColRef)
#define global ctype cRare(%1)		refChara(cId(%1),cRareRef)

#define global ctype cBlood(%1)		refRace(%1,cBloodRef)
#define global ctype cBreederOrg(%1)	refRace(%1,cBreederRef)

#define global ctype cEquipType(%1) 	refClass(%1,cEquipTypeRef)
#define global ctype cnFilter(%1) 	refChara(%1,cFilterRef,1)
#define global ctype cnOrgName(%1) 	refChara(%1,cOrgNameRef,1)
#define global gDeath			gdata(0)
#define global gDeepest			gdata(1)
#define global gKilled			gdata(2)
#define global gCrowd			gdata(3)
#define global gTurn			gdata(4)
#define global gWorldX			gdata(5)
#define global gWorldY			gdata(6)
#define global gDayPast			gdata(7)
#define global gRandSeedA		gdata(8)
#define global gRandSeedB		gdata(9)

#define global gYear 			gdata(10)
#define global gMonth 			gdata(11)
#define global gDay 			gdata(12)
#define global gHour 			gdata(13)
#define global gMin 			gdata(14)
#define global gSec 			gdata(15)
#define global gCountShop		gdata(16)
#define global gWeather			gdata(17)
#define global gNextWeather		gdata(18)
#define global gAreaPrev		gdata(19)

#define global gArea 			gdata(20)
#define global gSubArea 		gdata(21)
#define global gLevel 			gdata(22)
#define global gSubLevel		gdata(23)
#define global gHomeLevel		gdata(24)
#define global gAbsorbCharge		gdata(25)
#define global gLevelStartOn		gdata(26)
#define global gCountShelter		gdata(27)
#define global gTravelSpeed		gdata(28)
#define global gResEtherWind		gdata(29)

#define global gRun 			gdata(30)
#define global gRunLeft 		gdata(31)
#define global gRunUp 			gdata(32)
#define global gRunRight 		gdata(33)
#define global gRunDown			gdata(34)
#define global gRunDir			gdata(35)
#define global gStoryBookmark		gdata(36)
#define global gLightSource		gdata(37)
#define global gQuitY			gdata(38)
#define global gLearned			gdata(39)

#define global ctype gShortcut(%1)	gdata(40+%1)

#define global gLastEdgeX		gdata(60)
#define global gLastEdgeY		gdata(61)
#define global gWorldTile		gdata(62)
#define global gReturn 			gdata(63)
#define global gTeleportArea		gdata(64)
#define global gTeleportLevel		gdata(65)
#define global gReturnArea		gdata(66)
#define global gReturnLevel		gdata(67)
#define global gReturnX			gdata(68)
#define global gReturnY			gdata(69)

#define global gQuest			gdata(70)
#define global gQuestType		gdata(71)
#define global gQuestRef		gdata(72)
#define global gQuestStatus		gdata(73)
#define global gQuestFame		gdata(74)
#define global gClient			gdata(75)
#define global gHomeBase		gdata(76)
#define global gHomeFurniture		gdata(77)
#define global gHomeValue		gdata(78)
#define global gWorldRenew		gdata(79)

#define global gCargoWeight		gdata(80)
#define global gCargoLimitOrg		gdata(81)
#define global gCargoLimit		gdata(82)
#define global gResWeather		gdata(83)
#define global gTimelimit		gdata(84)
#define global gCorrupt			gdata(85)
#define global unCount			gdata(86)
#define global gCountNotice		gdata(87)
#define global gNextTrain		gdata(88)
#define global gLight			gdata(89)

#define global gSleep			gdata(90)
#define global gRowAct			gdata(91)
#define global gSleepExp		gdata(92)
#define global gTraitPoint		gdata(93)
#define global gScope			gdata(94)
#define global gWellWish		gdata(95)
#define global gVersion			gdata(96)
#define global gHeirDeed		gdata(97)
#define global gSleepGene		gdata(98)
#define global gNextVote		gdata(99)

#define global rankArena	0
#define global rankPetArena	1
#define global rankCrawler	2
#define global rankMuseum	3
#define global rankHome		4
#define global rankShop		5
#define global rankVote		6
#define global rankFishing	7
#define global rankGuild	8
#define global tailRank		9

#const	global headRank		120
#define global gRankArena		gdata(120)
#define global gRankPetArena		gdata(121)
#define global gRankCrawler		gdata(122)
#define global gRankMuseum		gdata(123)
#define global gRankHome		gdata(124)
#define global gRankShop		gdata(125)
#define global gRankVote		gdata(126)
#define global gRankFishing		gdata(127)
#define global gRankGuild		gdata(128)


#const	global headRankNorma	140



#const	global headQuestPool	160
#define global ctype gQuestPool(%1)	gdata(headQuestPool+%1)

#define global gCostHire		gdata(170)
#define global gMapEvent		gdata(171)
#define global gBill			gdata(179)
#define global gTravelDistance		gdata(180)
#define global gTravelTime		gdata(181)
#define global gLastTown		gdata(182)
#define global gRider			gdata(183)
#define global gMapVersion		gdata(184)
#define global gGodTalk			gdata(185)
#define global gVoidBoss		gdata(186)
#define global gGodDetect		gdata(187)

#const	global helpHead		200

#const  global flagHead		250
#define global flagTutorial		gdata(flagHead+0)
#define global flagMain			gdata(flagHead+2)
#define global flagMsFool		gdata(flagHead+3)
#define global flagMsSage		gdata(flagHead+4)
#define global flagMsKing		gdata(flagHead+5)
#define global flagCasino		gdata(flagHead+6)
#define global flagAlly			gdata(flagHead+7)
#define global flagFireGiant		gdata(flagHead+8)
#define global fireGiantId		gdata(flagHead+9)
#define global flagHolyWell		gdata(flagHead+10)
#define global flagKamikaze		gdata(flagHead+11)
#define global flagRenewDungeon		gdata(flagHead+12)
#define global flagMageGuild		gdata(flagHead+13)
#define global flagFighterGuild		gdata(flagHead+14)
#define global flagThiefGuild		gdata(flagHead+15)
#define global flagMageGuildNorma	gdata(flagHead+16)
#define global fFGNorma			gdata(flagHead+17)
#define global fFGTG			gdata(flagHead+18)
#define global flagThiefGuildNorma	gdata(flagHead+19)

#define global sqSlime			gdata(flagHead+200)
#define global sqRogue			gdata(flagHead+201)
#define global sqNightmare		gdata(flagHead+202)
#define global sqMother			gdata(flagHead+203)
#define global sqWife			gdata(flagHead+204)
#define global sqDog			gdata(flagHead+205)
#define global sqCat			gdata(flagHead+206)
#define global sqWar			gdata(flagHead+207)
#define global sqYeek			gdata(flagHead+208)
#define global sqKamikaze		gdata(flagHead+209)
#define global sqSilverCat		gdata(flagHead+210)
#define global sqVein			gdata(flagHead+211)
#define global sqPyramid		gdata(flagHead+212)
#define global sqNuke			gdata(flagHead+213)
#define global sqBiologist		gdata(flagHead+214)
#define global sqSewer			gdata(flagHead+215)
#define global sqMageGuild		gdata(flagHead+216)
#define global sqFighterGuild		gdata(flagHead+217)
#define global sqThiefGuild		gdata(flagHead+218)
#define global sqMage1			gdata(flagHead+219)
#define global sqFighter1		gdata(flagHead+220)
#define global sqThief1			gdata(flagHead+221)
#define global sqMinotaur		gdata(flagHead+222)
#define global sqDaddy			gdata(flagHead+223)
#define global sqKaneda			gdata(flagHead+224)

#const  global headCorrupt		700
#const  global headDisplaySkill		750

#define global gEtherSpeed		gdata(800)
#define global gTimeStopTime		gdata(801)
#define global gExBattleWin		gdata(802)
#define global gExBattleMaxLv		gdata(803)
#define global gNextUpload		gdata(804)
#define global gPlayTime		gdata(805)
#define global gLastEther		gdata(806)
#define global gGodRank			gdata(807)
#define global gEquipChange		gdata(808)
#define global dmgType			gdata(809)

#define global gSisterKilled		gdata(810)
#define global gSisterSaved		gdata(811)
#define global gSisterReward		gdata(812)
#define global gDeck			gdata(813)
#define global gGuest			gdata(814)

#define global gCapital			gdata(815)
#define global gBasicTax		gdata(820)

#define global gGuildTrainer		gdata(825)
#define global gItemTurn		gdata(826)
#define global gNewFeat			gdata(827)
#define global gWizard			gdata(828)
#define global gToken			gdata(829)
#define global ctype gDeckSize(%1)	gdata(830+%1)

#define global gWorld			gdata(850)
#define global gWallet			gdata(851)


#define global ctype gPccHair(%1)		pcc(1,%1)
#define global ctype gPccChest(%1)		pcc(2,%1)
#define global ctype gPccLeg(%1)		pcc(3,%1)
#define global ctype gPccMantle(%1)		pcc(4,%1)
#define global ctype gPccBelt(%1)		pcc(5,%1)
#define global ctype gPccBoots(%1)		pcc(6,%1)
#define global ctype gPccPants(%1)		pcc(7,%1)
#define global ctype gPccGlove(%1)		pcc(8,%1)
#define global ctype gPccCloth(%1)		pcc(9,%1)
#define global ctype gPccSubHair(%1)		pcc(10,%1)
#define global ctype gPccEtc(%1)		pcc(11,%1)
#define global ctype gPccEtc2(%1)		pcc(12,%1)
#define global ctype gPccEtc3(%1)		pcc(13,%1)
#define global ctype gPccEye(%1)		pcc(14,%1)
#define global ctype gPccBody(%1)		pcc(15,%1)
#define global ctype gPccRide(%1)		pcc(16,%1)

#define global gPccHideHead			20
#define global ctype gPccChestHide(%1)		pcc(20,%1)
#define global ctype gPccLegHide(%1)		pcc(21,%1)
#define global ctype gPccBeltHide(%1)		pcc(22,%1)
#define global ctype gPccGloveHide(%1)		pcc(23,%1)
#define global ctype gPccMantleHide(%1)		pcc(24,%1)

#define global gnTeam1			gdataN(0)
#define global gnTeam2			gdataN(1)
#enum global godNone	=0
#enum global godMachine
#enum global godWind
#enum global godElement
#enum global godLuck
#enum global godEarth
#enum global godHeal
#enum global godHarvest
#enum global tailGod
#define global rangeSdata 	600
#define global extSkillOrg	1000000

#define global ctype resLv(%1)	%1/50

#define global rsHP	2
#define global rsMP	3
#define global ctype sHP(%1=0)			sdata(rsHP,%1)
#define global ctype sMP(%1=0)			sdata(rsMP,%1)

#enum global headAttb	=10

#enum global rsSTR	=10
#enum global rsEND
#enum global rsDEX
#enum global rsPER
#enum global rsLER
#enum global rsWIL
#enum global rsMAG
#enum global rsCHR
#enum global rsSPD
#enum global rsLUC

#enum global tailAttb

#define global ctype sSTR(%1=0)			sdata(rsSTR,%1)
#define global ctype sEND(%1=0)			sdata(rsEND,%1)
#define global ctype sDEX(%1=0)			sdata(rsDEX,%1)
#define global ctype sPER(%1=0)			sdata(rsPER,%1)
#define global ctype sLER(%1=0)			sdata(rsLER,%1)
#define global ctype sWIL(%1=0)			sdata(rsWIL,%1)
#define global ctype sMAG(%1=0)			sdata(rsMAG,%1)
#define global ctype sCHR(%1=0)			sdata(rsCHR,%1)
#define global ctype sSPD(%1=0)			sdata(rsSPD,%1)
#define global ctype sLUC(%1=0)			sdata(rsLUC,%1)

#enum global headResist		=50

#enum global rsResFire		=50
#enum global rsResCold
#enum global rsResLightning
#enum global rsResDarkness
#enum global rsResMind
#enum global rsResPoison
#enum global rsResNether
#enum global rsResSound
#enum global rsResNerve
#enum global rsResChaos
#enum global rsResMagic
#enum global tailResist

#enum global rsResCut=tailResist
#enum global rsResEther
#enum global rsResAcid
#enum global tailResistSp

#define global ctype sResFire(%1=0)		sdata(rsResFire,%1)
#define global ctype sResCold(%1=0)		sdata(rsResCold,%1)
#define global ctype sResLightning(%1=0)	sdata(rsResLightning,%1)
#define global ctype sResNether(%1=0)		sdata(rsResNether,%1)
#define global ctype sResDarkness(%1=0)		sdata(rsResDarkness,%1)
#define global ctype sResMind(%1=0)		sdata(rsResMind,%1)
#define global ctype sResPoison(%1=0)		sdata(rsResPoison,%1)
#define global ctype sResSound(%1=0)		sdata(rsResSound,%1)
#define global ctype sResChaos(%1=0)		sdata(rsResChaos,%1)
#define global ctype sResNerve(%1=0)		sdata(rsResNerve,%1)
#define global ctype sResMagic(%1=0)		sdata(rsResMagic,%1)

#define global ctype sResCut(%1=0)		sdata(rsResCut,%1)
#define global ctype sResEther(%1=0)		sdata(rsResEtherc,%1)
#define global ctype sResAcid(%1=0)		sdata(rsResAcid,%1)



#enum global headWeaponSkill	=100

#enum global rsLongSword	=100
#enum global rsShortSword
#enum global rsAxe
#enum global rsBlunt
#enum global rsPole
#enum global rsStave
#enum global rsMartial
#enum global rsSickle
#enum global rsBow
#enum global rsCrossBow
#enum global rsGun
#enum global rsThrow

#enum global tailWeaponSkill

#define global ctype sLongSword(%1=0)		sdata(rsLongSword,%1)
#define global ctype sShortSword(%1=0)		sdata(rsShortSword,%1)
#define global ctype sAxe(%1=0)			sdata(rsAxe,%1)
#define global ctype sBlunt(%1=0)		sdata(rsBlunt,%1)
#define global ctype sPole(%1=0)		sdata(rsPole,%1)
#define global ctype sStave(%1=0)		sdata(rsStave,%1)
#define global ctype sMartial(%1=0)		sdata(rsMartial,%1)
#define global ctype sSickle(%1=0)		sdata(rsSickle,%1)

#define global ctype sBow(%1=0)			sdata(rsBow,%1)
#define global ctype sCrossBow(%1=0)		sdata(rsCrossBow,%1)
#define global ctype sGun(%1=0)			sdata(rsGun,%1)
#define global ctype sThrow(%1=0)		sdata(rsThrow,%1)

#define global ctype sTwoWield(%1=0)		sdata(rsTwoWield,%1)
#define global ctype sTwoHand(%1=0)		sdata(rsTwoHand,%1)
#define global ctype sHeavyArmor(%1=0)		sdata(rsHeavyArmor,%1)
#define global ctype sMediumArmor(%1=0)		sdata(rsMediumArmor,%1)
#define global ctype sLightArmor(%1=0)		sdata(rsLightArmor,%1)

#define global ctype sShield(%1=0)		sdata(rsShield,%1)
#define global ctype sEvade(%1=0)		sdata(rsEvade,%1)


#enum global headNormalSkill	=150

#enum global rsLiteracy		=150
#enum global rsGene
#enum global rsTactics
#enum global rsWeightLifting
#enum global rsHealing
#enum global rsMeditation
#enum global rsTrade
#enum global rsStealth
#enum global rsOpenLock
#enum global rsDetection
#enum global rsInvest
#enum global rsAnatomy
#enum global rsSenseQuality
#enum global rsMining
#enum global rsMagicCapacity
#enum global rsMemorize
#enum global rsTwoWield
#enum global rsTwoHand
#enum global rsShield
#enum global rsHeavyArmor
#enum global rsMediumArmor
#enum global rsLightArmor
#enum global rsCasting
#enum global rsEvade
#enum global rsMagicDevice
#enum global rsDisarmTrap
#enum global rsCarpentry
#enum global rsTailor
#enum global rsAlchemy
#enum global rsJeweller
#enum global rsGardening
#enum global rsPrayer
#enum global rsTravel
#enum global rsPerform
#enum global rsCooking
#enum global rsFishing
#enum global rsCritical
#enum global rsEvadePlus
#enum global rsMagicControl
#enum global rsMarksman

#enum global tailNormalSkill

#define global ctype sTactics(%1=0)		sdata(rsTactics,%1)
#define global ctype sMarksman(%1=0)		sdata(rsMarksman,%1)
#define global ctype sLiteracy(%1=0)		sdata(rsLiteracy,%1)
#define global ctype sCasting(%1=0)		sdata(rsCasting,%1)
#define global ctype sWeightLifting(%1=0)	sdata(rsWeightLifting,%1)
#define global ctype sHealing(%1=0)		sdata(rsHealing,%1)
#define global ctype sMeditation(%1=0)		sdata(rsMeditation,%1)
#define global ctype sTrade(%1=0)		sdata(rsTrade,%1)
#define global ctype sStealth(%1=0)		sdata(rsStealth,%1)
#define global ctype sOpenLock(%1=0)		sdata(rsOpenLock,%1)
#define global ctype sDetection(%1=0)		sdata(rsDetection,%1)
#define global ctype sInvest(%1=0)		sdata(rsInvest,%1)
#define global ctype sAnatomy(%1=0)		sdata(rsAnatomy,%1)
#define global ctype sSenseQuality(%1=0)	sdata(rsSenseQuality,%1)
#define global ctype sMining(%1=0)		sdata(rsMining,%1)
#define global ctype sMagicCapacity(%1=0)	sdata(rsMagicCapacity,%1)
#define global ctype sMemorize(%1=0)		sdata(rsMemorize,%1)
#define global ctype sMagicDevice(%1=0)		sdata(rsMagicDevice,%1)
#define global ctype sDisarmTrap(%1=0)		sdata(rsDisarmTrap,%1)

#define global ctype sCarpentry(%1=0)		sdata(rsCarpentry,%1)
#define global ctype sTailor(%1=0)		sdata(rsTailor,%1)
#define global ctype sAlchemy(%1=0)		sdata(rsAlchemy,%1)
#define global ctype sJeweller(%1=0)		sdata(rsJeweller,%1)
#define global ctype sGardening(%1=0)		sdata(rsGardening,%1)
#define global ctype sPrayer(%1=0)		sdata(rsPrayer,%1)
#define global ctype sTravel(%1=0)		sdata(rsTravel,%1)
#define global ctype sGene(%1=0)		sdata(rsGene,%1)

#define global ctype sCritical(%1=0)		sdata(rsCritical,%1)
#define global ctype sEvadePlus(%1=0)		sdata(rsEvadePlus,%1)
#define global ctype sMagicControl(%1=0)	sdata(rsMagicControl,%1)

#enum global headActiveSkill	=300
#enum global rsPickpocket	=300
#enum global rsRiding
#enum global tailActiveSkill

#define global ctype sPerform(%1=0)		sdata(rsPerform,%1)
#define global ctype sCooking(%1=0)		sdata(rsCooking,%1)
#define global ctype sFishing(%1=0)		sdata(rsFishing,%1)
#define global ctype sPickpocket(%1=0)		sdata(rsPickpocket,%1)
#define global ctype sRiding(%1=0)		sdata(rsRiding,%1)
#enum global headSpell		=400

#enum global spHealLight	=400
#enum global spHealCritical
#enum global spHeal
#enum global spHealAll
#enum global spHealRain
#enum global spHealTouch
#enum global spRemoveHex
#enum global spVanishHex

#enum global spTeleportSelf
#enum global spTeleportOther
#enum global spShortTeleport
#enum global spIdentify
#enum global spUncurse
#enum global spRevealArtifact

#enum global spMagicArrow
#enum global spNetherArrow
#enum global spNerveArrow
#enum global spChaosArrow
#enum global spDarknessArrow

#enum global spIceBolt
#enum global spFireBolt
#enum global spLightningBolt
#enum global spDarknessBolt
#enum global spMindBolt

#enum global spSummon
#enum global spSummonWild
#enum global spSummonFire
#enum global spSummonPawn
#enum global spReturn
#enum global spMagicMap
#enum global spObjectMap
#enum global spIceBall
#enum global spFireBall
#enum global spChaosBall
#enum global spSoundBall

#enum global spCharm
#enum global spWeb
#enum global spMist
#enum global spMakeWall
#enum global spRestoreBody
#enum global spRestoreSpirit
#enum global spWish

#enum global spHolyShield
#enum global spDaze
#enum global spRegeneration
#enum global spResEle
#enum global spSpeedUp
#enum global spSpeedDown
#enum global spHero
#enum global spWeakArmor
#enum global spWeakEle
#enum global spHolyVeil
#enum global spNightmare
#enum global spKnowledge
#enum global spMutation
#enum global spAcidGround
#enum global spFireWall
#enum global spMakeDoor
#enum global spIncognito

#enum global spMagicLaser
#enum global spMagicBall
#enum global spResurrect
#enum global spContingency
#enum global spPocket
#enum global spHarvest
#enum global spMeteor
#enum global spGravity


#enum global tailSpell

#define global ctype sSummon(%1=0)		sdata(spSummon,%1)
#define global ctype sSummonWild(%1=0)		sdata(spSummonWild,%1)

#define global ctype sHealLight(%1=0)		sdata(spHealLight,%1)
#define global ctype sHealCritical(%1=0)	sdata(spHealCritical,%1)
#define global ctype sHeal(%1=0)		sdata(spHeal,%1)
#define global ctype sHealAll(%1=0)		sdata(spHealAll,%1)
#define global ctype sHealRain(%1=0)		sdata(spHealRain,%1)
#define global ctype sHealTouch(%1=0)		sdata(spHealTouch,%1)
#define global ctype sRemoveHex(%1=0)		sdata(spRemoveHex,%1)
#define global ctype sVanishHex(%1=0)		sdata(spVanishHex,%1)

#define global ctype sTeleportSelf(%1=0)	sdata(spTeleportSelf,%1)
#define global ctype sTeleportOther(%1=0)	sdata(spTeleportOther,%1)
#define global ctype sShortTeleport(%1=0)	sdata(spShortTeleport,%1)

#define global ctype sIdentify(%1=0)		sdata(spIdentify,%1)
#define global ctype sUncurse(%1=0)		sdata(spUncurse,%1)
#define global ctype sRevealArtifact(%1=0)	sdata(spRevealArtifact,%1)


#define global ctype sIceBolt(%1=0)		sdata(spIceBolt,%1)
#define global ctype sFireBolt(%1=0)		sdata(spFireBolt,%1)
#define global ctype sLightningBolt(%1=0)	sdata(spLightningBolt,%1)
#define global ctype sDarknessBolt(%1=0)	sdata(spDarknessBolt,%1)
#define global ctype sMindBolt(%1=0)		sdata(spMindBolt,%1)
#define global ctype sCharm(%1=0)		sdata(spCharm,%1)
#define global ctype sWeb(%1=0)			sdata(spWeb,%1)
#define global ctype sMist(%1=0)		sdata(spMist,%1)
#define global ctype sMakeWall(%1=0)		sdata(spMakeWall,%1)
#define global ctype sAcidGround(%1=0)		sdata(spAcidGround,%1)

#define global ctype sIceBall(%1=0)		sdata(spIceBall,%1)
#define global ctype sFireBall(%1=0)		sdata(spFireBall,%1)
#define global ctype sChaosBall(%1=0)		sdata(spChaosBall,%1)
#define global ctype sSoundBall(%1=0)		sdata(spSoundBall,%1)
#define global ctype sMagicBall(%1=0)		sdata(spMagicBall,%1)

#define global ctype sMagicArrow(%1=0)		sdata(spMagicArrow,%1)
#define global ctype sMagicLaser(%1=0)		sdata(spMagicLaser,%1)
#define global ctype sNetherArrow(%1=0)		sdata(spNetherArrow,%1)
#define global ctype sChaosArrow(%1=0)		sdata(spChaosArrow,%1)
#define global ctype sNerveArrow(%1=0)		sdata(spNerveArrow,%1)
#define global ctype sDarknessArrow(%1=0)	sdata(spDarknessArrow,%1)

#define global ctype sRestoreBody(%1=0)		sdata(spRestoreBody,%1)
#define global ctype sRestoreSpirit(%1=0)	sdata(spRestoreSpirit,%1)

#define global ctype sWish(%1=0)		sdata(spWish,%1)

#define global ctype sReturn(%1=0)		sdata(spReturn,%1)
#define global ctype sMagicMap(%1=0)		sdata(spMagicMap,%1)
#define global ctype sObjectMap(%1=0)		sdata(spObjectMap,%1)

#define global ctype sHolyShield(%1=0)		sdata(spHolyShield,%1)
#define global ctype sDaze(%1=0)		sdata(spDaze,%1)
#define global ctype sRegeneration(%1=0)	sdata(spRegeneration,%1)
#define global ctype sResEle(%1=0)		sdata(spResEle,%1)
#define global ctype sSpeedUp(%1=0)		sdata(spSpeedUp,%1)
#define global ctype sSpeedDown(%1=0)		sdata(spSpeedDown,%1)
#define global ctype sHero(%1=0)		sdata(spHero,%1)
#define global ctype sWeakArmor(%1=0)		sdata(spWeakArmor,%1)
#define global ctype sWeakEle(%1=0)		sdata(spWeakEle,%1)
#define global ctype sHolyVeil(%1=0)		sdata(spHolyVeil,%1)
#define global ctype sNightmare(%1=0)		sdata(spNightmare,%1)
#define global ctype sKnowledge(%1=0)		sdata(spKnowledge,%1)
#define global ctype sMutation(%1=0)		sdata(spMutation,%1)
#define global ctype sFireWall(%1=0)		sdata(spFireWall,%1)
#define global ctype sMakeDoor(%1=0)		sdata(spMakeDoor,%1)
#define global ctype sIncognito(%1=0)		sdata(spIncognito,%1)
#define global ctype sResurrect(%1=0)		sdata(spResurrect,%1)
#define global ctype sContingency(%1=0)		sdata(spContingency,%1)
#define global ctype sPocket(%1=0)		sdata(spPocket,%1)
#define global ctype sHarvest(%1=0)		sdata(spHarvest,%1)
#define global ctype sMeteor(%1=0)		sdata(spMeteor,%1)
#define global ctype sGravity(%1=0)		sdata(spGravity,%1)
#enum global headActThrow	=-10000
#enum global actThrowPotionMinor
#enum global actThrowPotionMajor
#enum global actThrowPotionGreater
#enum global actThrowSalt
#enum global tailActThrow

#define global actMelee 	-1
#define global actRange		-2
#define global actWaitMelee 	-3
#define global actRandomMove	-4

#define global maxSpAct 500

#enum global headSpAct=rangeSdata
#enum global actDrainBlood
#enum global actBreathFire
#enum global actBreathCold
#enum global actBreathLightning
#enum global actBreathDarkness
#enum global actBreathChaos
#enum global actBreathSound
#enum global actBreathNether
#enum global actBreathNerve
#enum global actBreathPoison
#enum global actBreathMind
#enum global actBreath
#enum global actTouchWeaken
#enum global actTouchHunger
#enum global actTouchPoison
#enum global actTouchNerve
#enum global actTouchFear
#enum global actTouchSleep
#enum global actTeleportTarget
#enum global actDraw
#enum global actRestoreMP
#enum global actPunish
#enum global actHealJure
#enum global actAbsorbMana
#enum global actGodWind
#enum global actKnowSelf
#enum global actShortTeleport
#enum global actChangeCreature
#enum global actAbsorbCharge
#enum global actPutCharge
#enum global actAttackAll
#enum global actMutation
#enum global actGazeEther
#enum global actEtherGround
#enum global actSteal
#enum global actGazeInsane
#enum global actMassHealInsane
#enum global actGazeDim
#enum global actSummonCat
#enum global actSummonYeek
#enum global actSummonPawn
#enum global actSummonFire
#enum global actSummonSister
#enum global actSuicide
#enum global actCurse
#enum global actDeath
#enum global actBoost
#enum global actInsult
#enum global actAttackDist4
#enum global actAttackDist7
#enum global actEatFood
#enum global actGazeMana
#enum global actVanish
#enum global actPregnant
#enum global actGrenade
#enum global actLeaderShip
#enum global actEhekatl
#enum global actFinish
#enum global actDropMine
#enum global actDisassemble
#enum global tailSpAct


#enum global headEf=rangeSdata+maxSpAct
#enum global efMilk
#enum global efAle
#enum global efWater
#enum global efGainSpell
#enum global efGainSkill
#enum global efDecStats
#enum global efGainFaith
#enum global efPoison
#enum global efConfuse
#enum global efParalyze
#enum global efBlind
#enum global efSleep
#enum global efPotential
#enum global efCurse
#enum global efNewBuilding
#enum global efSulfuric
#enum global efMakeMaterial
#enum global efLooseResist
#enum global efGainGrowth
#enum global efElixer
#enum global efDelMutation
#enum global efGainAlly
#enum global efGainSister
#enum global efEnchantWeapon
#enum global efEnchantArmor
#enum global efDechant
#enum global efChangeMaterial
#enum global efHeirDeed
#enum global efRecharge
#enum global efDirtyWater
#enum global efCureCorrupt
#enum global efChangeItem
#enum global efMorotov
#enum global efSnow
#enum global efLovePotion
#enum global efTreasureMap
#enum global efGainGirl
#enum global efGainCatSister
#enum global efGainSpeed
#enum global efRemoveWeight
#enum global efEscape
#enum global efSalt
#enum global efDescent
#enum global efEvolution
#enum global efItemRename
#enum global efSoda
#enum global efCupsule
#define global idPutitoro 792
#define global idDragonSlayer 791
#define global idRecipe 783
#define global idStatueMachine 777
#define global idStatueHarvest 776
#define global idTomato 772
#define global idCapsule 771
#define global idBodyPillow 767
#define global idStall2 766
#define global idStall 765
#define global idGould 761
#define global idGarokHammer 760
#define global idMochi 756
#define global idKagamiMochi 755
#define global idDaruma 754
#define global idKotatsu 753
#define global idNewYear 752
#define global idDownstairs 751
#define global idUpstairs 750
#define global idCreator 749
#define global idSummoningCrystal 748
#define global idDeedVoid 742
#define global idCookie 738
#define global idPotionFireproof 736
#define global idGambleChest 734
#define global idSandBag 733
#define global idTokenFriend 730
#define global idGift 729
#define global idMusicTicket 724
#define global idStatueLuck 721
#define global idGrenade 714
#define global idShuriken 713
#define global idDeedDungeon 712
#define global idPotionEvolution 711
#define global idScrollContingency 709
#define global idBookRes 708
#define global idStrad 707
#define global idPotionDescent 706
#define global idVomit 704
#define global idWhistle 703
#define global idRabbitTail 702
#define global idDeck 701
#define global idTownBook 700
#define global idSisterBall 699
#define global idSalt 698
#define global idHarp 693
#define global idHarmonica 692
#define global idLute 691
#define global idPanFlute 690
#define global idDeath2 689
#define global idDeath1 688
#define global idMageBook 687
#define global idStatueHeal 686
#define global idMonsterBall 685
#define global idGeneMachine 684
#define global idTrait 672
#define global idNuke 671
#define global idTradePainter 670
#define global idTradePicture 669
#define global idFairyTale 668
#define global idSisterLunch 667
#define global idStatueWind 666
#define global idStatueEarth 665
#define global idRingSpeed 664
#define global idMonsterHeart 663
#define global idMagicFruit 662
#define global idHeroCheese 655
#define global idCoolerBox 641
#define global idUnicornHorn 640
#define global idHappyApple 639
#define global idScrollEscape 638
#define global idSkeltonkey 637
#define global idLockpick 636
#define global idMine 635
#define global idLeash 634
#define global idPants 633
#define global idScrollFeather 632
#define global idMoongate 631
#define global idMaterialKit 630
#define global idToolIncognito 629
#define global idSageHelm 627
#define global idPotionGainSpeed 626
#define global idTorii 625
#define global idDiaryGirl 624
#define global idDiaryCatSister 623
#define global idMedal 622
#define global idTreasureMap 621
#define global idLovePotion 620
#define global idFishJunk 619
#define global idFish 618
#define global idBite 617
#define global idTaxBox 616
#define global idBilling 615
#define global idHouseBoard 611
#define global idBossChair 603
#define global idHolyWell 602
#define global idPotionEmpty 601
#define global idShackle 600
#define global idChrismas 599
#define global idMiniSnowMan 591
#define global idSnow 587
#define global idPortLamp 586
#define global idFancyLamp 585
#define global idCandle 584
#define global idTorch 583
#define global idFreezer 579
#define global idMoneyBox 578
#define global idMorotov 577
#define global idDiscStory 576
#define global idShit 575
#define global idMilk 574
#define global idEgg 573
#define global idDeedRanch 572
#define global idJerky 571
#define global idColdproof 568
#define global idFireproof 567
#define global idPotionAcidProof 566
#define global idBookSkill 563
#define global idRegister 562
#define global idChestShopIncome 561
#define global idChestPay 560
#define global idPotionCureCorrupt 559
#define global idRingAurora 558
#define global idCloackForest 557
#define global idBootsSeven 556
#define global idShelter 555
#define global idSeedStaff 554
#define global idSeedJewel 553
#define global idScrollHealRain 549
#define global idChestIncome 547
#define global idDiscMusic 544
#define global idDeedStorage 543
#define global idDeedCrop 542
#define global idSnowMan 541
#define global idTreeFruit 526
#define global idDeedShop 522
#define global idDeedMuseum 521
#define global idDye 519
#define global idWater 516
#define global idLasergun 512
#define global idHeirDeed 511
#define global idBagOfHolding 510
#define global idDiarySister 505
#define global idCard 504
#define global idFigure 503
#define global idPotionChangeMaterialSuper 502
#define global idFriedPotato 498
#define global idShotgun 496
#define global idTrainingMachine 488
#define global idCrossBow 482
#define global idStaffCharm 480
#define global idRingEngage 477
#define global idAmuEngage 473
#define global idPotionCureMutation 433
#define global idPotionMutation 432
#define global idScrollFaith 431
#define global idScrollGrowth 430
#define global idPotionLooseRes 429
#define global idStomafillia 427
#define global idAlraunia 426
#define global idCuraria 425
#define global idSpenseweed 424
#define global idMareilon 423
#define global idMorgia 422
#define global idSeedArtifact 421
#define global idSeedUnknown 420
#define global idSeedHerb 419
#define global idSeedFruit 418
#define global idSeedVege 417
#define global idGasyaBlue 414
#define global idGasyaRed 413
#define global idTradeGrave 405
#define global idTradeFish1 404
#define global idTradeCoffin 403
#define global idTradeRope 402
#define global idTradePiano 401
#define global idTradeBarrel 400
#define global idTradeTeddy 399
#define global idScrollMakeMaterial 395
#define global idChestMaterial 394
#define global idPotionSulfuric 392
#define global idPotionWeakRes 382
#define global idPotionHero 379
#define global idPotionSlow 376
#define global idPotionTroll 370
#define global idPotionSilence 368
#define global idShopTrunk 361
#define global idDeedHouse 344
#define global idRune 343
#define global idFishingPole 342
#define global idCargoFood 333
#define global idStaffWish 290
#define global idPotionResS 286
#define global idPotionResP 285
#define global idWallet 284
#define global idSuitcase 283
#define global idTownLight 278
#define global idPotionPoison 262
#define global idFlour 260
#define global idFirewood 255
#define global idBeer 253
#define global idScrollWonder 244
#define global idScrollGainSkill 243
#define global idChest 240
#define global idMachinegun 231
#define global idShortBow 230
#define global idAnimalBone 222
#define global idStone 210
#define global idWhisky 205
#define global idCorpse 204
#define global idLemon 197
#define global idOrange 196
#define global idBerry 192
#define global idCherry 183
#define global idKiwi 182
#define global idGrape 181
#define global idApple 180
#define global idLamp 158
#define global idWell 109
#define global idDesk 99
#define global idLantern 94
#define global idPickaxe 93
#define global idGrandPiano 88
#define global idBullet 62
#define global idQuiver 61
#define global idPistol 60
#define global idLongBow 58
#define global idDiabloSword 56
#define global idPlat 55
#define global idJunk 45
#define global idPotionSleep 30
#define global idPotionParalyze 29
#define global idPotionConfuse 28
#define global idPotionBlind 27
#define global idBook 24
#define global idStaffIdentify 18
#const	global maxSaveChara	maxFollower+maxAdv+1+maxNullChara
#const	global nc		maxSaveChara-maxNullChara
#define global maxChara 	245
#define global maxCdata		500
#define global maxCdataN	10
#define global sizeCdataN	40

#define global maxSpell 	200
#const  global maxSdata		rangeSdata * 2

#define global maxItem		70
#define global maxItemN		6
#define global maxMapInv 	400
#define global sizeInv1 	200
#define global sizeInv2 	20
#const  global rangeInv1	sizeInv2 * (maxSaveChara-1) + sizeInv1
#const  global rangeInv2	sizeInv2 * (maxChara-1) + sizeInv1
#const  global maxInv		rangeInv2 + maxMapInv

#define global maxItemDb	maxDb
#define global maxItemMemory	3

#define global maxNpcDb		maxDb
#define global maxNpcMemory	2
#define global txt(%1,%2="",%3="",%4="",%5="",%6="",%7="",%8="",%9="") :txtValid=0:txt_select %1,%2,%3,%4,%5,%6,%7,%8,%9

#define global chara_create(%1,%2=0,%3=-3,%4=0) charaCreate %1,%2,%3,%4
#define global item_create(%1,%2=0,%3=-1,%4=-1,%5=0) itemCreate %1,%2,%3,%4,%5

#define ctype winPosX(%1) (windowW-%1)/2+screenX
#define atxAct(%1,%2) list(0,listMax)=%2:listn(0,listMax)=%1:listMax++