Jump to content

Bisuke

Members
  • Posts

    177
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Bisuke

  1. 23 hours ago, Technoken said:

    Try

    
    -	script	tesqweqweast	-1,{
    OnInit:
    	initnpctimer;
    	end;
    
    OnTimer5000:
    	stopnpctimer;
    	deletearray .players;
    	addrid(5,1,"guild_vs1");
    	.players[getarraysize(.players)] = getcharid(3);
    	detachrid;
    	while( .@i < getarraysize(.players) ){
    		if( attachrid( .players[.@i] ) )
    			if( HP && compare( strcharinfo(3),"guild_vs1" ) )
    				.@alive++;
    		.@i++;
    	}
    	if( .@alive ){
    		initnpctimer;
    		end;
    	}
    	deletearray .players;
    	announce "Players are all the dead",0;
    	mapwarp "guild_vs1","prontera",155,181;
    	end;
    }

     

    Thank you for this reply, but I tried this code and it seems that the code is not working. :)

  2. 17 minutes ago, crazyarashi said:

    I dont know what event is that but you can use getmapuser to get the number of players inside :)) and if someone die just use OnPCDieEvent to warp them out :))
     

    The Thing is, I don't want to warp them out of the map. It's a survival event, and players are allowed to resurrect other players. However, I want to create a script that will active as soon as all the players are dead, the event will be closed and all the dead players will be warped out.

  3. I finally get to try this on my test server, however there's an error that says, missing 3 curly. I tried adding the closing curlies to the first 3 conditional statement:

    if(BaseLevel > 85){		set .@Reset,	100000,	100000,	90000,	0; }
    	else if(BaseLevel > 75){	set .@Reset,	75000,	75000,	70000,	0;}
    	else if(BaseLevel > 45){	set .@Reset,	50000,	50000,	50000,	0;}
    
    

    However, A new error occured, unexpected ";".

  4. Please, paki elaborate mo ng mas maayos ung problema niyo po. Tama po ba ito, Ang problem niyo is ayaw mag download ng latest patch niyo? Pero ung old patches eh na dodownload.

     

    If that is the case, tignan niyo po ung plist.txt niyo, baka po hindi na kalagay dun ung latest thor patch niyo. Dapat po ung last value nung patch niyo is ung pinakamataas lagi.

  5. So here's what I did. I copied the Orc's Memorial Instance Warper and modified it to make my own warper. So far, I made 2 npcs, 1st to create instance and to enter the dungeon, 2nd is to destroy the instance and end the quest.  I'm also wondering, I never used any ordinary warp command on my script, It uses instance_enter. I also made another quest entry on questdb.

×
×
  • Create New...