Jump to content

St1ng

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by St1ng

  1. On 6/25/2017 at 5:07 AM, Emistry said:

    npc/guild/agit_main.txt#L96-L98

    
    if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) {
    	monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
    }

    change to

    
    if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) {
    	monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
    	.@gid = $@mobid[0];
    	switch ( gettime(DT_DAYOFWEEK) ) {
    		case MONDAY: 
    		case WEDNESDAY: 
    			.@max_hp = 1000000; 
    			break;
    		case TUESDAY: 
    		case THURSDAY: 
    			.@max_hp = 5000000; 
    			break;
    		default: break;
    	}
    	if ( .@max_hp > 0 ) {
    		setunitdata .@gid,UMOB_MAXHP,.@max_hp;
    		setunitdata .@gid,UMOB_HP,.@max_hp;
    	}
    }

     

    @Emistry / to All

    Does not work for me after @reloadscript.

    Is a restart needed for it to take effect?

    Target Output

    My default Emperium HP is 10m via mob_db.txt, I would want it to be re-scaled at 500k during Saturday and Sunday 7-8pm only, then back to default 10m HP by 9-10PM for my 2nd WoE Sched.

    Weekdays = Normal HP (10m)

    This is my agit_main.txt

     

    agit_main.txt

  2. @all!

    Hi and good day!

    I would like to seek help on this particular script

    I know its possible but i cant seem to make it work

    Adding a createchatroom command to the script

    So it goes like, When the Player starts fishing it'll create a chatroom Saying something like "Fishing or watever"

    this is my script > 

    jawaii,191,299,0	script	School of Fish	723,{
    	
    //Fishing rod
    set .@Rod,2764;
    //Fishing Lure
    set .@Lure,2775;
    //Auto-Fish
    set .@Auto,1;
    //Auto-Fish on Fail
    set .@AutoFail,1;
    Fish:
    	if (isequipped(.@Rod)) && (isequipped(.@Lure)){
    		specialeffect EF_BUBBLE,"Fishing Hole";
    		dispbottom "[Fishing] Casting...";
    		set .@fcast,50;
    			if (isequipped(2550)) { //Fisher's Muffler
    				set .@fcast,.@fcast - 2;
    			}
    			if (isequipped(2443)) { //Fisher's Boots
    				set .@fcast,.@fcast - 2;
    			}
    			if (isequipped(2764)) { //Fishing Pole
    				set .@fcast,.@fcast - 3;
    			}
    			if (isequipped(2775)) { //Fishing Lure
    				set .@fcast,.@fcast - 1;
    			}
    		progressbar "ffffff",.@fcast;
    		if (rand(1,40) == 2){
    		getitem 6096,1; //Fish with Blue Back
    		specialeffect2 EF_TEMP_OK;
    		mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Blue Fish!",bc_map,"0xff77ff";
    		if(.@Auto==1){
    		goto Fish;}else{
    		end;}
    		}
    			if (rand(1,6) == 1) ||(rand(1,6) == 3) || (rand(1,6) == 6){
    			setarray .@Catch[0],579,908,909,963,956,6049,918,960,910,938,624;// List of Junk/Other
    			set .@CatchRand,.@Catch[rand(getarraysize(.@Catch))];
    			getitem .@CatchRand,1;
    			}
    			else {
    			dispbottom "[Fishing] Nothing was caught...";
    			if(.@AutoFail == 1){
    			goto Fish;} else{
    			end;}
    			}
    		if (rand(1,100) == 3){
    		setarray .@Rare[0],644,603,617;
    		set .@RareCatch, .@Rare[rand(getarraysize(.@Rare))];
    		getitem .@RareCatch,1; //Reward
    		mapannounce strcharinfo(3),strcharinfo(0)+" has caught a "+getitemname(.@RareCatch)+"!",bc_map,"0x33CC00";
    		}
    		if(.@Auto == 1){
    		goto Fish;} else{
    		end;}
    		}
    	else {
    	dispbottom "[Fishing] You need a Rod and Lure.";
    	end;
    	}
    }
    
    jawaii,191,290,0	duplicate(School of Fish)	School of Fish#1	1158
    jawaii,217,296,0	duplicate(School of Fish)	School of Fish#2	1255
    jawaii,216,288,0	duplicate(School of Fish)	School of Fish#3	1158
    jawaii,213,283,0	duplicate(School of Fish)	School of Fish#4	1266
    jawaii,208,282,0	duplicate(School of Fish)	School of Fish#5	1158
    jawaii,214,299,0	duplicate(School of Fish)	School of Fish#6	1158
    jawaii,194,287,0	duplicate(School of Fish)	School of Fish#7	1256
    jawaii,201,280,0	duplicate(School of Fish)	School of Fish#8	1158
    jawaii,195,299,0	duplicate(School of Fish)	School of Fish#9	1279
    jawaii,200,301,0	duplicate(School of Fish)	School of Fish#10	1158

     

  3. Hi i'd like to ask on how to get the Guild Owners?

    I think its via SqL since the Woe Reward Script under Euphy's Script fetches it via SQL.

    I wish to insert it on this code wherein only Guild Castle Owners and GM's can enter the said room.

    i think i would be using this lines to do that?

     if ( agitcheck() )
     if ( getcastledata( "CASTLE", 1) != getcharid(2) )
     if ( getguildmasterid( getcharid(2) ) != getcharid(0) )

    Would be glad if someone can offer assistance thanks!

    Heres my code below

    -	script	PrivateGoldRoom	-1,{
    
    	OnTimer3000:
    
                    makeitem 969, 5, "1@dth3", rand(62, 75),rand(77,75);
                    makeitem 969, 2, "1@dth3", rand(62, 68),rand(77,68);
                    makeitem 969, 2, "1@dth3", rand(62, 60),rand(77,60);
                    makeitem 969, 2, "1@dth3", rand(71, 67),rand(71,63);
                    makeitem 969, 2, "1@dth3", rand(78, 59),rand(69,58);
                    makeitem 969, 5, "1@dth3", rand(76, 73),rand(81,68);
    //
                    makeitem 969, 5, "1@dth3", rand(63, 74),rand(76,76);
                    makeitem 969, 2, "1@dth3", rand(63, 67),rand(76,69);
                    makeitem 969, 2, "1@dth3", rand(63, 59),rand(76,61);
                    makeitem 969, 2, "1@dth3", rand(72, 66),rand(70,64);
                    makeitem 969, 2, "1@dth3", rand(79, 58),rand(68,59);
                    makeitem 969, 5, "1@dth3", rand(77, 72),rand(80,69);
    //                
    		makeitem 607, 5, "1@dth3", rand(62, 75),rand(77,75);
                    makeitem 607, 2, "1@dth3", rand(62, 68),rand(77,68);
                    makeitem 607, 2, "1@dth3", rand(62, 60),rand(77,60);
                    makeitem 607, 2, "1@dth3", rand(71, 67),rand(71,63);
                    makeitem 607, 2, "1@dth3", rand(78, 59),rand(69,58);
                    makeitem 607, 5, "1@dth3", rand(76, 73),rand(81,68);
    //
                    stopnpctimer;
    
                    initnpctimer;
    
            end;
    
        OnInit:
    
            initnpctimer;
    
            end;
    
    }
    
     
    1@dth3,70,90,4	script	Exit	664,{
    	warp "dicastes01",255,158;
    	end;
    }
    
    dicastes01,248,158,4	script	Guild Gold Room	691,{
    
    	set .GMAccess,99;		// GM level required to access Session Manager.
    
    	mes "Would you like to go to the gold room?";
    
    	if(select("Yes", "No") == 1) {
    
            warp "1@dth3", 0, 0;
    
        }
    
        close;
    
    OnInit:
    disablenpc "Guild Gold Room";
    end;
    
    OnWed0356:
    waitingroom	"Guild Gold Room",0;
    enablenpc "Guild Gold Room";
    announce "The Guild Gold Room Warper has Appeared!",0;
    sleep 3000;
    announce "The Gold Haven is now Opened for the Castle Winner!",0;
    sleep 3000;
    announce "Guild Winners will be able to enter the Gold Haven From 11PM till 12AM",0;
    end;
    OnWed0357:
    disablenpc "Guild Gold Room";
    announce "The Gate to Gold Haven is now Closed!",0;
    sleep 1000;
    announce "Only Guild Castle Winners are allowed to enter Gold Haven! Be sure to win the next War of Emperium!",0;
    }
    
    1@dth3	mapflag	nobranch
    1@dth3	mapflag	pvp	off
    1@dth3	mapflag	noskill
    1@dth3	mapflag	nowarp

     

×
×
  • Create New...