Noire Posted February 11, 2016 Posted February 11, 2016 (edited) Can i request a script for dispbottom massage? Example :~> areawarp "guild_room",309,373,319,363, "guild_room",322,367; • All players within these cell will have a dispbottom "Your answer is right, warping you back to the center" ~> areawarp "guild_room",325,373,335,363,"prontera",150,150; • And for this one weill their dispbottom "Your answer is wrong, warping you back to prontera" =//= ~> areawarp "guild_room",309,373,319,363,"prontera",150,150; • And for this one weill their dispbottom "Your answer is wrong, warping you back to prontera" ~>areawarp "guild_room",325,373,335,363, "guild_room",322,367; • All players within these cell will have a dispbottom "Your answer is right, warping you back to the center" Edited February 11, 2016 by Noire Quote
0 Neffletics Posted February 12, 2016 Posted February 12, 2016 (edited) Hi, Noire, you can do something like this.1. Make a hidden NPC at the center of each quadrant that will set a variable to the player. (change 5,5 to the desirable npc scope) guild_room,x,y,0 script Quadrant1 -1,5,5,{ end; OnTouch: set q1,1; set q2,0; set q3,0; set q4,0; } guild_room,x,y,0 script Quadrant2 -1,5,5,{ end; OnTouch: set q1,0; set q2,1; set q3,0; set q4,0; } (just create more for the other quadrants) 2. And then create something like this if (q1 == 1) { dispbottom "Your answer is right, warping you back to the center"; } Hope it helps! And good luck! (Sorry if I just gave you ideas, I do not want to spoonfeed people with scripts that can be copy and pasted. rAthena is slowly being filled with leechers nowadays. To keep this community alive, let's make it this way) Edited February 12, 2016 by tianlinli Quote
0 Emistry Posted February 12, 2016 Posted February 12, 2016 another easy way would be make use of these addrid + dispbottom https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3770-L3788 or areaannounce *areaannounce "<map name>",<x1>,<y1>,<x2>,<y2>,"<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}}}; This command works like 'announce' but will only broadcast to characters residing in the specified x1/y1-x2/y2 rectangle on the map given. The flags and optional parameters are the same as in 'announce', but target and source flags are ignored. areaannounce "prt_church",0,0,350,350,"God's in his heaven, all right with the world",0; Quote
0 Noire Posted February 12, 2016 Author Posted February 12, 2016 @ euphyCan you make example of that i tried that but no announce appear, im confuse >.< newbie @ this point need guidance :/ Example : areawarp guild_room 309,73 319 363 guild_room 322 367 - I Just want all people who are on this area will have a dispbottom " You're correct warping you back to center" Quote
0 PandaLovesHamster Posted February 12, 2016 Posted February 12, 2016 areaannounce "guild_room",309,73,319,363,"You're correct! Warping you back to the center.",0; Try that. Also, it would be better if you post the line of script you are working with and got the error, that way we can tell you what you did wrong so it will be easier for you to learn. Note: I'm learning too >,< just newbie. Quote
0 Noire Posted February 13, 2016 Author Posted February 13, 2016 Can you guys edit this help? ~> areawarp "guild_room",309,373,319,363, "guild_room",322,367; • All players within these cell will have a dispbottom "Your answer is right, warping you back to the center" ~> areawarp "guild_room",325,373,335,363,"prontera",150,150; • And for this one well their dispbottom "Your answer is wrong, warping you back to prontera" =//= vice versa ~> areawarp "guild_room",309,373,319,363,"prontera",150,150; • And for this one will their dispbottom "Your answer is wrong, warping you back to prontera" ~>areawarp "guild_room",325,373,335,363, "guild_room",322,367; • All players within these cell will have a dispbottom "Your answer is right, warping you back to the center" Help.txt Quote
0 PandaLovesHamster Posted February 14, 2016 Posted February 14, 2016 areaannounce "guild_room",309,373,319,363,"Correct!",0; areaannounce "guild_room",325,373,335,363,"Wrong!",0; Is the easiest thing to do, but if you really want the dispbottom thing then: close2; announce "[ "+ strcharinfo(0) +" ] :answer is False.",bc_map; set .@i,0; // 0 = false | 1 = true sleep2 4500; switch(.@i){ case 0: areawarp "guild_room",309,373,319,363,"prontera",150,150; dispbottom "You got the wrong answer."; end; case 1: areawarp "guild_room",325,373,335,363, "guild_room",322,367; dispbottom "You got the right answer."; end; } Quote
0 Noire Posted February 15, 2016 Author Posted February 15, 2016 I just edit few to make it work thanks for the ideas guys ! Quote
Question
Noire
Can i request a script for dispbottom massage?
Example :
~> areawarp "guild_room",309,373,319,363, "guild_room",322,367;
• All players within these cell will have a dispbottom "Your answer is right, warping you back to the center"
~> areawarp "guild_room",325,373,335,363,"prontera",150,150;
• And for this one weill their dispbottom "Your answer is wrong, warping you back to prontera"
=//=
~> areawarp "guild_room",309,373,319,363,"prontera",150,150;
• And for this one weill their dispbottom "Your answer is wrong, warping you back to prontera"
~>areawarp "guild_room",325,373,335,363, "guild_room",322,367;
• All players within these cell will have a dispbottom "Your answer is right, warping you back to the center"
Edited by Noire7 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.