Jump to content
  • 0

Help OnPcDieEvent


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

This is Mysterious Script, anyone knows how to add map that will not affect by this script.

example if I died in payon I will not be affected by this script like I will be resurected to my savepoint already can someone help me.

 

 

prontera,99,120,4 script    death  78

OnPCDieEvent:

warp "prontera",x,x;

sleep2 1000;

announce "Hey "+strcharinfo(0)+", It seems you have died! Don't worry, you will be resurected in 3 Seconds!",bc_blue|bc_self;

//sleep2 3000;

//announce "10",bc_blue|bc_self;

//sleep2 1000;

//announce "9",bc_blue|bc_self;

//sleep2 1000;

//announce "8",bc_blue|bc_self;

//sleep2 1000;

//announce "7",bc_blue|bc_self;

//sleep2 1000;

//announce "6",bc_blue|bc_self;

//sleep2 1000;

//announce "5",bc_blue|bc_self;

//sleep2 1000;

//announce "4",bc_blue|bc_self;

//sleep2 1000;

announce "3",bc_blue|bc_self;

sleep2 1000;

announce "2",bc_blue|bc_self;

sleep2 1000;

announce "1",bc_blue|bc_self;

sleep2 1000;

announce "Respawning..",bc_blue|bc_self;

atcommand "@alive "+strcharinfo(0);

sleep2 1000;

atcommand "@load "+strcharinfo(0);

}

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

This is Mysterious Script, anyone knows how to add map that will not affect by this script.
example if I died in payon I will not be affected by this script like I will be resurected to my savepoint already can someone help me.

 

prontera,99,120,4	script	death	78,{
	end;
	OnPCDieEvent:
		if(strcharinfo(3)=="payon"){ warp "SavePoint",0,0; }
		warp "prontera",0,0;
		sleep2 1000;
		announce "Hey "+strcharinfo(0)+", It seems you have died! Don't worry, you will be resurected in 3 Seconds!",bc_blue|bc_self;
		announce "3",bc_blue|bc_self;
		sleep2 1000;
		announce "2",bc_blue|bc_self;
		sleep2 1000;
		announce "1",bc_blue|bc_self;
		sleep2 1000;
		announce "Respawning..",bc_blue|bc_self;
		atcommand "@alive "+strcharinfo(0);
		sleep2 1000;
		atcommand "@load "+strcharinfo(0);
}
Edited by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

bump!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

bump!

 

It's extremely rude to bump a problem that you're already getting help for. =_=*

 

If there is a problem with the script POST the error message... If the script isn't doing what you want then you've haven't given us enough information.

 

READ http://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/ before posting.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

ohhh, sorry i didnt mean it i didnt see your reply..  The script do teleport you to a certain place when you died, and wait for a certain sec whether how many sec do you like, ireally want to know who to add map exception to this scripts.

Edited by coldfire2k
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

Skorm offered you a solution to exclude one map already:

if(strcharinfo(3)=="payon"){ warp "SavePoint",0,0; }
If you want a generic solution with which you can just list all maps to be excluded in an array, try this:
OnPCDieEvent:

deletearray .@ExcludedMaps$[ 0 ], getarraysize( .@ExcludedMaps$[ 0 ] );

setarray .@ExcludedMaps$[ 0 ], "payon", "prontera", "izlude"; // [Xynvaroth]: Add all the maps to be excluded here.

for( set .@Index, 0; .@Index <= getarraysize( .@ExcludedMaps$ ); set .@Index, .@Index + 1 )

if( strcharinfo( 3 ) == .@ExcludedMaps$[ .@Index ] )

end;

// [Xynvaroth]: Put the rest of your code after this comment.

Edited by Xynvaroth
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Ohh i didnt see that, am very sorry, thanks skorm! and thank you xynvaroth, im bit drowzy thats why i cant read properly, 47/7 of scripting my serv. thanks so much 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...