Jump to content
  • 0
greenieken

Command is deprecated

Question

7 answers to this question

Recommended Posts

  • 0

@meko I see. I am having difficulty in understanding the pow() command, where will I type the command for automatic conversion if i am using winscp?

Share this post


Link to post
Share on other sites
  • 0

winscp? then I guess your pc is running windows and your server is running linux? If so, login through ssh (using putty) and navigate to the hercules folder (using cd), then use the command

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, greenieken said:

pow(10,.@i+1) / pow(10,.@i)  to  pow(10 ** .@i+1) / pow(10 ** .@i)

 

is this right? @meko

Nope. You need to ditch the "pow" part entirely, so pow(10, .@i + 1) simply becomes (10 ** (.@i + 1))

Share this post


Link to post
Share on other sites
  • 0

I see. How about for specialeffect2(), misceffect()

 

FROM 

OnAgitStart:
    while(agitcheck()) {
        specialeffect2 EF_BEGINSPELL6;
        sleep 425;
    }
    end;
}

 

TO

 

OnAgitStart:
    while(agitcheck()) {
        specialeffect EF_BEGINSPELL6;
        sleep 425;
    }
    end;
}

 

right?

 

@meko

Share this post


Link to post
Share on other sites
  • 0

@greenieken It seems you didn't read my post at all...

 

specialeffect2 is the easiest to convert because its behaviour is predicable, unlike misceffect, which depends on attached oid/rid.

 

In your case, specialeffect2(EF_BEGINSPELL6) could be converted to specialeffect(EF_BEGINSPELL6, AREA, playerattached()). However, I see you call it from the OnAgitStart event, which does not have an attached rid so even your specialeffect2() shouldn't have worked before... And the vanilla script did not use specialeffect2 either. The correct command to use here is simply specialeffect(EF_BEGINSPELL6);

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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