Here is most of the #IF Commands with a little explanation...
OR - Used in Conjunction with Another Command to give an OR statement
NOT - Not really used now as the ! Tag can be added instead
CHECK - This Checks a flag is set or unset
RANDOM - Used to give a random chance of carrying on
GENDER - Checks Gender is Male
DAYTIME - Checks the Time of Day IN GAME
CHECKLEVEL - Does what it says on the tin.. Checks you are this level or above
CHECKJOB - Checks your Job
CHECKWEAPONLEVEL - Checks the Level or your weapon - 17 being MAX'd
CHECKWEAPONATOM - Checks the Element of your weapon
CHECKREFINEWEAPON - Checks if your weapon is ready for refine
CHECKWEAPONMCTYPE - Checks whether weapon is M-All, M-Nature or M-Soul
CHECKREFINEITEM - Used to check if you have the correct items for the refine you are doing
HASWEAPONATOM - Does the weapon have an Element
CHECKMONRECALL - CAN you have a pet?
STARTDAILYQUEST - Can you get a new Daily Quest?
CHECKDAILYQUEST - Used to check which DQ you are no
CHECKHORSE - Do you have a horse?
CHECKRIDING - Are you sitting on your horse?
CHECKITEM - Do you have a certain item (and Qty in your bag)
CHECKITEMW - Do you have a certain item ON YOUR BODY
CHECKGOLD - Checks if you have at least this Qty of Gold
CHECKDURA - Checks the Dura/Purity of a specific SINGLE item
CHECKDURAW - Same as above but for an item you are wearing
CHECKDURAEVA - This works out the average dura of a group of items
DAYOFWEEK - What day is it?
HOUR - What time is it?
MIN - What time is it?
CHECKPKPOINT - Used to check how many people you have killed (and still have the PK points for)
CHECKMONMAP - Checks a Qty of Mobs on a Map
CHECKHUM - Checks how many people are on a map
CHECKPOS - Checks where you are standing
CHECKBAGGAGE - Checks if you have at least 1 space in your bag
EQUAL - Checks if 1 variable is the same as another
LARGE - Checks if 1 variable is LARGEr than another
SMALL - Checks if 1 variable is SMALLer than another
ELARGE - Checks if 1 variable is Equal to OR Larger than another
ESMALL - Checks is 1 variable is Equal to OR Smaller than another
CHECKNAMELIST - Checks a list of names to see if the users is in it
ISGUILDMASTER - Are you a Guild Master?
HASGUILD - Are you in a Guild?
CANPROPOSECASTLEWAR - Not entirely sure but I think it is used to check if the Sabuk War is enabled
CANHAVESHOOTER - Do you already have a Siege Engine
CHECKFAME - Fetches your current Fame Points and Stores the result in the variable P9
ISONCASTLEWAR - Is there a war on NOW
ISONREADYCASTLEWAR - Is there a war coming up (This is the 1 hour BEFORE war starts)
ISCASTLEGUILD - Are you in this Walls Guild
ISATTACKGUILD - Are you in the guild that is attacking this wall
ISDEFENSEGUILD - Are you in the guild that is defending the wall
CHECKSHOOTER - Checks if you have a shooter
CHECKSAVEDSHOOTER - Checks if you have a shooter STORED
CHECKCASTLEDOOR - Does the door exist?
CHECKCASTLEDOOROPEN - Checks that the door is open
ISATTACKALLYGUILD - Are you an Ally of the CURRENT Attacking guild
ISDEFENSEALLYGUILD - Are you an Ally of the CURRENT Defending guild
ISSYSOP - Are you a Restricted GM
ISADMIN - Are you GOD!
CHECKBONUS - Are you elligible for a Bonus from Hermit
CHECKMARRIAGE - Are you marriged?
CHECKMARRIAGERING - Do you have a wedding ring?
CHECKGROUPCOUNT - Fetches the Qty of People in your Group and Stores the Value in P9
Not 100% sure what these do, so will need to test to find out.. I can guess but until I have tested I will leave them blank.
CHECKGMETERM
CHECKOPENGME
CHECKENTERGMEMAP
CHECKSERVER
CANCHARGESHOOTER
CHECKACCESSORY
OR - Used in Conjunction with Another Command to give an OR statement
Code:
CheckJob Warrior
Or CheckJob Taoist ;Will return True if you are a Warrior OR a Taoist
Code:
Gender Male ;This returns TRUE if you ARE a Male
!Gender Male ;This now returns TRUE if you are NOT a Male
Code:
Check [001] 1 ;If the Flag 001 is set (i.e. 1) then returns True
Code:
Random 4 ;This will give a 1 in 4 chance of being True
Code:
Gender Male ;There is no Gender Female - Use ELSEACT or ELSESAY to get Female
Code:
DayTime DAY ;Can use DAY, NIGHT
Code:
CheckLevel 50
Code:
CheckJob Warrior ;Can use Wizard, Warrior or Taoist
Code:
CheckWeaponLevel 17 ;Checks your weapon is MAX
Code:
CheckWeaponAtom 5 ;Can use 1 - Fire, 2 - Cold, 3 - Light, 4 - Wind, 5 - Holy, 6 - Dark, 7 - Phantom
Code:
CheckRefineWeapon ;No variables on this one.. It’s a yes or no
Code:
CheckWeaponType 0 ;Can be 0 - M-All, 1 - M-Nature, 2 - M-Soul
Code:
CheckRefineItem 0 5 ;The first number is the type, the second number is the Qty. 1st Number can be, 0 - Any, 1 - DC, 2 - M-Nature, 3 - M-Soul, 4 - Magic ANY
Code:
HasWeaponAtom ;No variables.. It’s a yes or no
Code:
CheckMonRecall ;This returns true if you DON'T have a pet
Code:
StartDailyQuest ;This returns true if you HAVE NOT started todays DQ
Code:
CheckDailyQuest 8 ;Returns TRUE if you are on DQ No. 8
Code:
CheckHorse ;Returns TRUE if you have a horse - believe it or not :P
Code:
CheckRiding ;Returns TRUE if you are sitting on your horse - dead easy this :P
Code:
CheckItem WoodenStick 10 ;Checks to see if you have 10 WoodenSticks in your bag
Code:
CheckItemW WoodenStick 1 ;Checks if you have a WoodenStick somewhere on your body
Code:
CheckGold 5000000 ;Bit obvious this one :P
Code:
CheckDura SilverOre 10 ;is it Purity 10 or Above?
CheckDura GoldRing 5 ;Is the Dura 5 or above?
Code:
CheckDura GoldRing 5 ;Is the Dura 5 or above?
Code:
CheckDuraEva SilverOre 10 ;Is the average Purity of ALL the SilverOre in your bag 10 or above
Code:
DayOfWeek Mon ;Is it Monday, can be Mon, Tue, Wed, Thu, Fri, Sat, Sun
Code:
Hour 0 22 ;Is the time between 00:00 and 22:59
Code:
Min 00 29 ;Is the time between 00 and 29 - This is usually used in conjunction with Hour so..
#IF
Hour 00 00
Min 00 29 ;This checks if the time is between 00:00 and 00:29
Code:
CheckPKPoint 2 ;This will return TRUE if you have more than 200 PK Points
CheckPKPoint 10 ;This will return TRUE if you have more than 1000 PK Points
Code:
CheckMonMap D001 1 Oma ;Checks if there is at least 1 Oma in Map D001
CheckMonMap D001 15 ;Checks if there are at least 15 mobs (of any type) in Map D001
Code:
CheckHum D001 10 ;Returns true if there are at least 10 people on Map D001
Code:
CheckPos D001,45,50,1 ;Checks you are standing in Map - D001, X - 45, Y - 50, and within 1 Square of that location
Code:
CheckBaggage ; No variables - just a Yes or No..
Code:
Equal D0 %D1 ;Are the Variables the same - Note the use of the % when reading the 2nd Variable
Equal D0 10
Equal A0 "SPAM" ;Strings are used inside Quotation Marks
Code:
Large D0 1 ;Is the First Variable (D0) larger than 1
Code:
Small D0 10 ;Is the First Variable (D0) Smaller than 10
Code:
Elarge D0 10 ;Is the First variable 10 or above
Code:
Esmall D0 10 ;Is the First variable 10 or below
Code:
CheckNameList "System\Test.txt" ;This location is from the "QuestDiary" Folder
Code:
IsGuildMaster ;No variables - Yes or No
Code:
HasGuild ;No Variables - Yes or No
Code:
CanProposeCastleWar [Sabuk] ;Name of the Wall inside Square Brackets
Code:
CanHaveShooter ;No Variables - Yes or No
Code:
CheckFame ;Stores the value in P9, so you can then use P9 with another command i.e. Mov D0 %P9
Code:
IsOnCastleWar [Sabuk] ;Name of the Wall inside Square Brackets
Code:
IsOnReadyCastleWar [Sabuk] ;Name of the Wall inside Square Brackets
Code:
IsCastleGuild [Sabuk] ;Name of the Wall inside Square Brackets
Code:
IsAttackGuild [Sabuk] ;Name of the Wall inside Square Brackets. Note - This changes when the opposing guild takes the wall
Code:
IsDefenseGuild [Sabuk] ;Name of the Wall inside Square Brackets. Note - This changes when the opposing guild takes the wall
Code:
CheckShooter ;True means you DO have a shooter
Code:
CheckSavedShooter :True means you DO have a stored shooter
Code:
CheckCastleDoor [Sabuk] 1 ;Does Door 1 (can be 1, 3 or 4) Exist
Code:
CheckCastleDoorOpen [Sabuk] 1 ;Is Sabuk Door "1" (Can be 1, 3 or 4) Open? True is Open
Code:
IsAttackAllyGuild [Sabuk] ;Yes or No
Code:
IsDefenseAllyGuild [Sabuk] ;Yes or No
Code:
IsSysOp :Yes or No
Code:
IsAdmin ;Yes or No
Code:
CheckBonus ;Yes or No
Code:
CheckMarriage ; Yes or No
Code:
CheckMarriageRing :Yes or No
Code:
CheckGroupCount ;No Variables - Just stores the Qty in P9
Not 100% sure what these do, so will need to test to find out.. I can guess but until I have tested I will leave them blank.
CHECKGMETERM
CHECKOPENGME
CHECKENTERGMEMAP
CHECKSERVER
CANCHARGESHOOTER
CHECKACCESSORY