Jump to content

Jerahya

Members
  • Content Count

    9
  • Joined

  • Last visited

Everything posted by Jerahya

  1. try using the clif.c found in the file I uploaded. It should work fine.
  2. I see. I just got used to rathena maybe. Thanks for the info.
  3. @@Dastgir I know but he ask what packet version to use to he'll couple of information from that packet db. like //2013-08-07Ragexe packet_ver: 45 which gives #define PACKETVER 20130807 and <version>45</version> for clieninfo.xml
  4. This? http://upaste.me/4fbf8825c47d852c based on what you put in mmo.h.
  5. hopefully it will be sooner. But I was able to compile map-server.exe by puting the C declaration at the beginning of the function. Fromint atcommand_stopattack(struct block_list *bl,va_list ap){ struct unit_data *ud = unit->bl2ud(bl); nullpo_ret(bl); int id = va_arg(ap, int); ....}Toint atcommand_stopattack(struct block_list *bl,va_list ap){ int id; struct unit_data *ud = unit->bl2ud(bl); nullpo_ret(bl); id = va_arg(ap, int); ....} same goes for other function that has the error. But I still have other error to deal with. EDIT: Fix for the error above ^ edit src/common/cbasetypes.h Line 289: //#ifndef __bool_true_false_are_defined// If stdbool.h is not available or does not define this#ifndef __cplusplustypedef char bool; Run Clean then Build solution. This is just a temporary fix until the actual fix comes out. I have no idea what I was doing while editing the code. or just replace clif.c and atcommand.c in scr/map and cbasetypes.h in scr/common with this. https://www.mediafire.com/?6ndsriaghibyk1b 176.5kb - 3 files. can't use pastebin. clif.c is more than 512kb.
  6. Hi, I'm kinda confused why a players don't gain exp even though they kill bunch of mobs. I tried it on a novice killing a naturally spawned poring and my base exp stayed zero. Here's my exp.conf //--------------------------------------------------------------// Hercules Battle Configuration File// Originally Translated by Peter Kieser <[email protected]>// Made in to plainer English by Ancyker//--------------------------------------------------------------// 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: The max level of classes is stored in the exp table.// See files db/exp.txt and db/exp2.txt to change them.//--------------------------------------------------------------// Rate at which exp. is given. (Note 2)base_exp_rate: 30000// Rate at which job exp. is given. (Note 2)job_exp_rate: 30000// Turn this on to allow a player to level up more than once from a kill. (Note 1)multi_level_up: yes// Setting this can cap the max experience one can get per kill specified as a// % of the current exp bar. (Every 10 = 1.0%)// For example, set it to 500 and no matter how much exp the mob gives, // it can never give you above half of your current exp bar.max_exp_gain_rate: 0// Method of calculating earned experience when defeating a monster:// 0 = uses damage given / total damage as damage ratio// 1 = uses damage given / max_hp as damage ratio// NOTE: Using type 1 disables the bonus where the first attacker gets // his share of the exp doubled when multiple people attack the mob.exp_calc_type: 0// Experience increase per attacker. That is, every additional attacker to the// monster makes it give this much more experience// (eg: 5 people attack with 25 here, +(25*4)% -> +100% exp)exp_bonus_attacker: 25// Max number of attackers at which exp bonus is capped// (eg: if set at 5, the max bonus is 4*bonus-per-char regardless of attackers)exp_bonus_max_attacker: 12// MVP bonus exp rate. (Note 2)mvp_exp_rate: 30000// Rate of base/job exp given by NPCs. (Note 2)quest_exp_rate: 30000// The rate of job exp. from using Heal skill (100 is the same as the heal amount, 200 is double.// The balance of the exp. rate is best used with 5 to 10)heal_exp: 0// The rate of exp. that is gained by the process of resurrection, a unit is 0.01%.// Experience calculations for the experience value * level difference of the person revived / 100 * resurrection_exp/10000 which the revived player has can be got.resurrection_exp: 0// The rate of job exp. when using discount and overcharge on an NPC// (in 0.01% increments - 100 is 1%, 10000 is normal, 20000 is double.)// The way it is calculated is (money received * skill lv) * shop_exp / 10000.shop_exp: 0// PVP exp. Do players get exp in PvP maps// (Note: NOT exp from players, but from normal leveling)pvp_exp: no// When a player dies, how should we penalize them?// 0 = No penalty.// 1 = Lose % of current level when killed.// 2 = Lose % of total experience when killed.death_penalty_type: 1// Base exp. penalty rate (Each 100 is 1% of their exp)death_penalty_base: 100// Job exp. penalty rate (Each 100 is 1% of their exp)death_penalty_job: 100// When a player dies (to another player), how much zeny should we penalize them with?// NOTE: It is a percentage of their zeny, so 100 = 1%zeny_penalty: 0// Will display experience gained from killing a monster. (Note 1)disp_experience: no// Will display zeny earned (from mobs, trades, etc) (Note 1)disp_zeny: no// Use the contents of db/statpoint.txt when doing a stats reset and leveling up? (Note 1)// If no, an equation will be used which preserves statpoints earned/lost // through external means (ie: stat point buyers/sellers)use_statpoint_table: yes any idea what i've done wrong in the settings?
  7. wew. I just spend 2 days trying to figure what cause the error thinking the problem lies in my laptop. Turns out I'm not the only one. Will be waiting for the update while I try to fix it my self.
  8. I've already downloaded VS2012 and still get the same error. 2> hercules-mastersrcmapatcommand.c(1533): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(3833): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapatcommand.c(1534): error C2065: 'id' : undeclared identifier2> hercules-mastersrcmapclif.c(3834): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3839): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3839): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(3840): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3840): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(3862): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(3863): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3867): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3867): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(3868): error C2065: 'tsd' : undeclared identifier2> hercules-mastersrcmapclif.c(3868): error C2223: left of '->status' must point to struct/union2> hercules-mastersrcmapclif.c(5586): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(5587): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(5589): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5590): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5590): error C2065: 'lp' : undeclared identifier2> hercules-mastersrcmapclif.c(5592): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5594): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5595): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5595): error C2065: 'lp' : undeclared identifier2> hercules-mastersrcmapclif.c(5596): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5596): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12> hercules-mastersrcmapclif.c(5598): error C2065: 'buf' : undeclared identifier2> hercules-mastersrcmapclif.c(5598): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12> hercules-mastersrcmapclif.c(5822): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(5828): error C2065: 'ssd' : undeclared identifier2> hercules-mastersrcmapclif.c(5828): error C2223: left of '->group' must point to struct/union2> hercules-mastersrcmapclif.c(13152): error C2143: syntax error : missing ';' before 'type'2> hercules-mastersrcmapclif.c(13154): error C2065: 't_sd' : undeclared identifier2> hercules-mastersrcmapclif.c(13154): warning C4047: 'function' : 'map_session_data *' differs in levels of indirection from 'int'2> hercules-mastersrcmapclif.c(13154): warning C4024: 'clif_sub_guild_invite' : different types for formal and actual parameter 3
  9. Hi, I seam to be having trouble compiling herc on windows using VS2010. I cloned the latest source, didn't touch anything else, open Hercules-10.sln then build with release config but it gives the following error. 2> atcommand.c2> clif.c2>..srcmapatcommand.c(1533): error C2143: syntax error : missing ';' before 'type'2>..srcmapatcommand.c(1534): error C2065: 'id' : undeclared identifier2>..srcmapatcommand.c(1534): error C2065: 'id' : undeclared identifier2>..srcmapclif.c(3833): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(3834): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3839): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3839): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(3840): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3840): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(3862): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(3863): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3867): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3867): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(3868): error C2065: 'tsd' : undeclared identifier2>..srcmapclif.c(3868): error C2223: left of '->status' must point to struct/union2>..srcmapclif.c(5586): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(5587): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(5589): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5590): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5590): error C2065: 'lp' : undeclared identifier2>..srcmapclif.c(5592): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5594): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5595): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5595): error C2065: 'lp' : undeclared identifier2>..srcmapclif.c(5596): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5596): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12>..srcmapclif.c(5596): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5598): error C2065: 'buf' : undeclared identifier2>..srcmapclif.c(5598): warning C4022: 'function through pointer' : pointer mismatch for actual parameter 12>..srcmapclif.c(5822): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(5828): error C2065: 'ssd' : undeclared identifier2>..srcmapclif.c(5828): error C2065: 'ssd' : undeclared identifier2>..srcmapclif.c(5828): error C2223: left of '->group' must point to struct/union2>..srcmapclif.c(13152): error C2143: syntax error : missing ';' before 'type'2>..srcmapclif.c(13154): error C2065: 't_sd' : undeclared identifier2>..srcmapclif.c(13154): warning C4047: 'function' : 'map_session_data *' differs in levels of indirection from 'int'2>..srcmapclif.c(13154): warning C4024: 'clif_sub_guild_invite' : different types for formal and actual parameter 3 I used to compile herc before without any errors but that was a year ago. Is there a way to tell VS to allow declaration of variable in the middle of the statement? thank! Edit: I think I found the culprit. It was nullpo_retv() that cause the error in compiling. But this is such a pain. Anyone got a suggestion on how to fix it quick without me grinding the code for a couple of hour just to get me started.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.