Jump to content

crazyarashi

Developer
  • Posts

    763
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by crazyarashi

  1. -	script	costume_drop	-1,{
    OnNPCKillEvent:
    	.@index = inarray(.mob_id[0],killedrid);
    	if(.@index < 0) end;
    	if(rand(1,10000) <= .chance){
    		explode(.@ID$,.drop_data$[.@index],":");
    		announce "Congratulations to the player "+ strcharinfo(0) +" who, after killing a "+ getmonsterinfo( killedrid, MOB_NAME ) +" in "+ strcharinfo(3) +", got a rare costume!",0,0x00FF00;
    		getitem atoi(.@ID$[1]),1;
    		deletearray .@ID$[0],getarraysize(.@ID$);
    	}
    	end;
    		
    OnInit:
    	.chance = 3; 
    	setarray .drop_data$,
    	"1001:501","1002:502","1003:503","1005:504"; //= "Mob ID:Costume ID"
    	for(.@i = 0; .@i < getarraysize(.drop_data$); .@i++){
    		explode(.@mob_id$,.drop_data$[.@i],":");
    		.mob_id[.@i] = atoi(.@mob_id$[0]);
    		deletearray .@mob_id$[0],getarraysize(.@mob_id$);
    	}
    	end;
    }

    I haven't tested this yet, but it should work fine :))

    • MVP 1
  2.     getitembound2 1102,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1151,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1208,1,1,10,0,0,0,0,0,Bound_Account; 
        getitembound2 1251,1,1,10,0,0,0,0,0,Bound_Account; 
        getitembound2 1302,1,1,10,0,0,0,0,0,Bound_Account; 
        getitembound2 1352,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1405,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1452,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1502,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1550,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1602,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1702,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1802,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1951,1,1,10,0,0,0,0,0,Bound_Account;
        getitembound2 1929,1,1,10,0,0,0,0,0,Bound_Account;

     

  3. prontera,255,55,5    script    450KHP    123,{
        bonus_script "{ bonus bMaxHP,450000; }",60,512;
    	dispbottom "Max HP increased by 450,000";
    	end;
    
    OnPCLoadMapEvent:
    	bonus_script_clear 1;
    	end;
    
    OnInit:
    	setarray .maps$,"prontera","izlude","samplemap"; //= Maps for removing bonus HP
    	for(.@i = 0; .@i < getarraysize(.maps$); .@i++){
    		setmapflag .maps$[.@i],MF_LOADEVENT;
        	}
    	end;                                         
    }

     

  4. 1. Git Clone FluxCP into your web server.

    2. Set up the IP/SQL Data in config/servers.php - Note : Make sure you're using a SQL account that have access into your RO Database.  Guide : Grant Privileges
     

    'Hostname'   => '127.0.0.1', Local IP? No need to change else change it to the IP you're using
    'Username'   => 'username',
    'Password'   => 'extremelyhardpassword',
    'Database'   => 'maindatabase',

    3. Set up the config/application.php

    'ServerAddress'				=> 'localhost', Same as above
    'BaseURI'					=> 'fluxcp', The base url
    'InstallerPassword'			=> 'unhackablepassword', Password you're gonna use in installation


    4. Open up your website in a browser, input your SQL account with privileges on the database, and install.

  5. You shouldn't comment out the instances, it will cause a crash in your server if a player run an instance. If you want to remove the time limit you need to remove it in the instance_db time limit part,  as for the cooldown/requirements you need to manually remove it in their respective areas. quest_db and the quests scripts.

  6. In your storage.cpp. Comment out the lines that checks the permission of the sd if they can trade. Though it's not suggestible this may solve your problem.

    int storage_storageopen(struct map_session_data *sd)
    {
    	nullpo_ret(sd);
    
    	if(sd->state.storage_flag)
    		return 1; //Already open?
    	/*
    	if( !pc_can_give_items(sd) ) { // check is this GM level is allowed to put items to storage
    		clif_displaymessage(sd->fd, msg_txt(sd,246));
    		return 1;
    	}
    	*/
    
    	sd->state.storage_flag = 1;
    	storage_sortitem(sd->storage.u.items_storage, sd->storage.max_amount);
    	clif_storagelist(sd, sd->storage.u.items_storage, sd->storage.max_amount, storage_getName(0));
    	clif_updatestorageamount(sd, sd->storage.amount, sd->storage.max_amount);
    
    	return 0;
    }

     

    • Love 1
  7. if(getequipid(EQI_HAND_R) == 12345){
    	unequip(EQI_HAND_R);
    	dispbottom "You can only equip one type of this weapon.";
    } else if(EQI_HAND_L == 12345){
    	unequip(EQI_HAND_L);
    	dispbottom "You can only equip one type of this weapon.";
    }

    Something simple like this should solve your problem, add it on the equip part of the item script. and replace the 12345 ID that you want to check :))

×
×
  • Create New...