@autores (auto resurrection)

Ridley

Community Administrator
Messages
1,157
Points
0
Age
38
Location
Germany
Discord
Ridley#5102
IRC Nickname
Ridley
Github
ridley8819
Emulator
Client Version
2019-03-22
index.php


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


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

 
@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
 
Last edited by a moderator:
@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

Code:
	OnInit:
		bindatcmd "autores", strnpcinfo(0) +"::OnAtcommanda", 14, 99;
		bindatcmd "autorescheck", strnpcinfo(0) +"::OnAtcommandb", 14, 99;
		.vipgroup = 4; // Group ID for VIP
		end;
 
Code:
		if(.active == 1 && (getgroupid() == .vipgroup)){
 
Last edited by a moderator:
@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;
 
Code:
		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.

 
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.

Code:
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
Code:
OnPCDieEvent:
if (strcharinfo(3) == ".map$" && L_VIP == 1) {

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

else {
end;
}
 
Back
Top