Jump to content

kombatzz

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by kombatzz

  1. On 4/10/2019 at 10:43 AM, TARTs said:
    
    louyang,150,150,0	script	OnlineReward	2248,300,300,{
    	end;
    	
    OnTouch:
    	attachnpctimer strcharinfo(0);
    	initnpctimer;
    	end;
    
    OnTimer30000:
    	if(checkvending() >= 1) {
    		dispbottom "The rewards has stopped because you were vending . Please relog if you wish to start again.";
    		stopnpctimer;
    	}
    	end;
    
    OnTimer60000:
    	if(strcharinfo(3) == "louyang"){
    		#CASHPOINTS += 2;
    		dispbottom "You received 2 Cash Points. Current Cash Points: " + #CASHPOINTS;
    		stopnpctimer;
    		initnpctimer;
    	}
    	else
    	stopnpctimer;
    	end;
    }

     

    it should touch the NPC to start the event or automatically? btw, thanks for ur reply

  2. -    script    OnlineReward#1    -1,{
     
    //--Start of the Script
    OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;
    
    OnTimer30000:
    //Check if Vending (normal or @at)
    if(checkvending() >= 1) {
        dispbottom "The rewards has stopped because you were vending . Please relog if you wish to start again.";
        stopnpctimer;
        end;
    }
    
    OnTimer60000:
    set @minute, @minute + 1;
    //Check for 1 Minute
    if(@minute == 1 && (strcharinfo(3) == "louyang")){
        set @minute,0;
        set #CASHPOINTS,#CASHPOINTS+2;
        dispbottom "You received 2 Cash Points. Current Cash Points: " + #CASHPOINTS;
    }
    stopnpctimer;
    initnpctimer;
    end;
    }

    can you guys help me? from the script above, i need to if someone warped to louyang can participate the hourly event, rather than re-log in to the game. thanks for the support!

×
×
  • Create New...