Jump to content
  • 0

PVP warper with roration npc pub name and player count inside the room.


iFox

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.03
  • Content Count:  55
  • Reputation:   0
  • Joined:  05/30/22
  • Last Seen:  

Good day Mam/Sir
im kindly asking for youre guide how to modify the simple script on the server?
 iwanted to count the player inside the room by showing or talking npc above there head. please help. Thank you so much.

heres the simple code:


prontera,167,177,4    script    PvP-Warper    10298,{
cutin "se_star03",2;
set .@room1$,"guild_vs3"; //Insert map name into quotation marks & adjust to your desire
set .@room2$,"pvp_y_1-2"; //Insert map name into quotation marks & adjust to your desire
set .@room3$,"pvp_n_7-3"; //Insert map name into quotation marks & adjust to your desire
set .@name$,"[Luke]"; //NPC Dialogue name
switch(select("Trans Class Only:For All Class")){
case 2:
warp .@room1$,0,0;
        announce ""+strcharinfo(0)+" entered the PVP Room for All Class",0,0x33FF00;
end;
case 1:
if(Class >= 4000 && Class <= 4022){ //Allows any Trans Class
warp .@room2$,0,0;
        announce ""+strcharinfo(0)+" entered the PVP Room Bloody Mode",0,0xFF0066;

end;
}
cutin "", 255;
close;
//case 3:
if(Class >= 4054 || Class <= 4087){ 
warp .@room3$,0,0;
end;
}
close;
}
OnInit:
    while(1) {
        showscript "PVP MASTER", getnpcid(0);
        sleep 1000;
    }
    end;
}
pvp_y_1-2    mapflag    nowarpto
pvp_y_1-2    mapflag    nowarp
pvp_y_1-2    mapflag    noreturn
pvp_y_1-2    mapflag    loadevent

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1191
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

Try change your Oninit part into this

Oninit:
OnTimer5000:
	delwaitingroom;
	switch(rand(1,3)) {
Case 1:
	waitingroom getmapusers(.@room1$)+" player"+( getmapusers(.@room1$) > 1 ? "s":"") +" in map", 0;
	goto Timer;
	end;
	break;

Case 2:
	waitingroom getmapusers(.@room2$)+" player"+( getmapusers(.@room2$) > 1 ? "s":"") +" in map", 0;	
	goto Timer;
	end;
	break;

Case 3:
	waitingroom getmapusers(.@room3$)+" player"+( getmapusers(.@room3$) > 1 ? "s":"") +" in map", 0;	
	goto Timer;
	end;
	break;
Timer:
	initnpctimer;
}
while(1) {
        showscript "PVP MASTER", getnpcid(0);
        sleep 1000;
    }
    end;
}
pvp_y_1-2    mapflag    nowarpto
pvp_y_1-2    mapflag    nowarp
pvp_y_1-2    mapflag    noreturn
pvp_y_1-2    mapflag    loadevent 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...