• 0
Sign in to follow this  
Sacul71

Loop specialeffect.. and end specialeffect.

Question

I would like to create a visual item. but with an existing effect. (544) Warmth Red Sprite.

so I am testing additionally on an existing item for testing only .. I am using item 2135. After some searching I found these 2 scripts. but they do not work 100% as I would like.

Complete Script of item 2135

Spoiler

2135,Shadow_Guard,Shadow Guard,12,0,,0,,0,,0,0xFFFFFFFF,2,2,32,,0,,2,{ },{ set eff544,1; while(eff544==1){specialeffect2 544; sleep2 6000;} },{set eff544,1; },{},{}

 

this one works as close to how I wanted to ...

Spoiler

{},{ set eff544,1; while(eff544==1){specialeffect2 544; sleep2 6000;} },{set eff544,0;}

however ... there are some errors ... both in console and in game ...
in play the effect is what I want. but if I give @go or warp ... it goes out temporarily. returning after a few seconds. and the most annoying thing is that if I unequip the item the effect doesn't come out ...
if I give @go or warp it always returns ...

Console Erro:

Spoiler

MapServer.jpg.15089a37ff02bc9d8c102647e55fed13.jpg


MapServer2.jpg.16ccc53d200fab0efda7b9dccc779da6.jpg

 

this other, the effect is normal. but if I give @go or warp the effect fades and doesn't come back.

Spoiler

if(isequipped(2135)) {specialeffect2 544 ;specialeffect2 590; sleep 5000;}

and because it is an effect. if anyone gets to the map. Won't see the effect. so there has to be some kind of quick refresh. please help me: S

Edited by Sacul71

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
 
Effect is something temporary and local, so there is this problem of @go, others arriving later do not see ..

For visual items you must apply the .act and .spr files on your date before you can always activate it.

Create the physical effect, not local.
 

Share this post


Link to post
Share on other sites
  • 0

I understand. but it's okay to make a look with an existing effect. Sure a lot of people use @effect scripted items. just like the script I posted. only mine gives these problems ....
and I believe it's just some detail. but that may work.

Share this post


Link to post
Share on other sites
  • 0

For the effect to become permanent you can use hateffect, you don't need so many checks.

The errors you showed have nothing to do with your script.

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Kakaroto said:

For the effect to become permanent you can use hateffect, you don't need so many checks.

The errors you showed have nothing to do with your script.

I don't know how to make scripts ... how would it be with this hateffect? 

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

Loading...
Sign in to follow this