greenieken 0 Posted June 27, 2017 Hi there. I just noticed this today, npcs are working fine tho. How to fix this? Quote Share this post Link to post Share on other sites
0 greenieken 0 Posted June 27, 2017 @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? Quote Share this post Link to post Share on other sites
0 greenieken 0 Posted June 27, 2017 pow(10,.@i+1) / pow(10,.@i) to pow(10 ** .@i+1) / pow(10 ** .@i) is this right? @meko Quote Share this post Link to post Share on other sites
0 meko 170 Posted June 27, 2017 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 Quote Share this post Link to post Share on other sites
0 meko 170 Posted June 27, 2017 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)) Quote Share this post Link to post Share on other sites
0 greenieken 0 Posted June 27, 2017 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 Quote Share this post Link to post Share on other sites
0 meko 170 Posted June 28, 2017 @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); Quote Share this post Link to post Share on other sites
Hi there. I just noticed this today, npcs are working fine tho. How to fix this?
Share this post
Link to post
Share on other sites