Jump to content

brunosc

Members
  • Content Count

    11
  • Joined

  • Last visited

About brunosc

  • Rank
    Member

Recent Profile Visitors

559 profile views
  1. a long time ago, we had this functionality. // Adjustment for the natural rate of resistance from status changes. // If 50, status defense is halved, and you need twice as much stats to block // them (eg: 200 vit to completely block stun) pc_status_def_rate: 100 mob_status_def_rate: 100 // Required luk to gain inmunity to status changes. // Luk increases resistance by closing the gap between natural resist and max // linearly. This setting indicates required luk to gain complete immunity. // Eg: 40 vit -> 40% resist. 150 luk -> +50% of the missing gap. // So 40% + (50% of 60%) = 70% pc_luk_status_def: 300 mob_luk_status_def: 300 is it possible to add this in new herc? if yes, how? pls someone can help, this newb friend?
  2. thanks !!! it working!
  3. Checked. if i use this: diff --git a/src/map/pc.c b/src/map/pc.c index 179a4b78a..c77bfbc22 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1359,6 +1359,10 @@ static bool pc_authok(struct map_session_data *sd, int login_id2, time_t expirat sd->sc_display = NULL; sd->sc_display_count = 0; + /// Characters with group level => 99 don't use gemstones. + if (sd->group->level >= 99) + sd->special_state.no_gemstone = 1; + // Request all registries (auth is considered completed whence they arrive) intif->request_registry(sd,7); return true; when i use skill gravitation or other, skill fail because i dont have gem. about if (pc_has_permission(sd, PC_PERM_SKILL_UNCONDITIONAL)) return 0; // can do any damn thing they want how i can do it? add the group level?
  4. is it possible to do for all ADM no use gems when use skills? if yes how i can do it??
  5. brunosc

    @restock

    hi, i have one diff to use @restock but when i compile i got some errors diff: void pc_restock_getstorage(struct map_session_data *sd, int itemid, int amount) { int i; for( i = 0; i < MAX_STORAGE; i++ ) { if (sd->status.storage.items[i].nameid == itemid) { if(sd->status.storage.items[i].amount < amount ) amount = sd->status.storage.items[i].amount; storage->get(sd, i, amount); } } } the error when compile: CC pc.c pc.c: In function 'pc_restock_getstorage': pc.c:12473: error: 'struct mmo_charstatus' has no member named 'storage' pc.c:12475: error: 'struct mmo_charstatus' has no member named 'storage' pc.c:12476: error: 'struct mmo_charstatus' has no member named 'storage' make[1]: *** [obj_sql/pc.o] Error 1 pls help me.
  6. You are the best! thank you!!!!!!!!!!!!!!!!!!
  7. its work man, thank you! but now i received warning. [Warning]: script:op_2num: overflow detected op=C_POW i1=10 i2=10 [Debug]: Source (NPC): Mestre dos Ba�s at prontera (164,143)
  8. the code is : function int__ { set [email protected], atoi(""+getarg(0)); if ( [email protected] == 0 || [email protected] >= 2147483647 ) return getarg(0); set [email protected], getstrlen(""[email protected]); for ( set [email protected],0; [email protected] < [email protected]; set [email protected], [email protected] + 1 ) { set [email protected]$, [email protected] % pow(10,[email protected]+1) / (10**[email protected]) + [email protected]$; if ( ([email protected]+1) % 3 == 0 && [email protected]+1 != [email protected] ) set [email protected]$, ","+ [email protected]$; } return [email protected]$; } i got this warning: [Warning]: script error in file 'npc/custom/meus/tzeny.txt' line 62 column 23 This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative. 59: if ( [email protected] == 0 || [email protected] >= 2147483647 ) return getarg(0); 60: set [email protected], getstrlen(""[email protected]); 61: for ( set [email protected],0; [email protected] < [email protected]; set [email protected], [email protected] + 1 ) { * 62: set [email protected]$, [email protected] % pow(10,[email protected]+1) / (10**[email protected]) + [email protected]$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( ([email protected]+1) % 3 == 0 && [email protected]+1 != [email protected] ) set [email protected]$, ","+ [email protected]$; 64: } 65: return [email protected]$; and in game script ok. when o remove POW and change to the new mode ( set [email protected]$, [email protected] % ((10**[email protected])+1) / (10**[email protected]) + [email protected]$;) i got this in NPC.
  9. i got this error when i use @reloadscript This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative. 59: if ( [email protected] == 0 || [email protected] >= 2147483647 ) return getarg(0); 60: set [email protected], getstrlen(""[email protected]); 61: for ( set [email protected],0; [email protected] < [email protected]; set [email protected], [email protected] + 1 ) { * 62: set [email protected]$, [email protected] % pow(10,[email protected]+1) / pow(10,[email protected]) + [email protected]$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( ([email protected]+1) % 3 == 0 && [email protected]+1 != [email protected] ) set [email protected]$, ","+ [email protected]$; 64: } 65: return [email protected]$; [Warning]: script error in file 'npc/custom/meus/tzeny.txt' line 62 column 39 This command is deprecated and it will be removed in a future update. Please see the script documentation for an alternative. 59: if ( [email protected] == 0 || [email protected] >= 2147483647 ) return getarg(0); 60: set [email protected], getstrlen(""[email protected]); 61: for ( set [email protected],0; [email protected] < [email protected]; set [email protected], [email protected] + 1 ) { * 62: set [email protected]$, [email protected] % pow(10,[email protected]+1) / pow(10,[email protected]) + [email protected]$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( ([email protected]+1) % 3 == 0 && [email protected]+1 != [email protected] ) set [email protected]$, ","+ [email protected]$; 64: } 65: return [email protected]$; pow in the future not will be use, but if i change pow(10,[email protected]+1) / pow(10,[email protected]) -> (10**[email protected]+1) / (10**[email protected]) i dont got error but not show correct zeny in script.
×
×
  • Create New...

Important Information

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