Werdio Posted December 26, 2012 Posted December 26, 2012 Hi, I need a script where will come a broadcast if somebody enter into the PvP Room. Quote
Brian Posted December 26, 2012 Posted December 26, 2012 (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 December 27, 2012 by Brian Quote
Werdio Posted December 27, 2012 Author Posted December 27, 2012 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; } Quote
hendra814 Posted December 27, 2012 Posted December 27, 2012 (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 December 27, 2012 by hendra814 Quote
Brian Posted December 27, 2012 Posted December 27, 2012 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; Quote
Werdio Posted December 27, 2012 Author Posted December 27, 2012 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 Quote
hendra814 Posted December 27, 2012 Posted December 27, 2012 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 Quote
Brian Posted December 27, 2012 Posted December 27, 2012 please changemapannounce "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 Quote
Werdio Posted December 27, 2012 Author Posted December 27, 2012 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; } Quote
Brian Posted December 27, 2012 Posted December 27, 2012 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) 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 Quote
Question
Werdio
Hi,
I need a script where will come a broadcast if somebody enter into the PvP Room.
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.