Jump to content
Sign in to follow this  
Ridley

@autores (auto resurrection)

Recommended Posts

index.php?app=downloads&module=display&section=screenshot&id=240

File Name: @autores (auto resurrection)

File Submitter: Ridley

File Submitted: 21 Feb 2016

File Category: Utility

 

@autores <mapname> < X coordinate> < Y coordinate>

 

eg. @autores prontera 150 150 <-- will revive players at prontera 150/150

 

Use it for your events, races or whatever :)

 

Note:

  • only players on the given map are affected. If you set "prontera" as map, only players which die there will be revived. If you set pay_dun00, only players there are affected and so on..
  • It has a 5 second cooldown till it revives you. This is set in line 57 (sleep2 5000;)
  • second use of @autores will disable it again
  • @autorescheck tells you if the system is enabled or disabled
  • Works only at one map at the same time

 

Click here to download this file

Share this post


Link to post
Share on other sites

@Ridley Good script!  useful for other events and instances.

Anyways, what if i will set only for an accout not global (for everyone). i will use this as for VIP.

 

$@ temporarpy global account var
Edited by Eternity

Share this post


Link to post
Share on other sites

@Ridley Good script!  useful for other events and instances.

 

Anyways, what if i will set only for an accout not global (for everyone). i will use this as for VIP.

$@ temporarpy global account var

 

 

Not sure what you want to say, but I asume you want only your VIP's to be warped?

 

either check for normal players and exclude them (default groupID 0)

 

		if(.active == 1 && (getgroupid() != 0)){
 

or check if they have your VIP Group ID

 

	OnInit:
		bindatcmd "autores", strnpcinfo(0) +"::OnAtcommanda", 14, 99;
		bindatcmd "autorescheck", strnpcinfo(0) +"::OnAtcommandb", 14, 99;
		.vipgroup = 4; // Group ID for VIP
		end;
 
		if(.active == 1 && (getgroupid() == .vipgroup)){
Edited by Ridley

Share this post


Link to post
Share on other sites

 

@Ridley Good script!  useful for other events and instances.

 

Anyways, what if i will set only for an accout not global (for everyone). i will use this as for VIP.

$@ temporarpy global account var

 

Not sure what you want to say, but I asume you want only your VIP's to be warped?

 

either check for normal players and exclude them (default groupID 0)

 

		if(.active == 1 && (getgroupid() != 0)){
 

or check if they have your VIP Group ID

 

	OnInit:
		bindatcmd "autores", strnpcinfo(0) +"::OnAtcommanda", 14, 99;
		bindatcmd "autorescheck", strnpcinfo(0) +"::OnAtcommandb", 14, 99;
		.vipgroup = 4; // Group ID for VIP
		end;
 
		if(.active == 1 && (getgroupid() == .vipgroup)){

 

 

I'm sorry if its not clear.

Thanks for the script post. However i want something for a specific char only not global character.

Share this post


Link to post
Share on other sites

I'm sorry if its not clear.

Thanks for the script post. However i want something for a specific char only not global character.

You can give the a normal label variable to their character, like you would for any quest.

 

e.g.

prontera,150,150,3    script    give vip label     4_F_SOMETHING,{

set L_VIP,1;
mes "You are now a vip";
close;

}
And then when you want autores only for vips, you could go
OnPCDieEvent:
if (strcharinfo(3) == ".map$" && L_VIP == 1) {

message "autores in 5 seconds";
sleep2 5000;
atcommand "@alive";
end;

else {
end;
}

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.