Jump to content
  • 0

Continous Specialeffect


ProtoMan

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

Hi!

I would like to create a continuous effect on an NPC, which is active not only when I click on it, but that is always visible, even if I click sull'NPC. Is it possible?
 
Thanks in advance!
 
(Sorry for my terrible English.. )
Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   25
  • Joined:  11/23/11
  • Last Seen:  

I've find also a Prontera map custom whit the continuos effect, so they work on my version/server but I don't know how, damn

 

e71mw2.jpg

Map effects are different. They work in the map file and aren't managed by the server.

The thing you want is something like this:

http://pastebin.com/raw.php?i=1pSM8zqJ

But based on the other scripts which didn't work, and this one is almost exactly...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

You can do it by using the freeloop command and then use sleep.

 

The following code will display effect #70 every 0.5 secs after it's loaded.

OnInit:
	freeloop(1);
	while(!.xxx) {
		specialeffect 70;
		sleep 500;
	}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

Oh great, finally one! Thanks for reply;
the "xxx" what mean?
Because I try to set it like that, but it doesn't work:

 

 

prontera,102,102,3 script SpecialEffect 66,{
 
OnInit:
freeloop(1);
while(!.xxx) {
specialeffect 70;
sleep 500;
}
mes "Done";
close;
 
}

 

 

Edited by ProtoMan
Link to comment
Share on other sites


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

Something like this would also work.

prontera,102,102,3	script	SpecialEffect	66,{
	mes "Done";
	close;

OnInit:
OnTimer500:
	specialeffect 70;
	initnpctimer;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

It won't work because you placed the mes command under the OnInit label. OnInit triggers everytime the server is (re)loaded (in which no player is attached to the script), while mes needs an attached player to function, so that's probably why it isn't working. The mes command contradicts the OnInit label.

 

.xxx is a variable, but it is not declared, which is why I used while(!.xxx). !.xxx means that .xxx has no value. While is a looping function, so as long as !.xxx is true (or .xxx is not declared), it will do the script in it over and over again.

 

So, the correct script would be:

prontera,102,102,3 script SpecialEffect 66,{

  mes "Done";
  close;

OnInit:
	freeloop(1);
	while(!.xxx) {
	specialeffect 70;
	sleep 500;
	}

}

On a side note, Skorm's method is much easier to do.

Edited by Nerfwood
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

Nothing, I try them but don't cast the effect, maybe I wrong anything? Damn, I don't understant this thing of the specialeffect (continous) ;

 

sorry anyway for my bad english

Edited by ProtoMan
Link to comment
Share on other sites


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

Nothing, I try them but don't cast the effect, maybe I wrong anything? Damn, I don't understant this thing of the specialeffect (continous) ;

 

sorry anyway for my bad english

 

And you're sure you have /effect enabled? It works fine for me what emulator are you using?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

eAthena, SVN r747M, and yes I've /effect enable, damn; the script work, and talk but I can't see the effect!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

eAthena SVN r747M??? It's time for an update (to rAthena)!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

For it doesen't work? Lol

anyway yes, I know >>

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

I've find also a Prontera map custom whit the continuos effect, so they work on my version/server but I don't know how, damn

 

e71mw2.jpg

 

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

In my server it doesen't work, damn...
Anyway I understand about the effects of maps, thank you;

I, anyway, mean; I load the NPC that you've post, @load it and click on it, but nothing happen <_>

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