Jump to content
  • 0

Broadcast when enter PvP room


Question

9 answers to this question

Recommended Posts

Posted (edited)

Edit your script that warps them into the PVP room and add something like:

mapannounce "your_pvp_map", strcharinfo(0)+" has entered the PVP room!", 0;

Edited by Brian
Posted

Didn't work >.<

merullian,112,85,4 script PvP Warper 413,{
sc_end sc_IMPOSITIO;
sc_end sc_MAGNIFICAT;
sc_end sc_GLORIA;
sc_end sc_AETERNA;
sc_end sc_CP_WEAPON;
sc_end sc_CP_SHIELD;
sc_end sc_CP_ARMOR;
sc_end sc_CP_HELM;
sc_end sc_CP_WEAPON;
sc_end sc_CONCENTRATION;
sc_end sc_ASSUMPTIO;
sc_end sc_TRUESIGHT;
sc_end sc_WINDWALK;
sc_end sc_ENDURE;
sc_end sc_CONCENTRATE;
sc_end sc_ANGELUS;
sc_end sc_BLESSING;
sc_end sc_INCREASEAGI;
sc_end sc_PRESERVE;
//PvP Warper
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Möchtest du die PvP Arena betreten?";
next;
//switch(select("Normal PvP [^000088"+getmapusers("n_pvp")+"^000000]","Hardcore PvP [^000088"+getmapusers("pvp_n_8-5")+"^000000]","^ff0000Abbrechen^000000")) {
switch(select("Normal PvP [^000088"+getmapusers("pvp_y_8-2")+"^000000]","Hardcore PvP [^000088"+getmapusers("hard_pvp")+"^000000]","^ff0000Abbrechen^000000")) {
case 1:
mapannounce "pvp_y_8-2", strcharinfo(0)+" ist in die PvP Arena eingetreten!", bc_map;
warp "pvp_y_8-2",0,0;
close;
case 2:
mapannounce "hard_pvp", strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", bc_map;
warp "hard_pvp",0,0;
close;
case 3:
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Dann eben nicht.";
close; }
OnInit:
waitingroom "PvP Arena",0;
end;
}

Posted (edited)

please change

mapannounce "pvp_y_8-2", strcharinfo(0)+" ist in die PvP Arena eingetreten!", bc_map;

into

announce "pvp_y_8-2,"+strcharinfo(0)+" ist in die PvP Arena eingetreten!", bc_map;

mapannounce "hard_pvp", strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", bc_map;

into

announce "hard_pvp,"+strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", bc_map;

Edited by hendra814
Posted

oops I forgot since your npc is not on the same map, bc_map won't work.

Change the flag to 0 (bc_all):

mapannounce "pvp_y_8-2", strcharinfo(0)+" ist in die PvP Arena eingetreten!", 0;

Posted

didn't work again x<

merullian,112,85,4 script PvP Warper 413,{
sc_end sc_IMPOSITIO;
sc_end sc_MAGNIFICAT;
sc_end sc_GLORIA;
sc_end sc_AETERNA;
sc_end sc_CP_WEAPON;
sc_end sc_CP_SHIELD;
sc_end sc_CP_ARMOR;
sc_end sc_CP_HELM;
sc_end sc_CP_WEAPON;
sc_end sc_CONCENTRATION;
sc_end sc_ASSUMPTIO;
sc_end sc_TRUESIGHT;
sc_end sc_WINDWALK;
sc_end sc_ENDURE;
sc_end sc_CONCENTRATE;
sc_end sc_ANGELUS;
sc_end sc_BLESSING;
sc_end sc_INCREASEAGI;
sc_end sc_PRESERVE;
//PvP Warper
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Möchtest du die PvP Arena betreten?";
next;
//switch(select("Normal PvP [^000088"+getmapusers("n_pvp")+"^000000]","Hardcore PvP [^000088"+getmapusers("pvp_n_8-5")+"^000000]","^ff0000Abbrechen^000000")) {
switch(select("Normal PvP [^000088"+getmapusers("pvp_y_8-2")+"^000000]","Hardcore PvP [^000088"+getmapusers("hard_pvp")+"^000000]","^ff0000Abbrechen^000000")) {
case 1:
announce "pvp_y_8-2", strcharinfo(0)+" ist in die PvP Arena eingetreten!", 0;
warp "pvp_y_8-2",0,0;
close;
case 2:
announce "hard_pvp", strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", 0;
warp "hard_pvp",0,0;
close;
case 3:
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Dann eben nicht.";
close; }
OnInit:
waitingroom "PvP Arena",0;
end;
}

I just become the message of the maps example hard_pvp lol

Posted

didn't work again x<

merullian,112,85,4 script PvP Warper 413,{
sc_end sc_IMPOSITIO;
sc_end sc_MAGNIFICAT;
sc_end sc_GLORIA;
sc_end sc_AETERNA;
sc_end sc_CP_WEAPON;
sc_end sc_CP_SHIELD;
sc_end sc_CP_ARMOR;
sc_end sc_CP_HELM;
sc_end sc_CP_WEAPON;
sc_end sc_CONCENTRATION;
sc_end sc_ASSUMPTIO;
sc_end sc_TRUESIGHT;
sc_end sc_WINDWALK;
sc_end sc_ENDURE;
sc_end sc_CONCENTRATE;
sc_end sc_ANGELUS;
sc_end sc_BLESSING;
sc_end sc_INCREASEAGI;
sc_end sc_PRESERVE;
//PvP Warper
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Möchtest du die PvP Arena betreten?";
next;
//switch(select("Normal PvP [^000088"+getmapusers("n_pvp")+"^000000]","Hardcore PvP [^000088"+getmapusers("pvp_n_8-5")+"^000000]","^ff0000Abbrechen^000000")) {
switch(select("Normal PvP [^000088"+getmapusers("pvp_y_8-2")+"^000000]","Hardcore PvP [^000088"+getmapusers("hard_pvp")+"^000000]","^ff0000Abbrechen^000000")) {
case 1:
announce "pvp_y_8-2", strcharinfo(0)+" ist in die PvP Arena eingetreten!", 0;
warp "pvp_y_8-2",0,0;
close;
case 2:
announce "hard_pvp", strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", 0;
warp "hard_pvp",0,0;
close;
case 3:
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Dann eben nicht.";
close; }
OnInit:
waitingroom "PvP Arena",0;
end;
}

I just become the message of the maps example hard_pvp lol

need + before strcharinfo(0). please look at my first reply

Posted
please change

mapannounce "pvp_y_8-2", strcharinfo(0)+" ist in die PvP Arena eingetreten!", bc_map;

into

announce "pvp_y_8-2,"+strcharinfo(0)+" ist in die PvP Arena eingetreten!", bc_map;

Actually no +

and that 2nd line is just the wrong syntax for announce. XD

Posted

It's done ~

And works :>

merullian,112,85,4 script PvP Warper 413,{
sc_end sc_IMPOSITIO;
sc_end sc_MAGNIFICAT;
sc_end sc_GLORIA;
sc_end sc_AETERNA;
sc_end sc_CP_WEAPON;
sc_end sc_CP_SHIELD;
sc_end sc_CP_ARMOR;
sc_end sc_CP_HELM;
sc_end sc_CP_WEAPON;
sc_end sc_CONCENTRATION;
sc_end sc_ASSUMPTIO;
sc_end sc_TRUESIGHT;
sc_end sc_WINDWALK;
sc_end sc_ENDURE;
sc_end sc_CONCENTRATE;
sc_end sc_ANGELUS;
sc_end sc_BLESSING;
sc_end sc_INCREASEAGI;
sc_end sc_PRESERVE;
//PvP Warper
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Möchtest du die PvP Arena betreten?";
next;
//switch(select("Normal PvP [^000088"+getmapusers("n_pvp")+"^000000]","Hardcore PvP [^000088"+getmapusers("pvp_n_8-5")+"^000000]","^ff0000Abbrechen^000000")) {
switch(select("Normal PvP [^000088"+getmapusers("pvp_y_8-2")+"^000000]","Hardcore PvP [^000088"+getmapusers("hard_pvp")+"^000000]","^ff0000Abbrechen^000000")) {
case 1:
announce ""+strcharinfo(0)+" ist in die PvP Arena eingetreten!", bc_map;
warp "pvp_y_8-2",0,0;
close;
case 2:
announce ""+strcharinfo(0)+" ist in die Hardcore PvP Arena eingetreten!", bc_map;
warp "hard_pvp",0,0;
close;
case 3:
mes "[ ^000088PvP Arena Warper^000000 ]";
mes "Dann eben nicht.";
close; }
OnInit:
waitingroom "PvP Arena",0;
end;
}

Posted

How are you testing it?

Did you open a 2nd client and put that player in the PVP room first?

I tested and it works for me:

prontera,155,188,0	script	test	910,{
select "Warp me";
mapannounce "poring_w01", strcharinfo(0) + " ist in die PvP Arena eingetreten!",0;
warp "poring_w01",0,0;
end;
}

(click to enlarge) 11j0xmw_th.jpg

Since you added the mapannounce before warp, you will never see it on your own screen.

Here are 2 options to fix this:

1) switch the 2 lines and add a sleep2 between warp and mapannounce (maybe 1 second is enough time for the loading screen)

2) OR trigger the mapannounce with OnPCLoadMapEvent, which always executes after a player enters a map.

prontera,155,188,0	script	test	910,{
select "Warp me";
warp "poring_w01",0,0;
end;
OnPCLoadMapEvent:
if (strcharinfo(3) == "poring_w01")
	mapannounce "poring_w01", strcharinfo(0) + " ist in die PvP Arena eingetreten!",0;
end;
}

poring_w01	mapflag	loadevent

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...