Command is deprecated

greenieken

New member
Messages
90
Points
0
Github
greenieken
Emulator
Hi there. I just noticed this today, npcs are working fine tho. How to fix this?

command.png

 
@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?

 
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

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

 
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

 
@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);

 
Back
Top