Jump to content

n0tttt

Members
  • Posts

    303
  • Joined

  • Days Won

    12

Posts posted by n0tttt

  1. I tried your script this way:
     

    -	script	wisp	-1,{
    OnWhisperGlobal:
    	if(getgmlevel() > 50){
      
    		.@loop1 = 1;
    		while(.@loop1){
    	
    			mes "Choose an option";
    			next;
    				switch(select("Option1:Option2:Option3")) {
    				case 1:
    				mes "Write a number between 0 and 6.";
    				while(1){
    					input .@TdayofWeek;		//Script stops working right here. Input doesn't show up.
    					if ((.@TdayofWeek >= 0) && (.@TdayofWeek <= 6))
    						break;
    				}
    				setarray .@dayofWeek[getarraysize(.@dayofWeek)], .@TdayofWeek;
    				break;
    			
    				case 2:
    				//Nothing yet
    				break;
    			
    				case 3:
    				.@loop1 = 0;
    				break;
    			
    			}
    		}
    		close;
    
    	}
    }

    and couldn't reproduce. It worked right.
    This test was made with the latest git commit. What version are you using?
    A weird issue indeed.

    • Upvote 1
  2. I made this function a long time ago.

    	// callfunc "party_randomattach",party,required map to be in;
    function    script    party_randomattach    {
        .@party = getarg(0,getcharid(1));
        .@map$ = getarg(1,""); 
        if(.@party){
            getpartymember(.@party,1,.@party_cid);
            getpartymember(.@party,2,.@party_aid);
            .@n = $@partymembercount;
            for(;.@i<.@n;.@i++){
                if(isloggedin(.@party_aid[.@i],.@party_cid[.@i])){
                    attachrid(.@party_aid[.@i]);
                    if(.@map$!=""&&.@map$!=strcharinfo(3))
                        deletearray(.@party_aid[.@i],1);
                }else
                    deletearray(.@party_aid[.@i],1);
            }
            attachrid(.@party_aid[rand(getarraysize(.@party_aid))]);
        }
        return;
    }
    // callfunc "party_randomattach",.@party_id,"payon"; getitem 512,5;
    // callfunc "party_randomattach",getcharid(1),strcharinfo(3); getitem 513,5;
    // callfunc "party_randomattach"; getitem 512,5;
    	

  3. battle.c

    Change:

        if (skill_id == PA_PRESSURE || skill_id == HW_GRAVITATION)
            return damage; //These skills bypass everything else.

    To:

        if (skill_id == PA_PRESSURE || skill_id == HW_GRAVITATION || skill_id == PA_SACRIFICE)
            return damage; //These skills bypass everything else.

  4. use TiMz script and change the item to
    20580,Spirit_of_Hunter,Spirit of Hunter,2,2,,10,,,,,0x00000800,7,2,,,,,,{ skilleffect "SL_HUNTER",0; sc_start4 SC_SPIRIT,350000,5,460,0,0; doevent "sample_soullink_hp::OnPCStatCalcEvent";},{},{}

×
×
  • Create New...