General - IF ACT // Mob - ACT // Char - IF ACT // Item - IF ACT // Map - IF ACT // Files - IF ACT // Guild - IF ACT //
Group - IF ACT // Person You're Facing - IF // Marriage/Master - IF // Password Related - IF // Weird Stuff - IF ACT

Back to top
General Stuff - IF statements
NameUsageWhat it does
checkCHECK [200] 1Checks to see if flag 200 is set to 1 (on) / 0 (off)
daytimeDAYTIME SUNSETCompares the current sever 'time' to the option you entered: SUNRISE,DAY,SUNSET,NIGHT
dayofweekDAYOFWEEK SUNChecks if it's sunday options: SUN,MON,TUE,WED,THU,FRI,SAT
hourHOUR 9 9

Checks if the hour right now is 9
options: HOUR 9 12 : this will check if the hour is 9,10,11 or 12

minMIN 30 35Checks if the minutes right now are higher or equal to 30 and lower then 35
ranomRANDOM 50Takes a random number from 0-50, and if it's 0 then it's true
ranomexRANDOMEX 10 = 5Takes a random number between 0 and 10, and checks if it's 5, options: =,<,>,>=

Back to top
General Stuff - ACT statements
NameUsageWhat it does
setSET [200] 1Sets questflag 200 on, options: 1(on) 0(off)
resetRESET [50] 10Sets Questflag 50-59 to 0(off)
closeCLOSECloses the clients npc dialog
breakBREAKStops the rest of the npc code from being run
getauctionitemsGETAUCTIONITEMS 5Gets all auction items from 'category' 5
closeauctionCLOSEAUCTIONCloses the auction window
goquestGOQUEST questname

Starts quest called questname

endquestENDQUESTStops the quest you where working on
gotoGOTO @mainMakes the npc goto the @main menu
gmexecuteGMEXECUTE commandnameExecutes any command
exeactionEXEACTION KICKKicks you from the server, options: CHANGEEXP, CHANGELEVEL, KILL
sendmsgSENDMSG 3 textWorks exactly the same as LINEMSG
linemsgLINEMSG 3 textSends a message with the content 'text', options: 0(regular message), 1 ((*) infront), 2 ([npc name] infront), 3([charname] infront), 4(just message of (I think npc) saying), 5 (red text), 6 (green text), 7(blue text), 8(group text), 9 (guild text)
setsendmsgflagSETSENDMSGFLAGSets BOSENDMSGFLAG to true(probably whisper, not sure)
messageboxMESSAGEBOX textSends the player a menu popup with 'text' in it
setscriptflagSETSCRIPTFLAG 1 trueSets BOCHANGEITEMNAMEFLAG to true, options: 0 = BOSENDMSGFLAG, 1 = CHANGEITEMNAMEFLAG
runsoundRUNSOUND 50Plays sound number 50 on the players' client

Back to top
Mob Stuff - ACT
NameUsageWhat it does
mongenMONGEN Yob 5 10Spawns 5 Yobs in a 10 square radius around the map. Params: Param1 (mapname), Param2(x), Param3(y)
recallmobRECALLMOB Yob 1 20 0 1Gives the player a Yob pet that's level 1 and will stay there for 20 mins, it will also have colour number 1, if fourth number is 1 then it's colour will randomly change
killslaveKILLSLAVEKills all your pets/slaves
missionMISSION mapname 5 10Sets the mission to mapname, 5, 10 (name of the map to spawn on, x, y coords)
mobplaceMOBPLACE mobnameSpawns a mob called 'mobname' and tells it to go to the coords you set using mission. Params: Param1 (x coord), Param2 (Y coord), Param3 (amount), Param4 (range)
mongenexMONGENEX mapname 5 6 Yob 6 7Spawns a Yob at map called 'mapname' at the coords 5:6, 6= range around spawn point, 7 = amount of mobs
clearmapmonCLEARMAPMON mapnameDeletes all mobs from the map called 'mapname'
openitemboxOPENITEMBOX mobnameMakes a mob called 'mobname' infront of you then makes it die
recallcloneRECALLCLONE mobname 1 20Gives the player a clone pet called 'mobname' that starts at level 1 and stays tamed for 20 mins.

Back to top
Char Stats - IF statements
NameUsageWhat it does
checklevel
CHECKLEVEL 45Checks if you are level 45 or above
checkjob
CHECKJOB WarriorChecks if you are a Warrior, options: Warrior, Wizard, Taoist
gender
GENDER MANChecks if you are male or female, options: MAN, WOMAN
checkluckypoint
CHECKLUCKYPOINT 50Checks if your bodyluck is higher or equal to 50
checkbaggage
CHECKBAGGAGE SunpotionChecks if there's enough bagweight left to carry an extra Sunpotion
checkmagic
CHECKMAGIC FireballChecks if you have learnt Fireball
checkmagiclevel
CHECKMAGICLEVEL Fireball 3Checks if you have learnt Fireball and it's at training level 3
checkhorse
CHECKHORSEChecks if you have a horse equipped
checkriding
CHECKRIDINGChecks if you are riding a horse
checkbbcount
CHECKBBCOUNT 4Checks if you have 4 or more slaves/pets
checkslavecount
CHECKSLAVECOUNT = 10Checks if you have 10 slaves/pets, options: =,<,>
checkslavelevel
CHECKSLAVELEVEL = 4Checks if the highest level slave/pet you have is 4, options: =,<,>,>=
checkslavename
CHECKSLAVENAME Yob = 2Checks if you have 2 Yobs tamed as pets, options: =,<,>,>=
issysop
ISSYSOPChecks if your permission level (GM level) is 4 or more
isadmin
ISADMINChecks if your permission level (GM level) is 6 or more
checklevelex
CHECKLEVELEX = 5Checks if player is level 5, options: =,<,>
checkbonuspoint
CHECKBONUSPOINT = 5Checks if players total amount of bonus ability stats = 5, options: =,<,>
isnewhuman
ISNEWHUMANChecks if you have only just made your char (first login)
checkdc
CHECKDC = 20Checks if you have 20 DC, options: =,<,>,>=
checkmc
CHECKMC = 20Checks if you have 20 MC, options: =,<,>,>=
checksc
CHECKSC = 20Checks if you have 20 SC, options: =,<,>,>=
checkhp

CHECKHP = 20 > 30

Checks if your current hp is 20 and your max hp is higher than 30, options: =,<,>,>=
checkmp
CHECKMP > 10 = 30Checks if your current mp is more than 10 and your max mp is 30, options: =,<,>,>=
checkexp
CHECKEXP > 50Checks if your current exp is above 50, options: =,<,>,>=
onlinelongminONLINELONGMIN = 5Checks if you have been online for 5 mins, options: =,<,>,>=

Back to top
Char Stats - ACT statements
NameUsageWhat it does
changemodeCHANGEMODE 2Changes your chars 'mode' on server, options: 1=@gamemaster, 2=@superman, 3=@observer (You need to beable to do the command for this to work, if you're not a gm in the DB this wont work)
pkpointPKPOINT -10Decreases your pkpoints by 10, can also have 0 (instant pkpoint 0) or 100 (increase by 100)
kickKICKKicks the player from the server
hairstyleHAIRSTYLE 2Changes your hairstyle to style '2' options: 1,2
changegenderCHANGEGENDER 1Changes your gender to Male(0), Female(1)
changelevelCHANGELEVEL = 5Changes your level to 5, options: =,+,-
clearskillCLEARSKILLDeletes all of your trained skills
delnojobskillDELNOJOBSKILLDeletes all the magics you have that don't match your job
delskillDELSKILL FireballDeletes the skill called Fireball
addskillADDSKILL Fireball 2Gives you the spell Fireball at training level 2
skilllevelSKILLEVEL Fireball = 3Advances your Fireball skill to level 3, options: =,+,-
changepkpointCHANGEPKPOINT = 5Changes your pkpoint to 5, options: =,+,-
changeexpCHANGEEXP - 50Decreases your exp by 50, options: =,+,-
changejobCHANGEJOB WarriorChanges your job to a Warrior, options: Warrior, Wizard, Taoist
setmembertypeSETMEMBERTYPE = 2Sets membertype value to 2, options: =,+,-
setmemberlevelSETMEMBERLEVEL +2Sets memberlevel +2, options: =,+,-
gamegoldGAMEGOLD - 10Takes away 10 gamegold(not regular gold), options: =,+,-
autoaddgamegoldAUTOADDGAMEGOLD STARTStarts automatically decreasing your gamegold, Params: Param1 = points, Param2 = time between additions, options: START, STOP
autosubgamegoldAUTOSUBGAMEGOLD STARTStarts automatically decreasing your gamegold, Params: Param1 = points, Param2 = time between additions, ?options: START, STOP?
changenamecolorCHANGENAMECOLOR 200Changes the colour of your name to colour number 200
clearpasswordCLEARPASSWORDClears your password (storage)
renewlevelRENEWLEVEL 10 20 1Increases your relevel value by 10, changes your level to 20 and gives you 1 extra bonuspoint
killmonexprateKILLMONEXPRATE 120 150Changes your exprate to 120% for 150 seconds
powerratePOWERRATE 130 200Changes your power rate to 130% for 200 seconds
changepermissionCHANGEPERMISSION 3Changes your access to 3 (GM rights)
killKILL 2Kills you without giving anyone else the kill, options: 1(kills you with no drops), 2 (kills you without pking for others), 3 (no drop + no pking), 4(just dieing without anything else)
bonuspointBONUSPOINT = 2Sets your bonus abilities to 2 (and resets all the points you have), options: =,+
restrenewlevelRESTRENEWLEVELPuts relevel value to 0
creditpointCREDITPOINT - 50Reduces creditpoints by 50, options: =,+,-
gamepointGAMEPOINT = 5Sets your gamepoint value to 5, options: =,+,-
restbonuspointRESTBONUSPOINTResets your assigned bonuspoint
humanhpHUMANHP + 5000Adds 5000 hp to your char (or fills your bar if you don't have 5000), options: =,+,-
humanmpHUMANMP + 20Adds 20 mp to your char (or fills your bar if you don't have 20), options: =,+,-
setranklevelnameSETRANKLEVELNAME nameSets your rankname to 'name'
setautogetexpSETAUTOGETEXP 100 50Gives 50 exp every 100 seconds
temppowerupTEMPPOWERUP DC 2 50Increases your DC by 4(2+2) for 50 seconds, options: DC,MC,SC,ASPEED,HP,MP

Back to top
Item Bits - IF statements
NameUsageWhat it does
checkitemCHECKITEM Sunpotion 3Checks if you have 3 or more sunpotions in your bag
checkitemwCHECKITEM W GoldRing 2Checks if you are wearing 2 GoldRings
checkgoldCHECKGOLD 5000Checks if you have 5000 or more gold
istakeitemISTAKEITEM SunpotionNot entirely sure it checks if some name = the param you enter
checkduraCHECKDURA GoldOre 15Checks if you have a dura 15 or more goldore in your bag
checkduraevaCHECKDURAEVA GoldOre 50Checks if the total amount of all the dura on GoldOres in your bag combined is 50 or more
checkuseitemCHECKUSEITEM 2Checks if you have something equipped on position 2 of your body
checkbagsizeCHECKBAGSIZE 10Checks if you have 10 spare spaces in your bag
checkitemtypeCHECKITEMTYPE 3 25Checks if the stdmode of the item on position 3 of your body is 25
checkitemaddvalueCHECKITEMADDVALUEChecks if the total amount of added stats on the item on position 8 on your body is 5, options: =,<,>,>=

Back to top
Item Bits - ACT statements
NameUsageWhat it does
takeTAKE Sunpotion 5Takes 5 Sunpotions from your bag
giveGIVE Sunpotion 5Gives you 5 Sunpotions
givewTAKEW GoldRing 2Takes 2 GoldRings you're wearing away from you. you can also make it take a specific type of item you're wearing by replacing the itemname with: [NECKLACE], [RING], [ARMRING], [WEAPON], [HELMET], [DRESS], [U_BUJUK], [U_BELT], [U_BOOTS], [U_CHARM]
takecheckitemTAKECHECKITEMTakes the item recently 'checked for by this npc
clearneeditemsCLEANNEEDITEMS 2Deletes all items in your bag, storage that have need value set to '2'
clearmakeitemsCLEARMAKEITEMS Sunpotion 15245 0Deletes all the equipped items with makeindex 15245, if the last 0 would be 1 then it'll delete all the items equipped called Sunpotion
upgradeitemUPGRADEITEM 3 2 1Upgrades item equipped on slot 3 with 1/3 chances of success (basicaly it's 2+1 cause 0's an option aswel) and will add 1 point to one of the stats on the item (this can result into bugged items though, so it's use is not recomended)
upgradeitemexUPGRADEITEMEX 3 5 1 2 1Same as above but instead here it's position on your equipment(3), type of stat to add (these values are rather hard to explain but in this case it's 5), chance of succes: 1/2 (1+1), points to add: 2, last value is the type of upgrade: 0= just fail, 1 = deletes item if failed, sets the added stat to 0 if failed

Back to top
Map Bits - IF statements
NameUsageWhat it does
checkmonmapCHECKMONMAP d024 10Checks if there is less than 10 mobs on the map d024
checkrealmonmapCHECKREALMONMAP d024 10Checks if there is less than 10 mobs (pets don't count) on the map d024
checkhumCHECKHUM d024 10Checks if there's less than 10 players on the map 2024
checkposCHECKPOS mapname x yChecks if you are standing on map called 'mapname' at coords x,y
checkrangemoncountCHECKRANGEMONCOUNT mapname x y range = 5Checks on map called 'mapname' around x,y if there are 5 mobs in a range, options: =,<,>,>=
checkinmaprangeCHECKINMAPRANGE mapname x y rangeChecks if you are within range of x,y coords on the map 'mapname'
checkmaphumancountCHECKMAPHUMANCOUNT mapname = 6Checks if there are 6 humans on the map 'mapname', options: =,<,>,>=
checkmapmoncountCHECKMAPMONCOUNT mapname > 5Checks if there are 5 mobs on the map 'mapname', options: =,<,>,>=
checkmapCHECKMAP mapnameChecks if you are on the map called 'mapname'

Back to top
Map Bits - ACT statements
NameUsageWhat it does
timerecallTIMERECALL 50Sets a 50 min delay after which you will be teleported back to the spot you where on when you clicked the NPC
mapmoveMAPMOVE mapname 5 10Moves you to map 'mapname' position 5:10
mapMAP mapnameMoves you to map 'mapname'
breaktimerecallBREAKTIMERECALLStops a timed recall if any npc set it for your char
exchangemapEXCHANGEMAP mapnameMakes you switch places with someone on map 'mapname', if there's nobody on that map then you just get teleported there
recallmapRECALLMAP mapnameMakes everyone on map 'mapname' get teleported to the map you're on
addbatchADDBATCH mapnameSets the options for the batchmove
batchdelayBATCHDELAYSets the batch delay to 10 seconds
batchmoveBATCHMOVESets a delayed random move to a map set by ADDBATCH; first do BATCHDELAY then ADDBATCH then BATCHMOVE
setmapmonSETMAPMODE mapname SAFESets the map to SAFE, options: same as mapflag on your TBL_MAPINFO 1(on) 0(off)
pkzonePKZONE 2 3 100 50Activates a map effect in a square around the npc in range 2, the looks = 3 (dunno what it's for), will last for 100 secs and do 50 damage
mobfireburnMOBFIREBURN mapname x y type pointsAs far as I know it does same as PKZONE but around player instead of NPC
gtmapmoveGTMAPMOVE mapname 5 10Moves you to map with name 'mapname' coords 5:10 but on the same gt number as where the npc is on

Back to top
Files - IF statements
NameUsageWhat it does
checknamelistCHECKNAMELIST filename.txtChecks if your charname is in filename.txt
checkaccountlistCHECKACCOUNTLIST filename.txtChecks if you login is in filename.txt
checkiplistCHECKIPLIST filename.txtChecks if your ip is in filename.txt
checknameiplistCHECKNAMEIPLIST filename.txtChecks if your charname and ip address are in filename.txt (basicaly only with both combination will this give true if you have the charname with a different ip in the list it'll be false)
checkaccountiplistCHECKACCOUNTIPLIST filename.txtChecks if your account and ip are in filename.txt (same as above)
checknamelistpositionCHECKNAMELISTPOSITION filename.txt 5Checks if your name is on the 5th line in filename.txt
checkguildlistCHECKGUILDLIST filename.txt

Checks if your guild name is in filename.txt

checkservernameCHECKSERVERNAME nameChecks if your server is called 'name'

Back to top
Files - ACT statements
NameUsageWhat it does
addnamelistADDNAMELIST filename.txtAdds your charname to filename.txt
delnamelistDELNAMELIST filename.txtDeletes your charname from filename.txt
addguildlistADDGUILDLIST filename.txtAdds your guildname to filename.txt
delguildlistDELGUILDLIST filename.txtDeletes your guildname from filename.txt
addaccountlistADDACCOUNTLIST filename.txtAdds your login to filename.txt
delaccountlistDELACCOUNTLIST filename.txtDeletes your login from filename.txt
addiplistADDIPLIST filename.txtAdds your IP to filename.txt
deliplistDELIPLIST filename.txtDeletes your IP from filename.txt
clearnamelistCLEARNAMELIST filename.txtDeletes all data from filename.txt
addnamedatelistADDNAMEDATELIST filename.txtAdds your name and date to filename.txt
delnamedatelistDELNAMEDATELIST filename.txtDeletes your name and date from filename.txt
clearlistCLEARLIST filename.txtDeletes everything in filename.txt

Back to top
Guild - IF statements
NameUsageWhat it does
isguildmasterISGUILDMASTERChecks if you are a guild master
iscastleguildISCASTLEGUILDChecks if your guild owns a castle (eg sabuk)
isattackguildISATTACKGUILDChecks if your guild is attacking a castle
isdefenseguildISDEFENSEGUILDChecks if your guild is defending a castle
haveguildHAVEGUILDChecks if you have a guild
checkcastledoorCHECKCASTLEDOOR OPENChecks if the castle door is open, option: OPEN,CLOSE,DESTROYED
isattackallyguildISATTACKALLYGUILDChecks if your guild is allied to the attackers
isdefenseallyguildISDEFENSEALLYGUILDChecks to see if your guild is allied with the defenders
iscastlemasterISCASTLEMASTERChecks to see if you are the guild leader and your guild owns a castle
checkofguildCHECKOFGUILD guildnameChecks if you are in a guild called 'guildname'
checkcastlegoldCHECKCASTLEGOLD = 5000Checks if the gold on your castle is 5000, options: =,<,>,>=
castlechangedelayCASTLECHANGEDELAY = 4Checks if your guild owns the castle for 4 days, options: =,<,>,>=
castlewardelayCASTLEWARDELAYChecks if it's another 6 days until next war if it's been 6 days since the last war, options: =,<,>,>=

Back to top
Guild - ACT statements
NameUsageWhat it does
takecastlegoldTAKECASTLEGOLD 500Takes 500 gold out of the castle(eg, sabuk)
guildbuildpointGUILDBUILDPOINT = 50Sets your guilds buildpoint to 50, options: =,+,-
guildauraepointGUILDAURAEPOINT - 5Reduces your guilds auraepoint by 5, options: =,+,-
guildstabilitypointGUILDSTABILITYPOINT + 5Adds 5 points to your guild 'stabilitypoint' value, options: =,+,-
guildflourishpointGUILDFLOURISHPOINT = 10Sets your guilds flourishpoint to 10, options: =,+,-

Back to top
Group - IF statements
NameUsageWhat it does
checkgroupleaderCHECKGROUPLEADERChecks if you're the group leader
checkgroupnearbyCHECKGROUPNEARBYChecks if all of the group is near the npc
checkgroupcountCHECKGROUPCOUNT = 5Checks if there is exactly 5 people in the group, options: =,<,>
checkgroupclassCHECKGROUPCLASS Warrior = 2Checks if you are the group leader and if there are at least 2 Warriors in your group, options: Warrior, Wizard, Taoist, =,<,>,>=

Back to top
Group - ACT statements
NameUsageWhat it does
groupmovemapGROUPMOVEMAP mapname 5 6Moves everyone in your group to map with name 'mapname' coords 5,6, only works if you are the group leader

Back to top
Person you're facing - IF statements
NameUsageWhat it does
checkposedirCHECKPOSEDIR 1Checks if the person you're facing is same gender as you, options: 0(doesn't matter what gender), 1(same gender), 2(opposite gender)
checkposelevelCHECKPOSELEVEL = 1Checks if the person you are facing is level 1, options: =,<,>
checkposegenderCHECKPOSEGENDER MALEChecks if the person you are facing is MALE, options: MAN, MALE, WOMAN, FEMALE

Back to top
Marriage - IF statements
NameUsageWhat it does
checkmarryCHECKMARRYChecks if you are married (not sure if it works)
checkposemarryCHECKPOSEMARRYChecks if the person you are facing is married
checkmarrycountCHECKMARRYCOUNT = 1Checks how long you have been married, options: =,<,>
CgecheckmasterCHECKMASTERChecks if you are a student
havemasterHAVEMASTERChecks if you have a master/student
checkposemasterCHECKPOSEMASTERChecks if the person you are facing is a student
posehavemasterPOSEHAVEMASTERChecks if the person you're facing has a master/student
checkposeismasterCHECKPOSEISMASTERChecks if the person you're facing is a master (can be someone else's master)
checkismasterCHESISMASTER 

Back to top
Password - IF statements
NameUsageWhat it does
passworderrorcountPASSWORDERRORCOUNT = 3Checks if your password error counter = 3, options: =,<,>,>=
islockpasswordISLOCKPASSWORDChecks if your passwordlocked is true
islockstorageISLOCKSTORAGEChecks if your storage is locked

Back to top
Weird stuff - IF statements
NameUsageWhat it does
checkopenCHECKOPEN 250 1Checks the m_QuestUnitOpen array to see if it's 1(on) or 0(off)
checkunitCHECKUNIT 250 0Checks the m_QuestUnit array to see if it's 1(on) or 0(off)
reviveslavesREVIVESLAVESReads file envir\petdata\charname.txt and does something which I think is bugged
checkguildcheifitemcountCHECKGUILDCHEIFITEMCOUNT = 6Checks if your guilds 'chiefitemcount' value = 6, options: =,<,>,>=
checkcreditpointCHECKCREDITPOINT = 5Checks if your creditpoint = 5, options: =, <, >, >=
checkmembertypeCHECKMEMBERTYPE = 2Checks if your membertype = 2, options: =, <, >, >=
checkmemberlevelCHECKMEMBERLEVEL > 2Checks if your member level > 2, options: =, <, >, >=
checkgamegoldCHECKGAMEGOLD >= 100Checks if your gamegold >= 100, options: =, <, >, >=
checkgamepointCHECKGAMEPOINT < 5Checks if your gamepoints are lower than 5, options: =, <, >, >=
checkrenewlevelCHECKRENEWLEVEL = 8Checks if your renewlevel = 5, options: =, <, >, >=
checkcreditpointCHECKCREDITPOINT = 50Checks if you have 50 creditpoints, options: =, <, >, >=
checkpaymentCHECKPAYMENT 10Checks if your payment value = 10
checkguildbuildpointCHECKGUILDBUILDPOINT = 5Checks if your guilds 'buildpoint' = 5, options: =, <, >, >=
checkguildauraepointCHECKGUILDAURAEPOINT > 4Checks if your guilds auraepoint > 4, options: =, <, >, >=
checkguildstabilitypointCHECKGUILDSTABILITYPOINT >= 3Checks if your guilds stabilitypoint >= 3, options: =, <, >, >=
checkguildflourishpointCHECKGUILDFLOURISHPOINT < 6Checks if your guilds flourishpoint < 6, options: =, <, >, >=
checkcontributionCHECKCONTRIBUTION = 6Checks if your contribution value = 6, options: =, <, >, >=

Back to top
Weird stuff - ACT statements
NameUsageWhat it does
setopenSETOPEN 100 1Sets quesunitopen array position 100 to 1(on)
setunitSETUNIT 105 1Sets questunit array position 105 to 1(on)
resetunitRESETUNIT 20 10Sets questunit array position 20-29 to off