Jump to content

crazyarashi

Developer
  • Posts

    776
  • Joined

  • Last visited

  • Days Won

    22

Posts posted by crazyarashi

  1. 24 minutes ago, domez86 said:

    can you explain this script to me?
    Does the item equip it directly?
    do I just have to enter an item id?

    you didn't mention about being equipped on the topic.

     

    prontera,255,255,3	script	Equip Freebies	123,{
    	if(#claimed){
    		mes "[ Freebies ]";
    		mes "You alreay receieved your freebies.";
    		close;
    	}
    	getinventorylist;
    	for(.@i = 0; .@i < 20; .@i++){
    		.@id = getequipid(.@i);
    		if(.@id == -1)
    			.@equip_id[.@i] = 0; // Dummy Data
    		else
    			.@equip_id[.@i] = .@id;
    	}
    	for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){
    		if(inarray(.@equip_id[0],.equip_id[.@i]) >= 0 || inarray(@inventorylist_id[0],.equip_id[.@i]) >= 0){
    			.@fail = 1;
    			break;
    		}
    		continue;
    	}
    	if(.@fail){
    		mes "[ Freebies ]";
    		mes "You already have a duplicated freebies in your inventory/equipment.";
    		close;
    	}
    	#claimed = 1;
    	for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){
    		getitem .equip_id[.@i],1;
    		equip .equip_id[.@i];
    	}
    	mes "[ Freebies ]";
    	mes "Here is your freebies.";
    	end;
    		
    OnInit:
    	setarray .equip_id,1208,2154; // Add your ID's here.
    	end;
    }

    Here is the new script that it will automatically equip it after receiving :))

    • Upvote 1
  2. 22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,,{ .@r = getrefine(); bonus2 bVariableCastrate,-.@r; bonus bMatk,(.@r*5); bonus2 bMagicAddEle,Ele_Earth,2*.@r; bonus2 bAddEle,Ele_Neutral,2*.@r; bonus2 bAddEle,Ele_Undead,2*.@r; bonus2 bAddEle,Ele_Ghost,2*.@r; },{},{}

    There is nothing wrong with your item script ?

  3. prontera,255,255,3	script	Equip Freebies	123,{
    	if(#claimed){
    		mes "[ Freebies ]";
    		mes "You alreay receieved your freebies.";
    		close;
    	}
    	getinventorylist;
    	for(.@i = 0; .@i < 20; .@i++){
    		.@id = getequipid(.@i);
    		if(.@id == -1)
    			.@equip_id[.@i] = 0; // Dummy Data
    		else
    			.@equip_id[.@i] = .@id;
    	}
    	for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){
    		if(inarray(.@equip_id[0],.equip_id[.@i]) >= 0 || inarray(@inventorylist_id[0],.equip_id[.@i]) >= 0){
    			.@fail = 1;
    			break;
    		}
    		continue;
    	}
    	if(.@fail){
    		mes "[ Freebies ]";
    		mes "You already have a duplicated freebies in your inventory/equipment.";
    		close;
    	}
    	#claimed = 1;
    	for(.@i = 0; .@i < getarraysize(.equip_id); .@i++){
    		getitem .equip_id[.@i],1;
    	}
    	mes "[ Freebies ]";
    	mes "Here is your freebies.";
    	end;
    		
    OnInit:
    	setarray .equip_id,1208,2154; // Add your ID's here.
    	end;
    }

     

  4. 5 minutes ago, dest1n said:
    
    22178:4352,{ skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000; bonus2 bSPRegenRate,100,10000; .@r = getrefine(); if(BaseLevel<99){bonus bStr,3*.@r;bonus bFlee,5*.@r;}else{bonus bStr,10*.@r;bonus bFlee,15*.@r;} } 

     everything works fine but for the bonus str and flee every refine are not working for both condition

    You added it in item_combo, you need to wear both item for effect to work.

  5. -	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
  6.     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;

     

×
×
  • Create New...