-
Content Count
355 -
Joined
-
Last visited
-
Days Won
13
Reputation Activity
-
pan reacted to kisuka in some official iro scripts
ummm... these are just javascript files for iRO-Wiki's calculator... they aren't really "Official iRO Scripts" as iRO-Wiki is a fan made and ran website. Not to mention formulas differ on iRO in some aspects.
-
pan reacted to malufett in Thanatos Effect in Renewal
in 'src/map/battle.c' under 'battle_calc_defense' function we are already using the exact formula so the the higher the target's def the higher additional damage thanatos card will grant(1 atk per 2 def)..
if( flag&2 ) // Thanatos Card Effect and a like damage += def1 >> 1;if( !(flag&1) && !(flag&2) ) { // Both Thanatos and Enca Card ignore this damage reduction if( flag&4 ) damage -= (def1 + vit_def); else damage = (int)((100.0f - def1 / (def1 + 400.0f) * 90.0f) / 100.0f * damage - vit_def);}
-
pan got a reaction from Axl in Remove Effect on Kaite and Kaupe Skills
Open srcmapbattle.c and search for:
clif->specialeffect(bl, 462, AREA);change it to://clif->specialeffect(bl, 462, AREA);Now open srcmapstatus.c, search for:set_sc( SL_KAUPE , SC_KAUPE , SI_KAUPE , SCB_NONE );set_sc( SL_KAITE , SC_KAITE , SI_KAITE , SCB_NONE );replace it with:set_sc( SL_KAUPE , SC_KAUPE , SI_BLANK , SCB_NONE );set_sc( SL_KAITE , SC_KAITE , SI_BLANK , SCB_NONE );Open srcmapskill.c and find:clif->specialeffect(bl, 438, AREA)change it to: //clif->specialeffect(bl, 438, AREA);I think this way there won't be any effects regarding those stati, but I'm not sure.. -
pan got a reaction from JulioCF in Remove Effect on Kaite and Kaupe Skills
Open srcmapbattle.c and search for:
clif->specialeffect(bl, 462, AREA);change it to://clif->specialeffect(bl, 462, AREA);Now open srcmapstatus.c, search for:set_sc( SL_KAUPE , SC_KAUPE , SI_KAUPE , SCB_NONE );set_sc( SL_KAITE , SC_KAITE , SI_KAITE , SCB_NONE );replace it with:set_sc( SL_KAUPE , SC_KAUPE , SI_BLANK , SCB_NONE );set_sc( SL_KAITE , SC_KAITE , SI_BLANK , SCB_NONE );Open srcmapskill.c and find:clif->specialeffect(bl, 438, AREA)change it to: //clif->specialeffect(bl, 438, AREA);I think this way there won't be any effects regarding those stati, but I'm not sure.. -
pan got a reaction from kerbiii in getuser not working on pub
Remove the file extension and I think it'll work c
waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; -
pan reacted to Haru in Timer sys_tick
There were reasons why signed was chosen instead of unsigned. Most operations we do with tick are tick differences, and that kind of operation with unsigned variables requires extra care that's not required with signed ones. There really isn't any benefit in using unsigned in most cases (especially if it's just to say that the variable should never be negative), and I strongly believe the only place where one should use unsigned is where the value isn't used as a plain number, but a bit field or similar. If the point about using unsigned is to allow larger values, well, the int64 overflow will happen about 292 million years from now. I believe that, whichever intelligent life forms will be alive by then, if any, will be able to use a different 'zero', or a larger variable.
This article on the topic is an interesting read: http://www.soundsoftware.ac.uk/c-pitfall-unsigned
-
pan got a reaction from Triedge in Devotion Reflect Damage
I don't think that rA's source code is that different than Hercules', just some functions have changed in those files as far as I'm aware of. Instead of using a diff patcher you could do those changes manually.
Regards.
-
pan got a reaction from jaBote in "Floating" party-share-range
I haven't tested this changes in-game but the build was successful without any warnings. And party_share_level was disabled, it would mess with the new configuration.
Open char/inter.h and search for:
extern unsigned int party_share_level; replace it with:
/*extern unsigned int party_share_level;*/extern unsigned int party_share_range; Open char/int_party.c and search for: return (p->party.count < 2 replace the whole line with: return (p->party.count < 2 ||/* p->max_lv - p->min_lv <= party_share_level ||*/ p->max_lv - p->min_lv <= (p->max_lv*(party_share_range/100)) ); Open char/inter.c, search for: unsigned int party_share_level = 10; replace with: //unsigned int party_share_level = 10;unsigned int party_share_range = 20; // 20% as default value search: else if(!strcmpi(w1,"party_share_level")) party_share_level = atoi(w2); replace with: /*else if(!strcmpi(w1,"party_share_level")) party_share_level = atoi(w2);*/ else if(!strcmpi(w1,"party_share_range")) party_share_range = atoi(w2); Build your char-server, then open conf/inter-server.conf, search for: // Level range for sharing within a partyparty_share_level: 15 Replace it with: // Level range for sharing within a party//party_share_level: 15// Floating share rate (0-100) in percentage// default: 20party_share_range: 20 Run your server and check if the changes worked c: