Jump to content

Yoona

Members
  • Posts

    567
  • Joined

  • Last visited

Posts posted by Yoona

  1. Here Credits goes to Emistry :) 

    prontera,155,181,5	script	Sample	757,{
    setarray .@ItemID[0],<ItemID>,<ItemID2>;
    
    for( set .@i,0; .@i < getarraysize( .@ItemID ); set .@i,.@i + 1 )
    	set .@Menu$,.@Menu$ + getitemname( .@ItemID[.@i] )+":";
    mes "Each 2 Cash Points.";
    set .@i,( select( .@Menu$ ) - 1 );
    if( #CASHPOINTS < 2 ){
    	mes "Sorry but you didnt have 2 Cash Points.";
    }else{
    	mes "How many you want ?";
    	mes "Amount : 1 ~ "+( #CASHPOINTS / 2 );
    	input .@Amount,0,( #CASHPOINTS / 2 );
    	if( .@Amount ){
    		set #CASHPOINTS,#CASHPOINTS - ( .@Amount * 2 );
    		getitem .@ItemID[.@i],.@Amount;
    		mes "Done";
    	}
    }
    close;
    }
    
    • Upvote 1
  2. I've setup it up correctly.. and a this problem shows.

    Warning: mysql_connect() [function.mysql-connect]: Host '123.45.678.10' is not allowed to connect to this MySQL server in /home/myro/public_html/connect.php on line 27
    

    and this :

    Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/myro/public_html/connect.php on line 33
    Unable to connect to database!
    

    can anyone tell me should i need to do. to fix this problem.

  3. How come that only 1 castle that has an active Barricade? only schg_cas01. how do you change that into all castle barricade will be active?

     

     

    and everytime the Emperium will be destroyed Barricade will auto re spawned . is it possible?

  4.  

    
    
    -    script    KillCashPoint    -1,{
    OnPCKillEvent:
    if (killedrid==getcharid(0)) end;    //No Points, killed himself
    if (lastkilled==killedrid){
        set lkcount,lkcount+1;
        if (lkcount>=5){
            set #CASHPOINTS,#CASHPOINTS-3;
            dispbottom "You have Lose 3 points of Honour. Your Total Points are "+#CASHPOINTS;
            atcommand "@nuke "+strcharinfo(0);
            end;
        }
        else{
            set #CASHPOINTS,#CASHPOINTS+1;
            dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
            end;
        }
    }
    else{
        set lastkilled,killedrid;
        set lkcount,1;
        set #CASHPOINTS,#CASHPOINTS+1;
        dispbottom "You have gained 1 Point of Honour. Your Total Points are "+#CASHPOINTS;
        end;
    }
    }
     

    Haven't Tested.

    sir.. how to change the reward of this script into item? like Treasure Box ID 7721

     

     

    Change

    set #CASHPOINTS,#CASHPOINTS+1;
    
    into:
    
    getitem 7721, 10; 
    
  5. @Annieruru sorry i didn't noticed that i posted it on request section. my bad. but thanks for the reply. by the way Annie how can add Announce each whoever enter the pub and how many players need to play the game. so other players will be informed. :)

×
×
  • Create New...