Atcommand in item

utofaery

New member
Messages
101
Points
0
I was moving from eathena 13786 to hercules master revision downloaded as zip.

So here's the thing, a line like this work before in itemdb 

atcommand "@reloadscript "+strcharinfo(0)+"";

but cease to work now please help me to fix it

 
I don't know what problem you're facing but a quick workaround would be something like this probably:

Create a script in the npc folder and make a function so in the itemdb you just use callfunc for what you want to happen, instead of using atcommand you use callfunc

 function<tab>script<tab>reload<tab>{atcommand "@reloadscript"+strcharinfo(0)+"";end;}

and apply this code to any item that you're using to call the function reload

callfunc reload;



Weird workaround but I think it's the temporary solution to your problem...

 
Last edited by a moderator:
reloadscript doesn't use a parameter as far as I know, so just remove the "+strcharinfo(0)+" part

 
Is there any stuff I can do to make it not kick me out when reloadingscript by items?

atcommand "@reloadscript";

It functions like @mapexit in hercules.

What I mean is it did not act this way before in eA.

Anyone can help me out in this?

 
Back
Top