Jump to content

brunosc

Members
  • Content Count

    33
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by brunosc

  1. 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?
  2. is it possible to do for all ADM no use gems when use skills? if yes how i can do it??
  3. 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.
  4. You are the best! thank you!!!!!!!!!!!!!!!!!!
  5. 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)
  6. the code is : function int__ { set .@num, atoi(""+getarg(0)); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(""+.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / (10**.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } 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 ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); 60: set .@l, getstrlen(""+.@num); 61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { * 62: set .@num$, .@num % pow(10,.@i+1) / (10**.@i) + .@num$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; 64: } 65: return .@num$; and in game script ok. when o remove POW and change to the new mode ( set .@num$, .@num % ((10**.@i)+1) / (10**.@i) + .@num$;) i got this in NPC.
  7. 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 ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); 60: set .@l, getstrlen(""+.@num); 61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { * 62: set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; 64: } 65: return .@num$; [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 ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); 60: set .@l, getstrlen(""+.@num); 61: for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { * 62: set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 63: if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; 64: } 65: return .@num$; pow in the future not will be use, but if i change pow(10,.@i+1) / pow(10,.@i) -> (10**.@i+1) / (10**.@i) 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.