Skip to content
Permalink
Browse files
Initial release of VIP System.
By default system is disabled (src/config/core.h).
This follows the iRO implementation VIP System. More information can be found on the iRO Wiki.
All settings also have individual configs.
Official VIP scripts will be implemented later.
Big thanks to lighta and Cydh for support and debugging.
  • Loading branch information
aleos89 committed Nov 18, 2013
1 parent 24ca5b5 commit 30648216ec2d196f29725110e3ade2ea2aaea618
@@ -5,6 +5,8 @@
//--------------------------------------------------------------
// Note 1: Value is a config switch (on/off, yes/no or 1/0)
// Note 2: Value is in percents (100 means 100%)
// Note 3: Value is a bit field. If no description is given,
// assume unit types (1: Pc, 2: Mob, 4: Pet, 8: Homun)
//--------------------------------------------------------------

// Players' maximum HP rate? (Default is 100)
@@ -141,4 +143,48 @@ idle_no_autoloot: 0

// Minimum distance a vending/chat room must be from a NPC in order to be placed.
// Default: 3 (0: disabled).
min_npc_vendchat_distance: 3
min_npc_vendchat_distance: 3

// Storage slot increase. Setting to 0 will disable.
// Give more storage slots above the MIN_STORAGE limit.
// Note: MIN_STORAGE + storage_increase cannot exceed MAX_STORAGE.
// Default: 300
vip_storage_increase: 300

// Base experience rate increase. Setting to 0 will disable. (Note 2)
// Default: 50
vip_base_exp_increase: 50

// Experience penalty rate multiplier for Non-VIP accounts
// Multiplies the 'death_penalty_base' and 'death_penalty_job' settings in 'conf/battle/exp.conf'.
// Default: 3 (3*100 = 3% penalty)
vip_exp_penalty_base_normal: 3
vip_exp_penalty_job_normal: 3

// Experience penalty rate multiplier for VIP accounts
// Multiplies the 'death_penalty_base' and 'death_penalty_job' settings in 'conf/battle/exp.conf'.
// Default: 1 (1*100 = 1% penalty)
vip_exp_penalty_base: 1
vip_exp_penalty_job: 1

// Job experience rate increase. Setting to 0 will disable. (Note 2)
// Default: 50
vip_job_exp_increase: 50

// Battle Manual experience increase. Setting to 0 will disable.
// - Regular/Thick Battle Manual: 50+(50/X) = 75%
// - HE Battle Manual: 100+(100/X) = 150%
// - Battle Manual x3: 200+(200/X) = 300%
// Note: X is what the config is set to.
// Default: 2
vip_bm_increase: 2

// Item drop increase. Setting to 0 will disable.
// Note: 50 = 0.5%
// Default: 50
vip_drop_increase: 50

// GemStone requirement. Setting to false will disable.
// Can the VIP Group ignore GemStone requirement for skills?
// Default: true
vip_gemstone: true
@@ -140,11 +140,6 @@ char_name_option: 1
// Note: Don't add spaces unless you mean to add 'space' to the list.
char_name_letters: abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890

// How many Characters are allowed per Account ? (0 = disabled)
// You can not exceed the limit of MAX_CHARS slots, defined in mmo.h
// Doing that, chars_per_account will be default to MAX_CHARS.
chars_per_account: 0

// Restrict character deletion by BaseLevel
// 0: no restriction (players can delete characters of any level)
// -X: you can't delete chars with BaseLevel <= X
@@ -219,6 +219,19 @@ groups: (
any_warp: true
}
},
{
id: 5
name: "VIP"
inherit: ( "Player" ) /* can do everything Players can */
level: 0
commands: {
rates: true
who: true
}
permissions: {
/* no permissions by default */
}
},
{
id: 10
name: "Law Enforcement"
@@ -73,6 +73,23 @@ group_id_to_connect: -1
// 0 or more: group id
min_group_id_to_connect: -1

// Which group (ID) will be denoted as the VIP Group?
// Default: 5
vip_group: 5

// How many Characters are allowed per Account ? (0 = disabled)
// You can not exceed the limit of MAX_CHARS slots, defined in mmo.h
// Doing that, chars_per_account will be default to MAX_CHARS.
// If setting to 0 MIN_CHARS value will be used.
chars_per_account: 0

// Max character limit increase. Setting to 0 will disable.
// Increase MAX_CHAR if you want to increase char_increase.
// Note: MAX_CHARS - chars_per_account = Amount of VIP Chars (char_increase value in login table).
// Note2: this setting need to be set after chars_per_account
// Default: 6
vip_char_increase: 6

// Starting additional sec from now for the limited time at creation of account
// -1: new account are created with UNlimited time (default value)
// 0 or more: new accounts was created by addition of the value (in sec) to the actual time (to set first limited time)
@@ -693,6 +693,16 @@
694: Hanbok
695: Rebellion

// @vip
700: Usage: @vip <time> <character name>
701: Invalid time for VIP command.
702: Time parameter format is +/-<value> to alter. y/a = Year, m = Month, d/j = Day, h = Hour, n/mn = Minute, s = Second.
703: GM has removed your VIP time.
704: Player is no longer VIP.
705: %s is VIP for %d years, %d months, %d days, %d hours and %d minutes.
706: This player is now VIP for %d years, %d months, %d days, %d hours and %d minutes.
707: You are VIP until
//708-899 free

//------------------------------------
// More atcommands message
@@ -1761,6 +1761,7 @@ packet_ver: 30
0x0977,14 //Monster HP Bar
0x0916,26,guildinvite2,2
0x091d,18,bookingregreq,2:4:6
//0x08cb,10,ZC_PERSONAL_INFOMATION,2:4:6:8:10:11:13:15 // Disabled until further information is found.

//2012-04-18aRagexeRE [Special Thanks to Judas!]
packet_ver:31
@@ -1855,6 +1856,8 @@ packet_ver: 34
0x0977,14 //Monster HP Bar
0x0978,6,reqworldinfo,2
0x0979,50 //ackworldinfo
//0x097b,16,ZC_PERSONAL_INFOMATION,2:4:8:12:16:17:21:25 // Disabled until further information is found.
//0x0981,12,ZC_PERSONAL_INFOMATION_CHN,2:4:6:8:12:13:15:17:10 // Disabled until further information is found.
0x0990,31 //additem
0x0991,-1 //inv itemlist normal
0x0992,-1 //inv itemlist equip
@@ -460,6 +460,8 @@ CREATE TABLE IF NOT EXISTS `login` (
`pincode` varchar(4) NOT NULL DEFAULT '',
`pincode_change` int(11) unsigned NOT NULL DEFAULT '0',
`bank_vault` int(11) NOT NULL DEFAULT '0',
`vip_time` int(11) unsigned NOT NULL default '0',
`old_group` tinyint(3) NOT NULL default '0',
PRIMARY KEY (`account_id`),
KEY `name` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2000000;

3 comments on commit 3064821

@vanmildx
Copy link

@vanmildx vanmildx commented on 3064821 Dec 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i hope this the right place commit for some bug
compiling when using vip enable make some loss data, vip_time not save to database sql
rathena\src\login\login.c(491): warning C4244: '=' : conversion from 'time_t' to 'uint32', possible loss of data
rathena\src\map\atcommand.c(9205): warning C4244: 'function' : conversion from 'time_t' to 'int', possible loss of
rathena\src\map\script.c(17996): warning C4244: 'function' : conversion from 'time_t' to 'int', possible loss of data

1>------ Rebuild All started: Project: char-server_sql, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: login-server_sql, Configuration: Debug Win32 ------
1>  grammar.c
1>  libconfig.c
1>  scanctx.c
1>  scanner.c
1>  strbuf.c
1>  mt19937ar.c
1>  core.c
1>  conf.c
1>  db.c
1>  ers.c
1>  malloc.c
1>  mapindex.c
1>  mempool.c
1>  mutex.c
1>  nullpo.c
1>  raconf.c
1>  random.c
1>  showmsg.c
1>  socket.c
1>  sql.c
2>  grammar.c
2>  libconfig.c
2>  scanctx.c
2>  scanner.c
2>  strbuf.c
2>  mempool.c
2>  mutex.c
2>  raconf.c
1>  strlib.c
2>  thread.c
2>  account_sql.c
2>  ipban_sql.c
2>  login.c
2>d:\ro_offline\server\rathena\src\login\login.c(491): warning C4244: '=' : conversion from 'time_t' to 'uint32', possible loss of data
2>  loginlog_sql.c
2>  core.c
2>  conf.c
2>  db.c
1>  thread.c
2>  ers.c
1>  timer.c
2>  malloc.c
2>  md5calc.c
2>  nullpo.c
1>  utils.c
2>  random.c
2>  showmsg.c
1>  cli.c
1>  msg_conf.c
1>  char.c
2>  socket.c
1>  int_auction.c
2>  sql.c
2>  strlib.c
1>  int_elemental.c
1>  int_guild.c
2>  timer.c
2>  utils.c
1>  int_homun.c
1>  int_mail.c
2>  cli.c
2>  msg_conf.c
2>  mt19937ar.c
1>  int_mercenary.c
1>  int_party.c
1>  int_pet.c
1>  int_quest.c
1>  int_storage.c
1>  inter.c
2>  login-server_sql.vcxproj -> D:\RO_Offline\server\rathena\vcproj-12\..\login-server_sql.exe
3>------ Rebuild All started: Project: map-server_sql, Configuration: Debug Win32 ------
3>  grammar.c
3>  libconfig.c
3>  scanctx.c
3>  scanner.c
3>  strbuf.c
3>  mt19937ar.c
3>  conf.c
3>  core.c
3>  db.c
3>  des.c
3>  ers.c
3>  grfio.c
3>  malloc.c
3>  mapindex.c
3>  md5calc.c
3>  mempool.c
3>  mutex.c
3>  nullpo.c
3>  raconf.c
3>  random.c
3>  showmsg.c
3>  socket.c
3>  sql.c
3>  strlib.c
3>  thread.c
3>  timer.c
3>  utils.c
3>  cli.c
3>  msg_conf.c
3>  atcommand.c
3>  battle.c
3>d:\ro_offline\server\rathena\src\map\atcommand.c(9205): warning C4244: 'function' : conversion from 'time_t' to 'int', possible loss of data
3>  battleground.c
3>  buyingstore.c
3>  cashshop.c
3>  channel.c
3>  chat.c
3>  chrif.c
3>  clif.c
3>  date.c
3>  duel.c
3>  elemental.c
3>  guild.c
3>  intif.c
3>  itemdb.c
3>  log.c
3>  mail.c
3>  map.c
3>  mapreg_sql.c
3>  homunculus.c
3>  instance.c
3>  mercenary.c
3>  mob.c
3>  npc.c
3>  npc_chat.c
3>  party.c
3>  path.c
3>  pc.c
3>  pc_groups.c
3>  pet.c
3>  quest.c
3>  script.c
3>  searchstore.c
3>  skill.c
3>d:\ro_offline\server\rathena\src\map\script.c(17996): warning C4244: 'function' : conversion from 'time_t' to 'int', possible loss of data
3>  status.c
3>  storage.c
3>  trade.c
3>  unit.c
3>  vending.c
1>  char-server_sql.vcxproj -> D:\RO_Offline\server\rathena\vcproj-12\..\char-server_sql.exe
4>------ Rebuild All started: Project: mapcache, Configuration: Debug Win32 ------
4>  core.c
4>  des.c
4>  grfio.c
4>  malloc.c
4>  showmsg.c
4>  strlib.c
4>  utils.c
4>  mapcache.c
4>  mapcache.vcxproj -> D:\RO_Offline\server\rathena\vcproj-12\..\mapcache.exe
3>  map-server_sql.vcxproj -> D:\RO_Offline\server\rathena\vcproj-12\..\map-server_sql.exe
========== Rebuild All: 4 succeeded, 0 failed, 0 skipped ==========

@cydh
Copy link
Contributor

@cydh cydh commented on 3064821 Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update ur files

@vanmildx
Copy link

@vanmildx vanmildx commented on 3064821 Dec 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i had update and its still have warning message and vip_time data cannot store to database

Please sign in to comment.