Jump to content

RedRumPie

Members
  • Posts

    76
  • Joined

  • Last visited

Posts posted by RedRumPie

  1. Hi , Iv'e been trying to install v4p on my flux cp . I installed it correctly as far as I know .. It works on my localhost 127.0.0.1/cp but when I transfer it to my webhost everything works fine not until I click the Vote For Points .. It shows something like this : 

     

     PHP Warning:  require_once(/home/fluxd3mo/public_html/Flux1/addons/vote_for_credits/lib/cashpoints.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: Permission denied in /home/fairytai/public_html/addons/vote_for_credits/modules/vote/index.php on line 7
    
    


     

  2. Thank for replying . I scratched that idea and thinked of this .I choosed 2 maps and put the red and blue npc's on each map . what I want is when you click on a warper npc it will warp you to one of those 2 maps that I chose ( job_knt 146 151 - job_wiz 53 165) . If ever one map has 4 players already it will automatically warp you to the other map. but if theres till room in the designated map it will chose either job_knt or job_wiz ( random )  .. I hope you get the idea.


    Its like Warper > Random ( job_knt or job Wiz ) > If job_knt is full goto job_wiz and if job_wiz is full goto job_knt and if both is full cancel warp .
    only 4 players can enter each map.

  3. hello , can anyone help me putting a @joinbg command in this script ? 
     ( Credits to Ms Annie )

    prontera,153,184,5	script	bg_pvp_register	100,{
    	if ( getgmlevel() < 60 ) end;
    	else if ( !.start ) {
    		mes "start ?";
    		next;
    		select "yeah";
    		mes "select how many players in a team";
    		mes "if 3vs3, set to 3";
    		mes "range : 1~9";
    		next;
    		if ( input( .min2start, 1, 9 ) ) {
    			mes "invalid range";
    			close;
    		}
    		.start = 1;
    		announce strcharinfo(0) +" has hosted a "+ .min2start +"vs"+ .min2start +" battleground", 0;
    		waitingroom "BG PVP", .min2start *2 +1, strnpcinfo(0)+"::OnStart", .min2start *2;
    	}
    	else if ( .start == 1 ) {
    		mes "abort registration?";
    		next;
    		select "yeah";
    		.start = 0;
    		delwaitingroom strnpcinfo(0);
    	}
    	else {
    		mes "a match is currently running now";
    		mes "abort ?";
    		next;
    		select "yeah";
    		.start = 0;
    		awake strnpcinfo(0);
    	}
    	close;
    OnStart:
    	getmapxy .@map$, .@x, .@y, 1;
    	warpwaitingpc .@map$, .@x, .@y;
    	announce "event started", 0;
    	.start = 2;
    	.red = createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onredout" );
    	.blue = createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onblueout" );
    	callfunc "rand__", .min2start *2, $@rand;
    	for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ )
    		setbgid ( .@i %2 )? .red : .blue, $@warpwaitingpc[ $@rand[.@i] ];
    	delwaitingroom strnpcinfo(0);
    	bg_warp .red, "guild_vs3", 13,50;
    	bg_warp .blue, "guild_vs3", 86,50;
    	bg_updatescore "guild_vs3", 0,0;
    	sleep .eventlasting * 1000;
    	if ( .start == 2 ) {
    		if ( .score[1] == .score[2] )
    			mapannounce "guild_vs3", "Draw !", 0;
    		else if ( .score[1] > .score[2] ) {
    			mapannounce "guild_vs3", " Red side wins !", 0;
    			callsub L_reward, .red;
    		}
    		else if ( .score[1] < .score[2] ) {
    			mapannounce "guild_vs3", " Blue side wins !", 0;
    			callsub L_reward, .blue;
    		}
    	}
    	bg_warp .red, "prontera", 155,182;
    	bg_warp .blue, "prontera", 158,182;
    	bg_destroy .red;
    	bg_destroy .blue;
    	.start = .score[1] = .score[2] = 0;
    	end;
    L_reward:
    	getbgusers getarg(0);
    	for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )
    		getitem 501, 1, $@arenamembers[.@i]; // item reward
    	return;
    Onredout: callsub L_out, 2;
    Onblueout: callsub L_out, 1;
    L_out:
    	announce strcharinfo(0) +" is out from the match !", 1;
    	bg_leave;
    	warp "SavePoint", 0,0;
    	.score[ getarg(0) ]++;
    	bg_updatescore "guild_vs3", .score[1], .score[2];
    	if ( .score[ getarg(0) ] == .min2start )
    		awake strnpcinfo(0);
    	end;
    OnInit:
    	.eventlasting = 30 * 60; // how long would the event last or it auto-reset. 30 *60 = 30 mins
    	end;
    }
    
    guild_vs3	mapflag	battleground	2
    guild_vs3	mapflag	nosave	SavePoint
    guild_vs3	mapflag	nowarp
    guild_vs3	mapflag	nowarpto
    guild_vs3	mapflag	noteleport
    guild_vs3	mapflag	nomemo
    guild_vs3	mapflag	nopenalty
    guild_vs3	mapflag	nobranch
    guild_vs3	mapflag	noicewall
    

    when ever someone uses @joinbg it automatically joins the waiting room , when the room is full or you're in the room already @joinbg will display something like you're already in the room or sorry the room is full. and when you're in a battleground map you cant use @joinbg . I was trying to use this code as reference .

    Credits to Sandbox.

    
    	OnInit:
    
    		bindatcmd "tool",strnpcinfo(3)+"::OnAtcommand",0,40;
    
    		//Disabled on WoE maps? 1 = Yes, 0 = No
    		set .WoeCheck,1;
    		
    		//Disabled on PvP maps? 1 = Yes, 0 = No
    		set .PvpCheck,1;
    		
    		end;
    	
    	OnAtcommand:
    
    		if(.WoeCheck == 1 && getmapflag(strcharinfo(3),mf_gvg)) {
    			message strcharinfo(0),"You cannot use this command on GvG maps.";
    			end;
    		}
    		else if (.PvpCheck == 1 && getmapflag(strcharinfo(3),mf_pvp)){
    			message strcharinfo(0),"You cannot use this command on PvP maps.";
    			end;		
    		}
    
    		callshop "Aqua Tools",0;
    		end;
    
    

    T.I.A guys .

  4. Hello , since I have a crappy internet and I want to download / pull / clone an old version of rAthena using my vps / putty ( SVN VERSION 17310 ) how can I do this ? Can someone please help me ..


    SOLVED

×
×
  • Create New...