Jump to content

crazyarashi

Developer
  • Posts

    761
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by crazyarashi

  1. prontera,229,310,3	script	Ingacio#daily_mass	123,{
    	if(gettime(DT_DAYOFWEEK) == SATURDAY){
    		if(daily_mass < 3){
    			mes "The Daily Mass will start again tomorrow.";
    			close;
    		} else {
    			if(daily_mass < 4){ .@reward = 1; } else
    			if(daily_mass < 6){ .@reward = 2; } else
    			if(daily_mass == 7){ .@reward = 3; }
    			mes "Here is your reward for attending the daily mass.";
    			.@index = (.@reward - 1) * 2;
    			daily_mass = 0;
    			getitem .reward[.@index],.reward[.@index + 1];
    			end;
    		}
    	}
    	if(#daily_mass_cd > gettimetick(2)){
    		mes "Thank you for attending the mass today.";
    		mes "Come back again tomorrow.";
    		close;
    	}
    	if(gettime(HOUR) >= 19 && gettime(HOUR) <= 23){
    		mes "Thank you for attending the daily mass.";
    		mes "Please come back again tomorrow.";
    		if(gettime(DT_DAYOFWEEK) == SUNDAY){
    			daily_mass = 0;
    		}
    		daily_mass += 1;
    		#daily_mass_cd = gettimetick(2) + 18000;
    	} else {
    		mes "We are having the daily mass between 17:00~23:00.";
    	}
    	end;
    	
    OnHour19:
    	enablenpc strnpcinfo(0);
    	end;
    	
    OnHour23:
    	disablenpc strnpcinfo(0);
    	end;
    	
    OnInit:
    	setarray .reward, //= ITEM ID, AMOUNT
    	501,5,  //= <4 DAY REWARD
    	502,5, //= <6 DAY REWARD
    	503,7; //= 7 DAY REWARD
    end;
    }

    Haven't tested it yet, do try it. As for no dual  there are several scripts out there for that like this one. Just add your map.

     

  2. -	script	mvp_point	-1,{
    	end;
    
    OnNPCKillEvent:
    	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
    	[email protected] = inarray(.mvp_point, killedrid) + 1;
    	if(!getcharid(1)){
    		#MVP_POINT += .mvp_point[[email protected]];
    		dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
    	} else {
    		getmapxy([email protected]$,[email protected],[email protected],BL_PC);
    		getpartymember getcharid(1),1;
    		getpartymember getcharid(1),2;
    		for([email protected] = 0; [email protected] < [email protected]; [email protected]++){
    			if(attachrid([email protected][[email protected]])){
    				if(strcharinfo(3) == [email protected]$ && isloggedin([email protected][[email protected]], [email protected][[email protected]])){
    					[email protected]_id[getarraysize([email protected]_id)] =  [email protected][[email protected]];
    				}
    				detachrid;
    			}
    		}
    		[email protected] = getarraysize([email protected]_id);
    		if([email protected] == 1){
    			#MVP_POINT += .mvp_point[[email protected]];
    			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
    			end;
    		}
    		if([email protected] > .mvp_point[[email protected]] || [email protected] == .mvp_point[[email protected]]){
    			[email protected] = 1;
    		} else {
    			[email protected] = (.mvp_point[[email protected]]/[email protected]);
    		}
    		for([email protected] = 0;  [email protected] < [email protected]; [email protected]++){
    			setd "#MVP_POINT",getd("#MVP_POINT") + [email protected],[email protected]_id[[email protected]];
    			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".",0x00FF00,[email protected]_id[[email protected]];
    		}			
    	}		
    end;
    	
    OnInit:
    	setarray .mvp_point, //= MVP ID, Points
    	1039,10,
    	1046,20,
    	1112,30;
    end;
    }

    I haven't tested it yet. Just add all your MVP ID, Point on the array.

    • Upvote 1
  3. -	shop	food_vendor	-1,12043:20000,12058:20000,12053:20000,12063:20000,12068:20000
    
    map,123,123,1	script	Food Vendor 123,{
    	if(!vendor_unlocked){
    		mes "[ Food Vendor ]";
    		mes "Can you give me one " + getitemname(12128) +"?";
    		next;
    		if(countitem(12128)){
    			if(select("Give the "+getitemname(12128)+":Cancel") == 2){
    				mes "[ Food Vendor ]";
    				mes "That's unfortunate.";
    				close;
    			}
    			mes "[ Food Vendor ]";
    			mes "Thank you, now I can prepare my foods.";
    			delitem 12128,1;
    			vendor_unlocked = 1;
    			end;
    		} else {
    			mes "[ Food Vendor ]";
    			mes "Please bring me a " + getitemname(12128) +"?";
    			end;
    		}
    	}
    	mes "[ Food Vendor ]";
    	mes "How can I help you?";
    	next;
    	callshop "food_vendor",1;
    	end;
    }

     

    • Upvote 1
  4. -	script	item_swap	-1,{
    	for([email protected] = 0; [email protected] < .size; [email protected]++){
    		[email protected]$ += "List " + ([email protected]+1) + ":";
    	}
    	mes "Select a list.";
    	next;
    	[email protected] = select([email protected]$) - 1;
    	explode([email protected]$,.item_list$[[email protected]],",");
    	for([email protected] = 0; [email protected] < getarraysize([email protected]$); [email protected]++){
    		[email protected] = atoi([email protected]$[[email protected]]);
    		[email protected][[email protected]] = [email protected];
    		if(countitem([email protected])){
    			[email protected][getarraysize([email protected])] = [email protected];
    			[email protected]$ += getitemname([email protected]) + ":";		
    		} else {
    			continue;
    		}
    	}
    	mes "Select the item you want to swap.";
    	next;
    	[email protected] = select([email protected]$) - 1;
    	[email protected]_id = [email protected][[email protected]];
    	[email protected] = inarray([email protected],[email protected]_id);
    	for([email protected] = 0; [email protected] < getarraysize([email protected]); [email protected]++){
    		if([email protected] == [email protected]) continue;
    		[email protected][getarraysize([email protected])] = [email protected][[email protected]];
    		[email protected]$ += getitemname([email protected][[email protected]]) + ":";
    	}
    	mes "select the item you want to swap into.";
    	next;
    	[email protected] = select([email protected]$) - 1;
    	delitem [email protected]_id,1;
    	getitem [email protected][[email protected]],1;
    	end;
    	
    OnInit:
    	setarray .item_list$,"501,502,503,504,505","506,507,508,509,510";
    	.size = getarraysize(.item_list$);
    	end;
    }

    Haven't tested this but pretty sure it will work..

    • Love 1
  5. Just add an account variable tick to it if you want it to have an account cd, just match the cd to your quest_db cd.

     

    	//= Instance Creation Check
    	if (is_party_leader() == false) {
    		mes "[Civilization Explorer]";
    		mes "Ah. You aren't the party leader. Take me to your leader! Or perhaps take your leader to me.";
    		close;
    	}
    	if(#CentralLabCD > gettimetick(2)){
    		mes "[Civilization Explorer]";
    		mes "Account CD Mes";
    		close;
    	}
    	
    	
    	//= Instance Enter
    	case IE_OK:
    	mapannounce "verus01", "" + strcharinfo(0) + " of the party, " + getpartyname([email protected]_id) + ", is entering Central Laboratory.",bc_map,"0x00FF99";
    	#CentralLabCD = gettimetick(2) + 9999999;  //= Account CD
    	setquest 12347;// Trace of Laboratory Access
    	end;

     

    • Love 1
  6. 7 hours ago, erMigs said:

    I have a question sir regarding this thread .. How to restrict other class on using job suit that is not theirs ...like example i have Rune Knight 3rd job suit ..but my job is Sniper ...howll i put restriction so my sniper wont become RK when using it

    Edit the item database for it. Make it only wearable for your specific classes.

    and don't go reviving old topics.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.