diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-10-04 21:42:15 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-10-04 21:42:15 +0000 |
commit | 37a78d0554f4a66793aa2f20694b8716a56b3c25 (patch) | |
tree | 1b208438a1d87960911bee590ddc9d62bf4f5fe8 /src/map/atcommand.c | |
parent | 6f630e5f6d0082fb105de0b0edb0afe78075abdc (diff) | |
download | hercules-37a78d0554f4a66793aa2f20694b8716a56b3c25.tar.gz hercules-37a78d0554f4a66793aa2f20694b8716a56b3c25.tar.bz2 hercules-37a78d0554f4a66793aa2f20694b8716a56b3c25.tar.xz hercules-37a78d0554f4a66793aa2f20694b8716a56b3c25.zip |
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14082 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 86d8c7a62..c59c2b851 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5870,6 +5870,12 @@ int atcommand_autotrade(const int fd, struct map_session_data* sd, const char* c nullpo_retr(-1, sd); if( sd->vender_id ) //check if player's vending { + if( pc_isdead(sd) ) + { + clif_displaymessage(fd, "Cannot Autotrade if you are dead."); + return -1; + } + if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag ) { sd->state.autotrade = 1; |