diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-07 18:46:21 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-07 18:46:21 +0000 |
commit | 392e49a6097460851f10501cfe34a9ee86010468 (patch) | |
tree | 3d649616dfe3cb1066f0d4b269536c75716f6178 /src/map/vending.c | |
parent | 7e744fbd4fbf444adc163a52696fe3e67f4b699c (diff) | |
download | hercules-392e49a6097460851f10501cfe34a9ee86010468.tar.gz hercules-392e49a6097460851f10501cfe34a9ee86010468.tar.bz2 hercules-392e49a6097460851f10501cfe34a9ee86010468.tar.xz hercules-392e49a6097460851f10501cfe34a9ee86010468.zip |
- Added function battle_attr_ratio to handle just getting the attribute table data. Fixes Sense messing up with elemental based statuses.
- Added Throw tomahawk to the list of items that do not trigger the equipment breaking code.
- Moved a bit around the SC_ start of dancing skills to fix Moonlight petals pushing back the casters.
- Modified status_damage to handle SC_KAZIEL. The return value of *_dead functions can pass 8 to specify that kaziel should not be triggered (ie: pvp/gvg)
- Infinite Endure won't be passed on to devoted characters.
- Infinite Endure is no longer saved on logout.
- Added check to avoid gms opening vending shops if they don't have the required level.
- Moved around the Steel Body S. Novice code, simplified it so it triggers before most of the penalties (death is cancelled).
- Fixed the flee penalty not applying when you walk into a gvg map.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12688 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/vending.c')
-rw-r--r-- | src/map/vending.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/vending.c b/src/map/vending.c index 935971b16..0420d5288 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -42,7 +42,6 @@ void vending_closevending(struct map_session_data* sd) void vending_vendinglistreq(struct map_session_data* sd, int id) { struct map_session_data* vsd; - nullpo_retv(sd); if( (vsd = map_id2sd(id)) == NULL ) @@ -50,6 +49,12 @@ void vending_vendinglistreq(struct map_session_data* sd, int id) if( vsd->vender_id == 0 ) return; // not vending + if ( !pc_can_give_items(pc_isGM(sd)) || !pc_can_give_items(pc_isGM(vsd)) ) //check if both GMs are allowed to trade + { // GM is not allowed to trade + clif_displaymessage(sd->fd, msg_txt(246)); + return; + } + clif_vendinglist(sd, id, vsd->vending); } |