Jump to content

raijin91

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by raijin91

  1. Hi sir emistry.

    i have problem with your Breaker Room version 3.

    when i rent a room and the duration expires it will warp me back to my savepoint..

    the problem is: 

    1. the memorial dungeon message is still there. see image below.

    post-5991-0-20948600-1360846570_thumb.jpg

    and also when the Timeout duration expires that message still there.

    2. Another problem is if i try to rent a room without enough zeny it got stuck.

    post-5991-0-45341300-1360846760_thumb.jpg

    it should close or mes you dont have zeny then close right?

  2. try this...

    change

    mes "Level- ^009900"+.@lvl+"^000000";
     doevent strnpcinfo(0)+"::OnRequest";
     end;
    

    into

    mes "Level- ^009900"+.@lvl+"^000000";
     doevent strnpcinfo(0)+"::OnRequest";
     close;
    

    tried but still same. also when i restart the server the registered guild dissappears. is it intended?

  3. i've tried this script and i have a problem.. im trying to warp my character to my other character whos the gm of the particular guild and the request pops up in my gm(guild master) character.

    post-5991-0-93021400-1353848890_thumb.jpg

    then after i accept the request the other character just got stock. no close or next button :((

    post-5991-0-33369300-1353848998_thumb.jpg

  4. i have a problem in pvp npc

    i have set it like this set $@bty_type,3 means im using bounty points.. the problem is when im buying in the arena shop it says i dont have enough points even though i have.. example: im buying an item with the price of 22 bounty points. and i currently have 22 points. then disbottom says you dont have enough bounty points currently 22.. also tried to buy the items worth 20 below points and got the same message lol.. btw i installed the sql things in the script. so how do i fix this?

  5. Hello can anyone please edit this script from emistry,

    i want it to have a checkweight before buying items cuz when buying items and the player is overweight the item drops.

    thanks in advance :)

    // Leave this alone...
    - shop Emistry_Shop -1,512:100
    
    
    prontera,155,181,5 script Sample 757,{
    function ShopSettings;
    function ValidateCost;
    function CurrencyInfo;
    function ClearData;
    function ValueConvert;
    function ErrorNotice;
    
    mes "Each Shop from the Menu may purchase using ^FF0000Different Currency^000000.";
    mes "^00FF00____________________________^000000";
    mes "So,Which shop you would like to look at it";
    next;
    // Menu Selection
    select("Shop 1","Shop 2","Shop 3");
    
    ClearData();
    ShopSettings( @menu );
    npcshopitem "Emistry_Shop",512,100;
    npcshopdelitem "Emistry_Shop",512;
    for(set .@i,0; .@i < getarraysize( @ItemLists ); set .@i,.@i+1)
    npcshopadditem "Emistry_Shop",@ItemLists[.@i],@ItemCost[.@i];
    mes "Okay...wait awhile";
    mes "^00FF00____________________________^000000";
    CurrencyInfo( @Currency$ );
    mes "^00FF00____________________________^000000";
    callshop "Emistry_Shop",1;
    npcshopattach "Emistry_Shop";
    end;
    
    
    function ShopSettings {
    	switch( getarg(0) ){
    		Case 1:
    		// Currency [ Item ID / Variable Name ]
    		set @Currency$,"7179";
    		// Item ID Lists
    		setarray @ItemLists[0],6153,7227;
    		// Item Price
    		setarray @ItemCost[0],100,1;
    		break;
    		Case 2:
    		// Currency [ Item ID / Variable Name ]
    		set @Currency$,"7227";
    		// Item ID Lists
    		setarray @ItemLists[0],2306,2302,2303,2304,2305,2301;
    		// Item Price
    		setarray @ItemCost[0],2,2,3,4,5,6;
    		break;
    		Case 3:
    		// Currency [ Item ID / Variable Name ]
    		set @Currency$,"#CASHPOINTS";
    		// Item ID Lists
    		setarray @ItemLists[0],2306,2302,2303,2304,2305,2301;
    		// Item Price
    		setarray @ItemCost[0],20,22,34,445,52,641;
    		break;
    		// Case 4,5,6.....etc...
    	default:
    		ErrorNotice( "Invalid Menu Selection for Menu "+@menu+"." );
    		close;
    	}
    
    
    	if( @Currency$ == "" )
    	ErrorNotice( "Invalid Currency Setting in Menu "+@menu+" ." );
    	if( getarraysize( @ItemCost ) != getarraysize( @ItemLists ) || getarraysize( @ItemLists ) != getarraysize( @ItemCost ) )
    	ErrorNotice( "Missing or Extra Value of Item or Cost Settings in Menu "+@menu+" ." );
    	return;
    }
    
    function ErrorNotice {
    	mes "^FF0000ERROR^000000 - "+getarg(0);
    	mes "^00FF00____________________________^000000";
    	mes "Inform this Message to ^0000FFGame Staffs^000000 immediately !";
    	close;
    }
    
    function CurrencyInfo {
    	if( getitemname( atoi( getarg(0) ) ) != "null" ){
    		mes "Item Currency : ^FF0000"+getitemname( atoi( getarg(0) ) )+"^000000";
    		mes "Available Amount : ^0000FF"+ValueConvert( countitem( atoi( getarg(0) ) ) )+"^000000";
    	}else if( getitemname( atoi( getarg(0) ) ) == "null" ){
    		mes "Variable Currency : ^FF0000"+getarg(0)+"^000000";
    		mes "Available Amount : ^0000FF"+ValueConvert( getd( getarg(0) ) )+"^000000";
    	}
    	return;
    }
    
    function ValidateCost {
    	if( getitemname( atoi( getarg(0) ) ) != "null" ){
    		if( countitem( atoi( getarg(0) ) ) < getarg(1) ) return 1;
    	}else{
    		if( getd( getarg(0) ) < getarg(1) ) return 1;
    	}
    	return 0;
    }
    
    function ClearData {
    	set @Currency$,"";
    	set @TotalCost,0;
    	deletearray @bought_nameid[0],getarraysize( @bought_nameid );
    	deletearray @bought_quantity[0],getarraysize( @bought_quantity );
    	deletearray @ItemLists[0],getarraysize( @ItemLists );
    	deletearray @ItemCost[0],getarraysize( @ItemCost );
    	return;
    }
    
    function ValueConvert {
    	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) / pow(10,.@i) + .@num$;
    		if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
    	}
    	return .@num$;
    }
    
    OnBuyItem:
    ShopSettings( @menu );
    for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1)
    for(set @j,0; @j < getarraysize( @ItemLists ); set @j,@j+1)
    if( @ItemLists[@j] == @bought_nameid[@i] )
    set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] );
    mes "^FF0000       BILLING LIST^000000";
    mes "^00FF00____________________________^000000";
    for( set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1 )
    mes "^FF0000"+@bought_quantity[@i]+" x ^0000FF"+getitemname( @bought_nameid[@i] )+"^000000";
    mes "^00FF00____________________________^000000";
    
    if( getitemname( atoi( @Currency$ ) ) != "null" )
    mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" x "+getitemname( atoi( @Currency$ ) )+"^000000";
    else if( getitemname( atoi( @Currency$ ) ) == "null" ){
    	mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" "+@Currency$+"^000000";
    }
    
    mes "^00FF00____________________________^000000";
    if( ValidateCost( @Currency$,@TotalCost ) ){
    	if( getitemname( atoi( @Currency$ ) ) != "null" )
    	mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( atoi( @Currency$ ) )+"^000000";
    	else{
    		mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+@Currency$+"^000000";
    	}
    }else{
    	if( select( "^0000FFPurchase^000000:Cancel" ) == 1 ){
    		if( getitemname( atoi( @Currency$ ) ) != "null" )
    		delitem atoi( @Currency$ ),@TotalCost;
    		else{
    			set getd( @Currency$ ),getd( @Currency$ ) - @TotalCost;
    		}
    		for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1)
    		getitem @bought_nameid[@i],@bought_quantity[@i];
    		message strcharinfo(0),"Purchased "+getarraysize( @bought_nameid )+" Items.";
    		mes "Thank you for shopping.";
    	}
    }
    ClearData();
    close;
    
    }

×
×
  • Create New...