Commit graph

631 commits

Author SHA1 Message Date
HarpyWar
8fa63b578f Update README.md 2014-05-27 10:41:28 +04:00
HarpyWar
a90d3c385f Update README.md 2014-05-27 10:31:41 +04:00
HarpyWar
397c6b286d Change version
https://github.com/HarpyWar/pvpgn/issues/21
2014-05-27 05:25:54 +04:00
HarpyWar
ee04fdd23d Lua scripts pack. It is a part of PvPGN now.
First large implementation in Lua is Trivia Quiz Game (/quiz command) http://i.imgur.com/8QV3blt.png
2014-05-26 16:17:51 +04:00
HarpyWar
4d862593b4 New Lua functions: describe_command, messagebox_show 2014-05-24 23:24:12 +04:00
HarpyWar
d4428c1971 /alert command with messagebox_show function
https://github.com/HarpyWar/pvpgn/issues/15
2014-05-24 20:55:52 +04:00
HarpyWar
af2baccdb8 Actually message length is 255 (not 254), and limitation in Blizzard game clients is the same. 2014-05-24 20:54:51 +04:00
HarpyWar
3b840052a2 https://github.com/HarpyWar/pvpgn/issues/20 2014-05-24 14:37:52 +04:00
HarpyWar
9c0afe54cb Enable trackers by default https://github.com/HarpyWar/pvpgn/issues/18 2014-05-23 23:28:33 +04:00
HarpyWar
eb9e5fcd01 Fix compile errors from the previous commit.
Return code -1 = error. But display help message is info message, so return 0 instead of -1.
2014-05-23 23:27:20 +04:00
HarpyWar
5ed7a52c88 Merge branch with Lua support 2014-05-23 22:53:04 +04:00
HarpyWar
1be1f823ef Add Lua to cmake.
Fix compile errors on Linux
2014-05-23 22:19:43 +04:00
HarpyWar
4d3e070617 New Lua functions:
- command_get_group
- icon_get_rank
2014-05-17 19:38:48 +04:00
HarpyWar
688b9f09b8 * Add feature to use normal d2s character in newbie.save as a template for a new Diablo 2 characters. Different template for each character class. 2014-05-10 17:07:34 +04:00
HarpyWar
6883be9a11 Remove reduntant extra_commands 2014-05-06 23:17:03 +04:00
HarpyWar
e17fa89497 - "main" entry point for Lua scripts, when all the scripts are loaded and user can make initialiation there
- load Lua scripts alphabetically and recursively: first directories and then files
2014-05-05 23:21:40 +04:00
HarpyWar
6a43773b43 - Lua new event: handle_server_loop
- Fix timers check delay
- "online" field for account object
2014-05-05 18:43:11 +04:00
HarpyWar
acb87fa225 - add "config" table for Lua scripts with all the options from bnetd.conf
- all Lua functions are in "api" lib
- extract Lua functions, and objects into different cpp files
2014-05-04 00:57:05 +04:00
HarpyWar
dd30674d0e New Lua functions:
- game_get_by_id
- channel_get_by_id
- server_get_users
- server_get_games
- server_get_channels
2014-05-03 19:15:36 +04:00
HarpyWar
5287c5c266 New Lua events:
- handle_channel_message
- handle_channel_userjoin
- handle_channel_userleft
- handle_user_whisper
- handle_user_login
- handle_user_disconnect

New Lua functions:
- account_get_friends
- account_get_teams
- clan_get_members
2014-05-02 22:23:13 +04:00
HarpyWar
a792b15666 dirent.h for directory iteration (windows implementation of unix functions) 2014-04-30 12:48:15 +04:00
HarpyWar
36deb1179b /icon enhancements:
* removed clienttag from the command syntax
* simple syntax for normal user: /icon [code]
* complex syntax for operator/admin: /icon set|add|del|list [username] [code]
* add aliases for icon codes in icons.conf (users can use alias name instead of code)
* refactoring customicons function names https://github.com/HarpyWar/pvpgn/issues/10
2014-04-29 12:53:58 +04:00
HarpyWar
8638b1733a Improvements for commands:
/lock <player> [hours] [reason]
/mute <player> [hours] [reason]

https://github.com/HarpyWar/pvpgn/issues/3
2014-04-27 11:14:45 +04:00
HarpyWar
50e85312fa Continue of previous commit.
* add help description for /mail and /ipban https://github.com/HarpyWar/pvpgn/issues/5
* refactoring: move /icon command to icons.cpp, move split_command() to common
2014-04-27 11:11:04 +04:00
HarpyWar
d2fffcf408 * display help for commands from bnhelp.conf instead of hardcoded strings https://github.com/HarpyWar/pvpgn/issues/5
* better view for help output, commands are highlited, tabs replaces with spaces http://i.imgur.com/vrj9QG1.png
* add aliases /mute /unmute /lock /unlock = /muteacct /unmuteacct /lockacct /unlockacct)
* command.cpp code refactoring and fixes (including /icon https://github.com/HarpyWar/pvpgn/issues/9)
2014-04-26 18:46:33 +04:00
HarpyWar
0e72ec967b Command /topic modifications:
* new line symbol "\n" is available
* remove required channel name from arguments: /topic [message]
https://github.com/HarpyWar/pvpgn/issues/6
2014-04-21 17:15:30 +04:00
HarpyWar
8657c029c9 Merge pull request #1 from xboi209/master
Tidying things up
2014-04-21 07:56:00 +04:00
xboi209
5449ae69ab Fixed compile errors 2014-04-20 10:21:39 -07:00
HarpyWar
7e5a95b914 forgot add to changed from previous commit to windows config
https://github.com/HarpyWar/pvpgn/issues/7
2014-04-20 14:00:27 +04:00
xboi209
c3507e4968 Update default trackers
https://github.com/HarpyWar/pvpgn/issues/7
2014-04-20 13:06:37 +04:00
HarpyWar
906596a15c fix /icon (it reverses icon code each time when invoked) 2014-04-20 13:01:01 +04:00
xboi209
8f797f7fbf This is actually an older version.... 2014-04-19 23:54:00 -07:00
xboi209
3549b74ed9 Forgot to add /? and /emote to command_groups.conf.in 2014-04-19 11:36:04 -07:00
xboi209
721cd83856 Updated more help messages 2014-04-19 10:43:13 -07:00
HarpyWar
2e87533c0c Fix to find account by name offline, but not only online (connlist_find_connection_by_accountname -> accountlist_find_account)
New Lua functions:
account_attr_get
account_attr_set
2014-04-18 23:52:27 +04:00
HarpyWar
8438259077 New Lua events implemented:
handle_game_create,
handle_game_report,
handle_game_end,
handle_game_destroy,
handle_game_changestatus,
handle_user_joingame,
handle_user_leftgame,

New Lua function:
get_account
2014-04-18 21:57:45 +04:00
HarpyWar
4ea106be50 /rehash configs separately 2014-04-16 11:10:52 +04:00
HarpyWar
6c31420ffd First look with LUA
* load & execute all .lua scripts from scriptdir
* lua test event for handle_command
* first lua registered function message_send_text
2014-04-16 00:08:07 +04:00
HarpyWar
33dec83146 When there is a user notification message, such as one of your friends entering the server, joining a game, leaving a game, or leaving a server, the message is sent by the server name, instead of the user triggering the event, which Battle.net does.
This allows the /r command to go to the user triggering the event.
http://developer.berlios.de/bugs/?func=detailbug&bug_id=15327&group_id=2291
2014-04-15 18:09:16 +04:00
xboi209
f2dd4eccbd •Replaced instances of PVPGN_SOFTWARE to prefs_get_servername()
•Added command /?, alias of /help
•Added command /emote, alias of /me
•Fixed a few spelling mistakes
2014-04-14 19:30:37 -07:00
xboi209
8cefee9065 Updated help messages for commands 2014-04-14 19:15:07 -07:00
xboi209
caa33eee79 •Corrected language errors
•Added /j command, alias of /join
•Replaced instances of "PVPGN" with the name of your server
•/warrenty --> /warranty
2014-04-13 10:56:51 -07:00
HarpyWar
68ed78fb91 merge 2014-04-11 20:01:23 +04:00
HarpyWar
e86b6701e4 minor fixes for /icon 2014-04-11 11:55:19 +04:00
HarpyWar
2b848281d3 add info about BNI icons editing 2014-04-10 13:14:34 +04:00
HarpyWar
b401d4e849 fix /icon command to view current usericon with /icon <username> (icon code is not necessary) 2014-04-10 11:31:09 +04:00
HarpyWar
3f4d46295a Update README.md 2014-04-07 21:29:27 +04:00
HarpyWar
b5da29b392 Update README.md 2014-04-07 21:26:31 +04:00
HarpyWar
1ade081c6b Add command /icon <username> [CODE] 2014-04-07 20:12:32 +04:00
HarpyWar
f1a96c3920 example rating icons for starcraft, that are set in icons.conf 2014-04-07 17:59:40 +04:00