Jump to content
  • 0

resurrect one player in a map by script command


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Hi, can you guys please help me,  I'm using SavingAngel script from peopleperson collection and this npc basically revive one player in any map he is.

the problem is that the order is resurrecting all chars and not only the name of the char that was input.

I have tried 2 alternatives I know, like @alive, or @resurrect,  even changed the @ for a # in the script, but it fails.

 

 

Here's the fragment of the lines

	next;
	mes "[Kasondra]";
	mes "Ingresa el nombre de la pobre persona.";
	mes "^FF0000Escribe el nombre exactamente, de lo contrario mis poderes fallarán y me debilitaré por nada.^000000";
	if(select("Continuar:No importa")==2) { next; mes "[Kasondra]"; mes "Adios."; close3; }
	input .@name$;
	if(getmapxy(@map$,@x,@y,bl_pc,.@name$)!=0) 
	{ next; mes "[Kasondra]"; mes "Lo siento, pero no puedo revivir fragmentos de tu imaginación."; close3; }
	next;
	if(zeny<1000000) { next; mes "[Kasondra]"; mes "¡Por favor, vete, me has lastimado más de lo que puedes saber!"; close3; }
	set zeny,zeny-1000000;
	atcommand "@revive "+.@name$+"";
	specialeffect 338;
	announce "Kasondra envía una ola poderosa por todo el mundo para resucitar a "+.@name$+".",8;
	mes "[Kasondra]";
	mes "Mi trabajo está hecho, ¡ahora debo descansar!";
	close3;

 

Is reviving al players in map, not only the choosen one.

 

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

Hey,

Have you tried with this ?

*recovery <type>{,<option>,<revive_flag>{,<map name>}};

This command will revive and fully restore the HP/SP of the selected characters.
It returns 1 upon successful use.

<type> is the target, and determines the <option> parameter:
 0: Player  -> Character ID number
 1: Party   -> Party ID number
 2: Guild   -> Guild ID number
 3: Map     -> Map name (a string)
 4: All     -> None (takes <revive_flag> as option)

If no option is specified, the invoking player's character ID, party ID, guild ID,
or map will be used.

<revive_flag> determines the action:
 1: Revive and heal all players (default)
 2: Heal living players only
 4: Revive dead players only

<map name> can optionally be used to define a single map to execute the command on
for types 1 (party) and 2 (guild).

Example:
recovery 1, getcharid(1);

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Nice tip, I will find out how to apply this.

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