Commonly used variables and operations
Game constants
| The name of the variable | illustrate |
|---|---|
| <$USERNAME> | The name of the role |
| <$GUILDNAME> | Guild name |
| <$GUILDLV> | Guild Rank |
| <$CLASS> | Character Class |
| <$LEVEL> | Current level |
| <$HP> | Current health |
| <$MP> | Current mana |
| <$MAXHP> | Max health |
| <$MAXMP> | Mana cap |
| <$PKPOINT> | Current PK value |
| <$GOLD> | The number of coins |
| <$GAMEGOLD> | Number of ingots |
| <$SILVER> | Number of credits |
| <$PAYMENTDAY> | Today's deposit amount will be cleared after 24 o'clock |
| <$PAYMENT> | Cumulative top-up amount |
| <$ACCOUNT> | Character accounts |
| <$PCODE> | Promo Code |
| <$DC> | Minimal attack |
| <$MAXDC> | Max Attack |
| <$MC> | Minimum magic |
| <$MAXMC> | Maximum Magic |
| <$SC> | Minimal Taoism |
| <$MAXSC> | Maximum Dao Technique |
| <$ASC> | Minimal stabbing |
| <$MAXASC> | Maximal stabbing |
| <$ARC> | Minimal archery |
| <$MAXARC> | Maximal archery |
| <$AC> | Minimum Defense |
| <$MAXAC> | Maximum defense |
| <$MAC> | Minimal Magic Defense |
| <$MAXMAC> | Max Magic Defense |
| <$LUCK> | Lucky Tier |
| <$HIT> | Physically accurate |
| <$HITMC> | Magic hits |
| <$SPD> | Physically agile |
| <$BLASTATT> | Critical hit probability |
| <$BLASTATTDAM> | Critical damage |
| <$BLASTATTDEC> | Reduces critical hits |
| <$BLASTATTDAMDEC> | Reduces critical damage |
| <$ANTIMAGIC> | Magic dodge |
| <$ANTIPOISON> | Poison evasion |
| <$ATTACTSPEED> | Attack speed |
| <$HOLYDM> | Minimal Holy Damage |
| <$MAXHOLYDAM> | Maximum Holy Damage |
| <$BREAKAC> | Broken object defense |
| <$BREAKMAC> | Demon Breaker |
| <$DCHITHP> | Physical knockback |
| <$MCHITHP> | Magic knock back |
| <$POWERRATE> | Damage bonus |
| <$POWER> | Current combat power |
| <$DAYPOINT> | Schedule progress |
| <$BAGSIZE> | Backpack size |
| <$DOUBLEEXP> | Double the experience |
| <$SCRIPTDROPRATE> | Script explosion multiplier |
| <$EXP> | Current experience |
| <$MAPMONCNT()> | Number of Monsters in the Map (Map Number) |
| <$MONCNT()> | The number of monsters specified on the map (map number, monster name) |
| <$MAP> | Map number |
| <$MAPNAME> | The name of the map |
| <$X_COORD> | Current coordinates X |
| <$Y_COORD> | Current coordinates Y |
| <$LASTKILLMON> | The number of the last monster killed |
| <$LASTKILLMEPLAYNAME> | Kill the player's name at the end |
| <$LASTKILLPLAYNAME> | The name of the last player killed |
| <$ITEMNAME()> | Item Name (Item ID) |
| <$ITEMVALUE()> | Obtain the specified attribute of the item |
| <$VIP> | Privileges of this issue |
| <$MARFADAY> | The number of days remaining in the Marfa privilege |
| <$MARFADAY()> | Remaining Marfa Privileges (Privilege Number) |
| <$TITLE> | Current title |
| <$PPOINT> | Promotion points |
| <$TALENTLV()> | Talent Level (Talent Number) |
| <$PHYSIQUE> | Turn on Dragon Guard Awakening, open and return 1, otherwise 0 |
| <$AWAKE> | Open the Awakening panel, turn on and return 1, otherwise 0 |
| <$CURDATE> | The current time and date part, the time is 00:00:00 |
| <$UTCNOW> | The current time: 10-bit UTC timestamp |
| <$USERCOUNT> | Number of players |
| <$VERSION> | Open nodes |
| <$DATE> | Current Time and Date section |
| <$YEAR> | year |
| <$MONTH> | month |
| <$WEEK> | Day of the week |
| <$DAY> | day |
| <$HOUR> | hour |
| <$MINUTE> | minute |
| <$SECOND> | second |
| <$VARSORTNAME()> | Variables sorted by name (1, U variable, rank) |
| <$VARSORTVALUE()> | Variables are sorted by value (1, U variable, rank) |
| <$VARSORTIDX()> | Variables are sorted by IDX (1, U variable); Your U-variable is currently ranked |
| <$SPECIALREPAIRALLCOST> | Full-body special repair fee |
| <$ItemValue (0, equipment position, equipment attributes) > | Obtain the specified attributes of the equipment on the body, and view the equipment attribute table for the equipment attribute table |
| <$CASTLEGUILD> | Shabak guild variables |
| <$CASTLELORD> | Shabak City main variable |
| <$TITLE> | The number of the title you are currently wearing |
| <$LastRecharge> | The last top-up amount |
Commonly used script variables
G0-G Any digit (global variable, numeric type) can be saved. (Stored in the database, cleared when the data is cleared)
A0-A Any number (global variable, character type) can be saved. (Stored in the database, cleared when the data is cleared)
N0-N arbitrary digits (private variables, numeric type) are not saved offline. Small retreat to 0.
S0-S arbitrary digits (private variables, character types) are not saved when offline. Small retreat to 0.
U0-U Any number (private variable, numeric type) can be saved. (stored in the character data)
T0-T any number (private variable, character type) can be saved. (stored in the character data)
J0-J arbitrary digits (private variable, numeric type) can be saved, and will be automatically cleared at 0:00 every day. (stored in the character data)
Q0-Q Any digit (private variable, numeric) The closing dialog is reset to 0.
变量显示格式:<$STR(G0)>、<$STR(A0)>、<$STR(N0)>。。。
Variable detection and operation
Detect variables
CheckCalc Detection Value Detector (> < == !=) Contrast value or character Greater than: > Less than: < Equal: == Not equal to: !=
Example:
[@MAIN]
- IF
CheckCalc N1 == 100
- SAY
Hint: The current N1 variable is equal to 100.
- ELSESAY
Note: The current N1 variable is not equal to 100.
Assign variables
MOV variable name value
Example:
[@MAIN]
- IF
- ACT
MOV N1 100
Assign N1 to 100.
Variable operations
Calc operator (+ - * /) operation value Add: + Less:- Multiply:* Divide:/
Example:
[@MAIN]
- IF
- ACT
MOV N1 1 Calc N1 + 1
Assign N1 to 1 and add 1 to make it equal to 2
