519 Commits

Author SHA1 Message Date
Paradox924X
e2bd29e7c2 Replaced all occurrences of 'leaved' with 'withdraw'.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14319 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01 00:52:39 +00:00
skotlex
2b3c602ea7 Merged a few updates for supporting renewal clients (thanks to Diablo): [Skotlex]
- Updated packet_db entries
- Added slot info on packet 0x6b (PACKETVER > 20100413)
- Trade add-item use packet 0x80f (PACKETVER > 20100223)
- Guild storage add-item use packet 0x1c4 (PACKETVER > 20090603)
- Vending list use packet 0x800 (PACKETVER > 20100105)
- Allow client to change item-share party settings (PACKETVER > 20090603)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-04-23 13:19:25 +00:00
Inkfish
5cda184eb8 Fixed an exploit where the buyer can end the auction himself.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14255 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-03-02 09:50:32 +00:00
Paradox924X
dde953ee4a Expanded range for cached and stored-in-db guild member exp (devotion) from uint32 to uint64. (bugreport:3983)
Capped value when sending to client to INT_MAX to prevent confusion.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14242 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-09 20:26:42 +00:00
Paradox924X
92ed65fd9a Prevented online user count from going negative. (bugreport:3913)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-12-03 07:51:55 +00:00
ultramage
e3300232a5 Cleaned up leftover PACKETVER define on the charserver (followup to r14155).
Expanded the error message in guild_castledataloadack() to actually provide some useful info.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-24 23:40:42 +00:00
skotlex
c92ff591f1 - Applied the renewal client support patch from Diablo (eA forum topic 222623)
- Added support for strcharinfo(3) to retrieve the player's map
- Added script command "searchitem" for name item searches.
- Moved PACKETVER to src/common/mmo.h as it's needed by the char-server now
- Changed the status valX from int to long so that it won't break for pointer-storage in other architectures.
- Moved the change party leader code to party.c
- A few bugfixes or packet field completions based on my past experience messing around with my server.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-19 18:19:09 +00:00
ultramage
9025c3c4c9 Removed unnecessary use of StringBuf in int_quest.c to avoid memleaks in certain cases.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-15 18:22:10 +00:00
Gepard
f9cff9c6e0 Extended broadcast implementation:
- support for font formatting, like font-size
 - `bc_woe` flag to allow client-side filtering of WoE announcements
 - new broadcast packet 0x40C  

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14120 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-03 15:56:54 +00:00
Inkfish
c50cacf28d Fixed quest will never get erased when it's the only quest you have.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14105 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-27 13:54:23 +00:00
ultramage
b0bf56cf2e Removed the char_rename setting in favor of a PACKETVER define.
Inverted the way renames are counted: '0' now means 'no renames left' (the default).
Please make sure your database matches this new behavior before starting the server.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14093 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-18 11:29:30 +00:00
Inkfish
58c0099b66 Removed 'char_max_rename', extended 'char_rename', fixed compatibility issues.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14089 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-12 11:46:24 +00:00
Inkfish
0088d3754c Fixed an error when 'char_rename' is set to 'no'
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-12 09:51:47 +00:00
Inkfish
a2b652aa87 Added character rename function.(topic:225576)(written by pakpil and fixed by me)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14084 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-11 03:07:52 +00:00
zephyrus
115d6a3fd0 - Implemented new packets for rental items (from Jobbie and Natz and fixed by me).
- Rental items now can be moved to storage and cart.
- Autotrade cannot be used when user is dead, and it's not dispelled if user dies to prevent abuse.
- Fixed pc_checkitem to do a proper item check and remove.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14082 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-10-04 21:42:15 +00:00
ultramage
84cc5b7513 Disabled ip checking during auth, since it lead to a lot of confusion.
This essentially reverts the default behavior to before r10021.
Re-enabling should only be reconsidered after the subnet mechanism is made fully automatic.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-09-20 22:09:59 +00:00
Inkfish
6b89176cc9 * QuestLog Fix.
- mob id no longer stores in sql.
- counts won't increase if you have killed sufficient mobs.
* Fixed Merchant's medalion wrong aspd bonus (bugreport:3554)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-09-04 11:14:27 +00:00
Inkfish
e9379c3be0 Fixed the wrong packet length makes client choke when add_quest packets are sent.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-21 07:16:40 +00:00
Inkfish
52bac46cfe * Questlog code cleanup.
* Fixed range check of autospell and autospell2 using wrong target when it should be used on yourself.
* Implemented official behavior of party_show_share_picker.
* Restricted zones in 'item_noequip.txt' can now stack.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-02 04:10:23 +00:00
Inkfish
b753cba749 * Some more updates to Quest Log
- Implemented a new saving mechanism. Now they can be saved every 'autosave_time' in case the char-server is not online when you get a quest.
- Improved 'changequest' code.
- Increase MAX_QUEST_DB to 1200.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-28 04:04:50 +00:00
Inkfish
4a6f0d122c * Some updates of Quest Log system
- renamed table 'questlog' to 'quest' to avoid misunderstanding
- updated main.sql
- fixed the server can't load more than 16 quests
- removed the MAX_QUEST limit. tests show the client can handle more than 100 quests.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-26 06:01:10 +00:00
Inkfish
153c9f5c5c Fixed undeclared variables on charserv compiling. how careless i am.....
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25 21:09:25 +00:00
Inkfish
698e7a0fc0 Rewrote Quest Log system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25 20:55:35 +00:00
ultramage
e54bf092d2 Fixed sql char deletion code using a broken pet deletion query (ran very slow, and had a typo in a binary shift operation) (bugreport:3304).
Fixed change r13774 to the code responsible for deciding whether to move 1 extra cell when stopping walking; it had its logic inverted by mistake (bugreport:3312).
Cleaned up the itemlist, cartlist and storagelist gm command code:
- fixed buffer overflows in all three functions (bugreport:456).
- merged all three atcommand functions into a single one; the appropriate behavior is detected from the command's name.
- using the StringBuf class instead of static-size buffers and string operations for more efficient and safe processing.
- using 'jname' (the one without underscores) as the primary item name in the list, and not using the aegis name for cards at all (since it's almost identical).
- fixed forged item details never being displayed due to a missing strcat().
- extended item info (crafted/named items, pet eggs) will now be displayed for storage and cart list as well.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30 09:21:28 +00:00
Inkfish
86d162ad13 Fixed an exploit that makes guild skill get higher level than the max defined in guild_skill_tree. (bugreport:3241)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-16 12:35:03 +00:00
ultramage
8e3102cfc1 svn:eol-style native for char_sql's int_mercenary code (missing in r13166).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02 23:46:36 +00:00
FlavioJS
e7607efb6c * Removed online_check config options. (always active now)
* Clarified char_maintenance config option.
* Changed packet 0x2712. (added request_id)
* Changed packet 0x2713. (added sex, request_id, version, clienttype; removed email, expiration time, gmlevel)
* Delayed user count check and mmo_char_send006b to when the account data arrives.
* Created auxiliary function MD5_Salt.

(split from a future commit that was getting to big for my taste)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13652 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-01 22:39:19 +00:00
ultramage
c2cc0763d9 Increased variable size for status/skill points to remove the 65k cap (bugreport:1579).
Added sql upgrade script to adjust the appropriate char table columns.
This is an enhancement to r5762.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20 19:47:17 +00:00
ultramage
578532f577 Moved the 'changed' mailbox flag from shared mmo.h to mapserver-only.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-05 15:34:09 +00:00
ultramage
859cb0ad08 followup
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13374 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-17 15:47:29 +00:00
zephyrus
bd429b5a92 - Some "expire_time" = 0 considerations. Please update. (Bugreport 2451)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13373 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-17 15:43:13 +00:00
zephyrus
c830a56da3 - Item Rental System.
Script Usage:
- rentitem <itemid>,<seconds>;
- rentitem <itemname>,<seconds>;

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-16 16:14:30 +00:00
FlavioJS
d474fff85a * Fixed 'Char creation denied' message not being sent properly.
- Number 2 didn't exist in old clients so it used the default message, now it exists so the wrong message is displayed.
- Changed 2 to 0xFF to get the default message.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-11-06 20:23:33 +00:00
skotlex
0167134620 - Added the required changes to support the 2008-09-10+ clients
- Cleaned around the char set offline function to properly avoid setting offline a character that had relogged faster than the map server's packet arrival to the char-server (I presume this was the bugfix that Kevin attempted a long time ago, but the current code for that causes a dangling pointer problem).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-15 12:31:16 +00:00
FlavioJS
2f1d2b2199 * Fix for "yet another online check bypass technique". (bugreport:2292)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-10-03 16:30:41 +00:00
ultramage
de25376177 Fixing the txt-char converter compilation (bugreport:2171).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-28 15:02:55 +00:00
zephyrus
874a628fb3 - Fixed problem deleting characters.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-02 21:18:33 +00:00
zephyrus
5954733c85 - Moved char server's mercenary code to a different file (int_mercenary.*)
- New Sql Patch for create mercenary_owner DB.
- Removed mer_id from char_db.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13166 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-01 00:03:10 +00:00
zephyrus
6a1de57730 - A proper mercenary lifetime calculation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13165 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-31 22:56:05 +00:00
zephyrus
5df63da5e7 - Implemented Mercenary Scrolls (item_db)
- There are some little problems, like remaining time going to 0, but you can summon it, make it walk, follow you.
- Feel free to test it.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13126 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24 22:45:32 +00:00
zephyrus
daf7030ce9 - Ops!! this is mine (homunculus hungry messages).
- Fixed a bug on char delete.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-24 15:51:33 +00:00
zephyrus
0cd39a6399 - Some stuff i forgot for char_sql. Bug Report 2112.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-23 22:21:32 +00:00
zephyrus
399efe15bd - Completed Mercenary Create, Delete, Save. Tests OK.
- Incremented MAX_SKILL required for a proper load of Mercenary Skills.
- Some fixes.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13118 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-23 19:08:54 +00:00
zephyrus
e5e14c14fe - Added column mer_id on char_db
- More mercenary implementations (delete, load, create)
- Some fixes.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-23 14:59:51 +00:00
zephyrus
1204fd49db - Mercenary Packets (Server to Client). Still need a little more info.
- Packet for Mercenary Menu.
- Some other progress as creation but need more code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13116 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-23 13:09:50 +00:00
ultramage
e3d39453fd * Fixed a storage saving issue with txt charserver (bugreport:2084)
- caused by incorrect idb_ensure -> idb_get change (see r12950)
- removed redundant account_id variable from storage data
- cleaned up the very messy txt storage handling code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13093 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-19 16:00:30 +00:00
zephyrus
83f55ea8bf ** Please update your server ASAP. **
- Fixed a wrong auth process, setting account offline in Login server when accessing Char server. (OMG!)
- Fixed a bug on TK_JUMPKICK. It should only do damage if can reach target.
- Fixed bug on Arug_cas01 script.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13087 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-17 00:21:13 +00:00
ultramage
581c0a893f Fixed an ancient sql query typo (bugreport:1979)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13046 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-04 13:05:52 +00:00
ultramage
5ce6f6c51a Added configs for quest table name adjustment (bugreport:1778)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13041 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-04 03:19:00 +00:00
ultramage
dac1c2d2df Removed unused guardian hp columns from the guild castles table in main.sql (should have been done in r11915).
Corrected incorrect use of the datetime column in the `login` table (bugreport:1962). Refreshed txt account savefile.
Cleaned up some random minor source code glitches.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-01 07:05:16 +00:00