Jump to content

KazumaSatou

Members
  • Posts

    30
  • Joined

  • Last visited

Posts posted by KazumaSatou

  1. Hi, I'm trying to make a new 2021 Client but once I logged-in it throws a gravity error.
    I'm using the latest ||chris||'s translation for the grf.
    There is no lub files error showing or missing resource files.
    Already Ignored palettes error but still the same, it throws error when logging-in.
    Anyone can help me out?

  2. 6 hours ago, G-RO said:

    Hello Everyone,

    Good day!

    I just want to ask if there's an existing addons or code that will let the player attached file in Service Desk?

     

    1210057411_aAttachedfile.thumb.PNG.3a3fed669905213b72ba27f044161eeb.PNG

    thanks

     

    I think FluxCP didn't allow players to attach files for security purposes. That's why they use the "Screenshot Proof" textbox link. But you can add it yourself just check for some answers at stackoverflow.

  3. 3 hours ago, ownzqs said:

    Eu criei 1 item chamado Bonus Eletronico , mais quando eu clico nele ele não me da valor nenhum em cash  , Alguém  pode me ajuda pfvr ??

    Adicione este script em seu item personalizado no db:

    Script: |
    set #CASHPOINTS,#CASHPOINTS +  100;
    dispbottom "[Sistema] : Você tem 100 Cash Points.";

     

  4. 1 hour ago, kalabasa said:
    -    script    guild_announce    -1,{
    OnWhisperGlobal:
        [email protected]_id = getcharid(2);
        if ( getguildmasterid( [email protected]_id ) != getcharid(0) ) end;
        if ( @accountid_member == 0 )
            @total_guild_member = query_sql( "select `account_id`, `char_id` from `guild_member` where `guild_id` = "+ [email protected]_id, @accountid_member, @charid_member );
        [email protected]$ = @whispervar0$;
        [email protected]$ = strcharinfo(0);
    	[email protected] = getcharid(3);
        while( [email protected] < @total_guild_member ) {
            if ( isloggedin( @accountid_member[[email protected]], @charid_member[[email protected]] ) ) {
                attachrid @accountid_member[[email protected]];
                announce "[ "+ [email protected]$ +" ]: "+ [email protected]$, bc_self;
    			attachrid [email protected];
            }
            [email protected]++;
        }
    }

     

     

     

    Capture.PNG

    There is no account_id field on guild_member table. Only char_id is available on guild_mamber table. Or you might  wanna add it.

  5. 7 minutes ago, dolphincute said:

    it works now, thanks but i have to manually keep clicking to the crystal to mine, can u make it auto?

    also instead of plain text to show how many have been farm, i think a chat box would be great or better?

    sorry if its too much  

    -	script	sample_main	-1,{
    	OnPCDieEvent:
    		if (getmapflag(strnpcinfo(3), mf_pvp)) {
    			getmapxy(@map$, @x, @y, BL_PC);
    			callsub(L_DropItem, 969);
    			callsub(L_DropItem, 724);
    			callsub(L_DropItem, 7049);
    		}
    		end;
    		
    	L_DropItem:
    		.@item_id = getarg(0, 0);
    		if (.@item_id) {
    			.@countitem = countitem(.@item_id);
    			delitem .@item_id, .@countitem;
    			makeitem .@item_id, .@countitem, @map$, @x, @y;
    		}
    		return;
    }
    prontera,159,159,4	script	Normal Crystal	1288,{
    	if (countitem(6010)) {
    		.@rate = rand(100);
    		if (.@rate < 1) {
    			.@item_id = 969;
    		}
    		else if (.@rate < 25) {
    			.@item_id = 724;
    		}
    		else if (.@rate < 90) {
    			.@item_id = 7049;
    		}
    		else {
    			// nothing
    		}
    		if (.@item_id) {
    			while(1){
    				if(.mine == .minemax){
    					movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
    					end;
    				}
    				progressbar "GREEN",5;
    				getitem .@item_id, 1;
    				.mine++;
    			}
    		}
    	}
    	end;
    	OnInit:
    		.minemax = 2;
    		while(1){
    			delwaitingroom;
    			waitingroom "Mined ["+.mine+"/"+.minemax+"]",1;
    			sleep 1000;
    		}
    }
    prontera,165,159,4	script	Normal Crystal#1	1288,{
    	if (countitem(6010)) {
    		.@rate = rand(100);
    		if (.@rate < 1) {
    			.@item_id = 969;
    		}
    		else if (.@rate < 25) {
    			.@item_id = 724;
    		}
    		else if (.@rate < 90) {
    			.@item_id = 7049;
    		}
    		else {
    			// nothing
    		}
    		if (.@item_id) {
    			while(1){
    				if(.mine == .minemax){
    					movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
    					end;
    				}
    				progressbar "GREEN",5;
    				getitem .@item_id, 1;
    				.mine++;
    			}
    		}
    	}
    	end;
    	OnInit:
    		.minemax = 2;
    		while(1){
    			delwaitingroom;
    			waitingroom "Mined ["+.mine+"/"+.minemax+"]",1;
    			sleep 1000;
    		}
    }
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#2	1288
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#3	1288

     

    • Upvote 1
  6. On 2/9/2022 at 3:58 PM, dolphincute said:

    just to be clear i did not wrote these script @Emistry did back few years, i need some improvement for this script below are the details.

    1. Player can mine from the same spot/npc for maximum of 100 times

    2. Each time have 5sec waiting time gap and player will get random item drop from this spot for each 5sec wait u can just follow as the script there for random drop chance

    3. Player can cancel mining anytime they please, and the mined count will stay the same ( example if player have mine for 20 times, it will be 20/100 )

    4. Next player who mined at the used mine will continue the count ( 20/100 ) once it reach the max 100/100 the npc/spot will be removed, and new spot will be spawn after 3mins on random location ( walkable area )

    5. If possible add mining progress bar animation or just plain text

    6. Its a PvP map, so when the miner dead by pvp the count stay as describe in part 4.

    Thank you soo much, for you effort and time
    script:

      Reveal hidden contents

     

    -	script	sample_main	-1,{
    	OnPCDieEvent:
    		if (getmapflag(strnpcinfo(3), mf_pvp)) {
    			getmapxy(@map$, @x, @y, BL_PC);
    			callsub(L_DropItem, 969);
    			callsub(L_DropItem, 724);
    			callsub(L_DropItem, 7049);
    		}
    		end;
    		
    	L_DropItem:
    		.@item_id = getarg(0, 0);
    		if (.@item_id) {
    			.@countitem = countitem(.@item_id);
    			delitem .@item_id, .@countitem;
    			makeitem .@item_id, .@countitem, @map$, @x, @y;
    		}
    		return;
    }
    ein_dun03,170,227,4	script	Normal Crystal	1288,{
    	if (countitem(6010)) {
    		.@rate = rand(100);
    		if (.@rate < 1) {
    			.@item_id = 969;
    		}
    		else if (.@rate < 25) {
    			.@item_id = 724;
    		}
    		else if (.@rate < 90) {
    			.@item_id = 7049;
    		}
    		else {
    			// nothing
    		}
    		if (.@item_id) {
    			getitem .@item_id, 1;
    			movenpc strnpcinfo(3), rand(300), rand(300), rand(8); 
    		}
    	}
    	end;
    }
    ein_dun03,207,267,4	duplicate(Normal Crystal)	Normal Crystal#1	1288
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#2	1288
    //prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#3	1288

     

     

    Spoiler

    -    script    sample_main    -1,{
        OnPCDieEvent:
            if (getmapflag(strnpcinfo(3), mf_pvp)) {
                getmapxy(@map$, @x, @y, BL_PC);
                callsub(L_DropItem, 969);
                callsub(L_DropItem, 724);
                callsub(L_DropItem, 7049);
            }
            end;
            
        L_DropItem:
            [email protected]_id = getarg(0, 0);
            if ([email protected]_id) {
                [email protected] = countitem([email protected]_id);
                delitem [email protected]_id, [email protected];
                makeitem [email protected]_id, [email protected], @map$, @x, @y;
            }
            return;
    }
    ein_dun03,170,227,4    script    Normal Crystal    1288,{
        if (countitem(6010)) {
            [email protected] = rand(100);
            if ([email protected] < 1) {
                [email protected]_id = 969;
            }
            else if ([email protected] < 25) {
                [email protected]_id = 724;
            }
            else if ([email protected] < 90) {
                [email protected]_id = 7049;
            }
            else {
                // nothing
            }
            if ([email protected]_id) {
                showscript "Mined ["+.mine+"/"+.minemax+"]",self;
                progressbar "GREEN",5;
                getitem [email protected]_id, 1;
                .mine++;
                if(.mine == .minemax)
                    movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
                    
            }
        }
        end;
        OnInit:
            .minemax = 100;
            while(1){
                sleep 1000;
                showscript "Mined ["+.mine+"/"+.minemax+"]";
            }
    }
    ein_dun03,207,267,4    script    Normal Crystal#1    1288,{
        if (countitem(6010)) {
            [email protected] = rand(100);
            if ([email protected] < 1) {
                [email protected]_id = 969;
            }
            else if ([email protected] < 25) {
                [email protected]_id = 724;
            }
            else if ([email protected] < 90) {
                [email protected]_id = 7049;
            }
            else {
                // nothing
            }
            if ([email protected]_id) {
                showscript "Mined ["+.mine+"/"+.minemax+"]",self;
                progressbar "GREEN",5;
                getitem [email protected]_id, 1;
                .mine++;
                if(.mine == .minemax)
                    movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
                    
            }
        }
        end;
        OnInit:
            .minemax = 100;
            while(1){
                sleep 1000;
                showscript "Mined ["+.mine+"/"+.minemax+"]";
            }
    }
    //prontera,1,1,4    duplicate(Normal Crystal)    Normal Crystal#2    1288
    //prontera,1,1,4    duplicate(Normal Crystal)    Normal Crystal#3    1288

    Just copy and paste the whole crystal for duplicates to prevent shared mine count.
    Once you reload script, the mine counts will reset.
    I also added *showscript to show the current count of mines. Refreshes every second.
    Once the total mine reached maximum mine, the crystal will automatically teleports.
    Hopefully helped you.

  7. Can anyone help me on how to prevent usage of Fly Wing, Butterfly Wing and Teleport Skill when attacked by "Player" on a field/dungeon that is PVP On?
    But if the player didn't attack/attacked by any player, he/she can use those items/skill and like a normal map.

    But if the player attack other player or being attacked by other player, he/she can't use it.

    I tried to add this on skill.cpp but it doesn't work.

    	case AL_TELEPORT:
    	case ALL_ODINS_RECALL:
    		if(sd)
    		{
    			+ if (!battle_config.prevent_logout || sd->canlog_tick == 0 || DIFF_TICK(gettick(), sd->canlog_tick) > battle_config.prevent_logout) {
    			+ 	char output[128];
    			+ 	sprintf(output, "Please wait %d seconds before warping.", battle_config.prevent_logout/1000);
    			+ 	clif_displaymessage(sd->fd, output);
    			+ 	break;
    			+ }

    This code is from @Mabuhay's @go/@warp prevents when attacked/attack.

  8. 54 minutes ago, Gladius said:

     

    I found the solution 🙂

    change in battle.cpp

    	sc = status_get_sc(bl);
    	ssc = status_get_sc(src);
    
    	if (sc && sc->data[SC_WHITEIMPRISON])
    		return 0; // White Imprison does not reflect any damage


    to:

        sc = status_get_sc(bl);
        ssc = status_get_sc(src);
    
        if (sc && sc->data[SC_SAFETYWALL])
            return 0;
        if (sc && sc->data[SC_WHITEIMPRISON])
            return 0; // White Imprison does not reflect any damage

     


    Unfortunately the members and moderators of this forum do not appreciate the small members who collaborate.
    Test and tell me if it worked. It worked for me.

    It works! Thank you very much for responding on my problem for potential bug abuse.
    Hopefully they appreciate all the people who wants to collaborate even if its small/alone as long as it is important on the emulator.

    I'll vote your post so if there's anyone who needs this fix on their server can use it.
    Thank you again and stay safe!

  9. Can anyone help me how to prevent reflecting damage while a paladin is in safety wall?
    I read some of the threads in both rA and herc that it is the default behavior of Safety Wall and Reflect Shield but it is a Potential Bug-Abuse for normal players and I don't see anyone solved this on the threads I read.

    Hopefully someone will help me with this scenario on Safety Wall with Reflect Shield.

    Thank you so much.

    • Upvote 1
  10. 5 minutes ago, Kreustoo said:

    Comment the before this part of the script the :

    	base_exp/=c;
    	job_exp/=c;

    It'll make everyone get all the exp.

    So each time a monster is killed it'll give much more exp: *number of the players in the party. + stricly +1% per player on the party with your edit

    So if I comment out that 2, they will get full exp + number of party members %?

×
×
  • Create New...

Important Information

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