if statements: (all caps)
ACT statements
general stuff:
check usage: CHECK [200] 1 what it does: checks to see if flag 200 is set to 1 (on) , 0 = off
set usage: SET [200] 1 what it does: sets questflag 200 on, options: 1(on),0(off)
reset usage: RESET [50] 10 what it does: sets questflag 50-59 to 0(off)
daytime usage: DAYTIME SUNSET what it does: compares the current server 'time' to the option you entered: SUNRISE,DAY,SUNSET,NIGHT
dayofweek usage: DAYOFWEEK SUN what it does: checks if its sunday, options: SUN,MON,TUE,WED,THU,FRI,SAT
hour usage: HOUR 20 21 what it does: checks if the hour right now is higher or equal to 20 and lower then 21
min usage: MIN 30 35 what it does: checks if the minutes right now are higher or equal to 30 and lower then 35
random usage: RANDOM 50 what it does: takes a random number from 0-50 and if it's 0 then it is true
randomex usage: RANDOMEX 10 = 5 what it does: takes random number between 0 and 10 and checks if its 5, options: =,<,>,>=
close usage: CLOSE what it does: closes the clients npc dialog
break usage: BREAK what it does: stops the rest of the npc code from being run
param1 usage: what it does:
param2 usage: what it does:
param3 usage: what it does:
param4 usage: what it does:
getauctionitems usage: GETAUCTIONITEMS 5 what it does: gets all auction items from 'category' 5
closeauction usage: CLOSEAUCTION what it does: closes the auction window
goquest usage: GOQUEST questname what it does: starts quest called questname (dont ask me how to set the quests at this point tho)
endquest usage: ENDQUEST what it does: stops the quest you where working on
goto usage: GOTO @main what it does: makes the npc go to the @main menu
gmexecute usage: GMEXECUTE command name what it does: executes any command with full gm command
exeaction usage: EXEACTION KICK what it does: kicks you from server, other options are CHANGEEXP, CHANGELEVEL, KILL
sendmsg usage: SENDMSG 3 text what it does:works exactly the same as linemsg
linemsg usage: LINEMSG 3 text what it does: sends a msg with the content 'text', options: 0(regular msg), 1 (*) infront, 2 [npc name] infront, 3 [charname ] infront, 4 just msg of (i think npc) saying, 5 (red text), 6 (green text), 7(blue text), 8(group text), 9 (guild text)
setsendmsgflag usage: SETSENDMSGFLAG what it does: sets bosendmsgflag to true(probably whisper not sure)
messagebox usage: MESSAGEBOX text what it does: sends the player a menu popup with the 'text' in it
setscriptflag usage: SETSCRIPTFLAG 1 True what it does: sets bochangeitemnameflag to true, options: 0 = bosendmsgflag, 1 = changeitemanmeflag
runsound usage: RUNSOUND 50 what it does: plays sound number 50 on the players client
Mob stuff:
mongen usage: MONGEN Yob 5 10 what it does: spawns 5 yob mobs in a 10 square radius arround the map, x, y coords you set using Param1 (mapname), Param2(x), Param3(y)
recallmob usage: RECALLMOB Yob 1 20 0 1 what it does: gives the player a yob pet that's level 1 and will stay there for 20 minutes, it will also have color number 1, the 4th param if it's 1 then the color will randomly change
killslave usage: KILLSLAVE what it does: kills all your pets/slaves
mission usage: MISSION mapname 5 10 what it does: sets the mission to mapname, 5, 10 (name of map to spawn on, x, y coord)
mobplace usage: MOBPLACE mobname what it does: spawns a mob called 'mobname' and tells it to go to the coords you set using mission, also needs Param1 (x coord), Param2 (Y coord), Param3 (amount), Param4 (range) to know where to spawn
mongenex usage: MONGENEX mapname 5 6 yob 6 7 what it does: spawns mob at map called mapname at coords 5/6 mob called yob, range arround spawn point = 6, amount of mobs = 7
clearmapmon usage: CLEARMAPMON mapname what it does: deletes all mobs from the map called mapname
openitembox usage: OPENITEMBOX mobname what it does: makes a mob called 'mobname' infront of you then makes it die
recallclone usage: RECALLCLONE mobname 1 20 what it does: gives the player a clone pet called 'mobname' that starts at lvl 1 and stays tamed for 20 minutes
chars stats:
checklevel usage: CHECKLEVEL 45 what it does: if you are below lvl 45 it fails (if you are 45 or above it's ok)
checkjob usage: CHECKJOB Warrior what it does: if you are warrior then it works, options: Warrior, Wizzard, Taoist
gender usage: GENDER MAN what it does: checks if the person is a 'man' or a 'woman'
checkluckypoint usage: CHECKLUCKYPOINT 50 what it does: checks if your bodylucky is higher or equal to 50
checkbaggage usage: CHECKBAGGAGE Sunpotion what it does: checks if there's enough bagweight left to carry an extra sunpotion
checkmagic usage: CHECKMAGIC magicname what it does: checks if you have this magic spell
checkmagiclevel usage: CHECKMAGICLEVEL magicname 3l what it does: checks if you have this magic spell and it's at training level 3
checkhorse usage: CHECKHORSE what it does: checks if you have a horse equiped
checkriding usage: CHECKRIDING what it does: checks if you are riding a horse
checkbbcount usage: CHECKBBCOUNT 4 what it does: if you have less then 4 slaves/pets/... it's false else it's true
checkslavecount usage: CHECKSLAVECOUNT = 10 what it does: checks if you have 10 slaves/pets/... , options are =, <, >
checkslavelevel usage: CHECKSLAVELEVEL = 4 what it does: checks if the highest level slave you have = lvl 4, options: =,<,>,>=
checkslavename usage: CHECKSLAVENAME Yob = 2 what it does: checks if you have 2 yobs tamed as pets, options: =, <, >, >=
issysop usage: ISSYSOP what it does: checks if your permition level (aka gm and stuff) is 4 or more
isadmin usage: ISADMIN what it does: checks if your permition level is 6 or more
checklevelex usage: CHECKLEVELEX = 5 what it does: checks if player is lvl 5, options: =, <, >
checkbonuspoint usage: CHECKBONUSPOINT = 5 what it does: checks if players total amount of bonus ability stats = 5, options: =, <, >
isnewhuman usage: ISNEWHUMAN what it does: checks if you only just made your char
checkdc usage: CHECKDC = 20 what it does: checks if you have 20 dc, options: =,<,>,>=
checkmc usage: CHECKMC = 20 what it does: same as above but for mc
checksc usage: CHECKSC > 20 what it does: same as above but for sc
checkhp usage: CHECKHP = 20 > 30 what it does: checks if your current hp = 20 and your max hp is higher then 30, options: =,<, >,>=
checkmp usage: CHECKMP > 10 = 30 what it does: same as above but for mp
checkexp usage: CHECKEXP > 50 what it does: checks if your current exp is above 50, options: =,<,>,>=
onlinelongmin usage: ONLINELONGMIN = 5 what it does: checks if you have been online for 5 minutes, options: =,<,>,>=
changemode usage: CHANGEMODE 2 what it does: changes your chars 'mode' l on server: 1= @gamemaster, 2=@superman, 3=@observer, you need the correct acces to server to change mode (aka if you're not a gm in the files then this wont work
pkpoint usage: PKPOINT -10 what it does: decreases your pkpoints by 10, can also have 0 (instant pk point 0), or 100 (increase by 100)
kick usage: KICK what it does: kicks the player
hairstyle usage: HAIRSTYLE 2 what it does: changes your hairstyle to style' 2'
changegender usage: CHANGEGENDER 1 what it does: changes gender to male(0), female(1)
changelevel usage: CHANGELEVEL = 5 what it does: changes your level to 5, options: =, +, -
clearskill usage: CLEARSKILL what it does: deletes all your magics
delnojobskill usage: DELNOJOBSKILL what it does: deletes all the magics you have that dont match your job
delskill usage: DELSKILL FireBall what it does: deletes magic called fireball
addskill usage: ADDSKILL FireBall 2 what it does: gives you fireball level 2
skilllevel usage: SKILLLEVEL FireBall = 3 what it does: makes your fireball level 3, options: = , +, -
changepkpoint usage: CHANGEPKPOINT = 5 what it does: changes your pk points to 5, options: =, +, -
changeexp usage: CHANGEEXP - 50 what it does: makes you lose 50 exp, options: =, +, -
changejob usage: CHANGEJOB Warrior what it does: changes your job to warrior, options: Warrior, Wizard, Taoist
setmembertype usage: SETMEMBERTYPE = 2 what it does: sets membertype value to 2, options: =, +, -
setmemberlevel usage: SETMEMBERLEVEL + 2 what it does: sets memberlevel + 2, options: =, +, -
gamegold usage: GAMEGOLD - 10 what it does: takes away 10 gamegold(not regular gold), options: =, +, -
autoaddgamegold usage: AUTOADDGAMEGOLD START what it does: starts automaticaly giving you gamegold, Param1 = points, Param2 = time between additions, options: START, STOP
autosubgamegold usage: AUTOSUBGAMEGOLD START what it does: starts automaticaly decreasing your gamegold, Param1 = points, Param2 = time between
changenamecolor usage: CHANGENAMECOLOR 200 what it does: changes your names color to color number 200
clearpassword usage: CLEARPASSWORD what it does: empty's your password (ingame for storage)
renewlevel usage: RENEWLEVEL 10 20 1 what it does: increases your relevel value with 10, changes your level to 20, gives you 1 extra bonuspoint
killmonexprate usage: KILLMONEXPRATE 120 150 what it does: changes your exp rate (normal 100%) to 120% for 150 seconds
powerrate usage: POWERRATE 130 200 what it does: changes your power rate (normal 100%) to 130% for 200 seconds
changepermission usage: CHANGEPERMISSION 3 what it does: changes your acces to 3, aka gm rights
kill usage: KILL 2 what it does: kills you without giving anyone else pk, 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)
bonuspoint usage: BONUSPOINT = 2 what it does: sets your bonus abils to 2 (and resets all the points you got), options: =, + (- doesnt work here)
restrenewlevel usage: RESTRENEWLEVEL what it does: puts relevel value to 0
creditpoint usage: CREDITPOINT - 50 what it does: reduces creditpoints by 50, options: =,- ,+
gamepoint usage: GAMEPOINT = 5 what it does: sets your gamepoint value to 5, options: =, +, -
restbonuspoint usage: RESTBONUSPOINT what it does: resets your assigned bonuspoint
humanhp usage: HUMANHP + 5000 what it does: adds 5000 hp to your char (or just sets it to full if you don thave 5000), options: = , +, -
humanmp usage: HUMANMP + 20 what it does: same as above but for mp
setranklevelname usage: SETRANKLEVELNAME name what it does: sets your rankname to 'name'
setautogetexp usage: SETAUTOGETEXP 100 50 what it does: gives 50 exp every 100 seconds
temppowerup usage: TEMPPOWERUP DC 2 50 what it does: increases dc by 4(2+2) for 50 seconds options: DC,MC,SC,ASPEED,HP,MP
Item bits:
checkitem usage: CHECKITEM Sunpotion 3 what it does: checks if you have 3 or more sunpots if not false
take usage: TAKE Sunpotion 5 what it does: takes 5 sunpotions
give usage: GIVE Sunpotion 5 what it does: gives 5 sunpotions
takew usage: TAKEW Goldring 2 what it does: takes 2 goldrings you're wearing away from you, like left+right, 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]
checkitemw usage: CHECKITEMW GMBLADE 2 what it does: check if you wearing 2 gmblades (i know this isnt possible but it's possible for rings/braces :p)
checkgold usage: CHECKGOLD 5000 what it does: checks if you have 5000 or more gold
istakeitem usage: ISTAKEITEM Sunpotion what it does: not entirely sure it checks if some name = the param you enter
checkdura usage: CHECKDURA GoldOre 15 what it does: checks if you have a dura 15 or more goldore in your bag
checkduraeva usage: CHECKDURA GoldOre 50 what it does: checks if the total amount of all dura on goldores in your bag combined is 50 or more
checkuseitem usage: CHECKUSEITEM 2 what it does: checks if you have something equiped on position 2 of your body
checkbagsize usage: CHECKBAGSIZE 10 what it does: checks if you have 10 spare spaces in your bag
checkitemtype usage: CHECKITEMTYPE 3 25 what it does: checks if the stdmode of the item on position 3 of your body = 25
checkitemaddvalue usage: CHECKITEMADDVALUE 8 = 5 what it does: checks if the total amount of added stats of the item on position 8 on your body = 5, options: =,<,>,>=
takecheckitem usage: TAKECHECKITEM what it does: takes the item recently 'checked' for by this npc
clearneeditems usage: CLEANNEEDITEMS 2 what it does: deletes all items in your bag, storage that have need value set to '2'
clearmakeitems usage: CLEARMAKEITEMS Sunpotion 15245 0 what it does: deletets all the equiped items with makeindex 15245, if the last 0 would be 1 then it'll delete all the items equiped called 'sunpotion'
upgradeitem usage: UPGRADEITEM 3 2 1 what it does: upgrades item equiped on slot 3 with 1 in 3 chances of succes (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 tho so dont use it :p )
upgradeitemex usage: UPGRADEITEMEX 3 5 1 2 1 what it does: same 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
map bits:
checkmonmap usage: CHECKMONMAP d024 10 what it does: if there's less then 10 mobs on the map then it's false
checkrealmonmap usage: CHECKREALMONMAP d024 10 what it does: if there's less then 10 mobs (pets not counted) on the map then it's false
checkhum usage: CHECKHUM d024 10 what it does: if there's less then 10 players on the d024 map then this is false
checkpos usage: CHECKPOS mapname x y what it does: checks if you are standing on map called 'mapname' at coords x, y
checkrangemoncount usage: CHECKRANGEMONCOUNT mapname x y range = 5 what it does: checks on map called 'mapname' arround x,y coords if there are 5 mobs in a range, options: =,<,>,>=
checkinmaprange usage: CHECKINMAPRANGE mapname x y range what it does: checks if you are within the range of those x/y coords on that mapname
checkmaphumancount usage: CHECKMAPHUMANCOUNT mapname = 6 what it does: checks if there are 6 humans on map with name 'mapname', options: =,<,>,>=
checkmapmoncount usage: CHECKMAPMONCOUNT mapname > 5 what it does: same as above but for monsters on the map
checkmap usage: CHECKMAP mapname what it does: checks if the map you are on is called 'mapname'
timerecall usage: TIMERECALL 50 what it does: sets a 50 minute delay after which you will be teleported back to the spot you are on when you clicked npc
mapmove usage: MAPMOVE mapname 5 10 what it does: moves you to map with name' mapname' position 5:10
map usage: MAP mapname what it does: moves you to map with name 'mapname' on random coords
breaktimerecall usage: BREAKTIMERECALL what it does: stops a timed recall if any npc set it for your char
exchangemap usage: EXCHANGEMAP mapname what it does: makes you switch places with someone on map called 'mapname' if there's nobody there you just get teleported there
recallmap usage: RECALLMAP mapname what it does: makes everyone on map called 'mapname' get random teleported to the map you're on
addbatch usage: ADDBATCH mapname what it does: sets the options for the batchmove
batchdelay usage: BATCHDELAY 10 what it does: sets the batch delay to 10 seconds
batchmove usage: BATCHMOVE what it does: sets a delayed random move to a map set by addbatch; FIRST do batchdelay then addbatch then batchmove
setmapmon usage: SETMAPMODE mapname SAFE what it does: turns map into a safemode, there are other options like DARK, FIGTH, pretty much everything from mapflag value, there's a few other options you can add at the end like say SAFE 0 would turn off the safe rather then turning it on
pkzone usage: PKZONE 2 3 100 50 what it does: activates a map effect in a square arround the npc in range 2, the 'looks' = 3 (no idea what that is tho :p), will last for 100 seconds and do 50 dmg
mobfireburn usage: MOBFIREBURN mapname x y type points what it does: as far as i know does exactly the same as pkzone except arround player instead of npc
gtmapmove usage: GTMAPMOVE mapname 5 10 what it does: moves you to map with name 'mapname' coords 5:10 but on the same gt number as where the npc is on
files:
checknamelist usage: CHECKNAMELIST filename.txt what it does: checks if your charname excists in filename.txt
checkaccountlist usage: CHECKACCOUNTLIST filename.txt what it does: checks if your login excists in filename.txt
checkiplist usage: CHECKIPLIST filename.txt what it does: checks if your ip excists in filename.txt
checknameiplist usage: CHECKNAMEIPLIST filename.txt what it does: checks if your charname and ip adress are in filename.txt (basicaly only with both combination will this give true if you have the charname with a dif ip in the list it'll be false
checkaccountiplist usage: CHECKACCOUNTIPLIST filename.txt what it does: checks if your account and ip are in filename.txt (same comment as above)
checknamelistposition usage: CHECKNAMELISTPOSITION filename.txt 5 what it does: checks if your name is on the 5th line in the filename.txt basicaly
checkguildlist usage: CHECKGUILDLIST filename.txt what it does: checks if your guild name is in the file
addnamelist usage: ADDNAMELIST filename what it does: adds your charname to filename.txt
delnamelist usage: DELNAMELIST filename what it does: deletes your charname from filename.txt
addguildlist usage: ADDGUILDLIST filename what it does: adds your guildname to filename.txt
delguildlist usage: DELGUILDLIST filename what it does: deletes your guildname from filename.txt
addaccountlist usage: ADDACOUNTLIST filename what it does: adds your login to filename.txt
delaccountlist usage: DELACCOUNTLIST filename what it does: deletes your login from filename.txt
addiplist usage: ADDIPLIST filename what it does: adds your ip to filename.txt
deliplist usage: DELIPLIST filename what it does: delets your ip from filename.txt
clearnamelist usage: CLEARNAMEMIST filename what it does: deletes all data from filename.txt
addnamedatelist usage: ADDNAMEDATELIST filename what it does: adds your name and date to filename.txt
delnamedatelist usage: DELNAMEDATELIST filename what it does: deletes your name and date from filename.txt
clearlist usage: CLEARLIST filename what it does: delets everythging in filename.txt
Guild bits:
isguildmaster usage: ISGUILDMASTER what it does: checks if you are a guild master
iscastleguild usage: ISCASTLEGUILD what it does: checks if your guild owns a castle
isattackguild usage: ISATTACKGUILD what it does: checks if your guild is attacking a castle
isdefenseguild usage: ISDEFENSEGUILD what it does: checks if your guild is defending a castle
haveguild usage: HAVEGUILD what it does: checks if you have a guild
checkcastledoor usage: CHECKCASTLEDOOR OPEN what it does: checks if the castle door is open, options: OPEN,CLOSE,DESTROYED
isattackallyguild usage: ISATTACKALLYGUILD what it does: checks if your guild is allied to the attackers
isdefenseallyguild usage: ISDEFENSEALLYGUILD what it does: checks to see if your guild is allied with the defenders
iscastlemaster usage: ISCASTLEMASTER what it does: checks if you are guild leader and your guild owns a castle
checkofguild usage: CHECKOFGUILD guildname what it does: checks if you are in guild called 'guildname'
checkcastlegold usage: CHECKCASTLEGOLD = 5000 what it does: checks if the gold on your castle is 5000, options: =, <, >, >=
castlechangeday usage: CASTLECHANGEDAY = 4 what it does: checks if your guild owns the castle for 4 days, options: =,<,>,>=
castlewarday usage: CASTLEWARDAY = 6 what it does: checks if it's another 6 days until next war or if it's been 6days ago since war, options: =,<,>,>=