Jump to content
  • 0

Request dispbottom within an area


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

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 Noire
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

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 by tianlinli
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

@ euphy

Can 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"

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

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;
	}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

I just edit few to make it work thanks for the ideas guys !

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...