allright ty, will test it o:!
edit
i tried by setting both 40,40 to 4,4 but didn't work, it just said that the command doesnt exist
huh i have to change them to be like 4,40 right o:?
edit
setting it to 4,40 didn't work D:
script
- script item3 -1,{
OnInit:
bindatcmd strnpcinfo(1),strnpcinfo(1)+"::OnAtcommand",4,40;
end;
OnAtcommand:
if(.@atcmd_numparameters < 2) {
message strcharinfo(0),"Invalid Syntax (usage: @item3 <item id/name> <amount>).";
message strcharinfo(0),.@atcmd_command$+" failed.";
}
else {
getitembound .@atcmd_parameters$[0],atoi(.@atcmd_parameters$[1]),4,getcharid(3);
}
end;
}
- script item4 -1,{
OnInit:
bindatcmd strnpcinfo(1),strnpcinfo(1)+"::OnAtcommand",4,40;
end;
OnAtcommand:
if(.@atcmd_numparameters < 9) {
message strcharinfo(0),"Invalid Syntax (usage: @item3 <item id/name> <amount> <identify> <refine> <attribute> <card1> <card2> <card3> <card4>).";
message strcharinfo(0),.@atcmd_command$+" failed.";
}
else {
getitembound2 .@atcmd_parameters$[0],atoi(.@atcmd_parameters$[1]),atoi(.@atcmd_parameters$[2]),atoi(.@atcmd_parameters$[3]),atoi(.@atcmd_parameters$[4]),atoi(.@atcmd_parameters$[5]),atoi(.@atcmd_parameters$[6]),atoi(.@atcmd_parameters$[7]),atoi(.@atcmd_parameters$[8]),4,getcharid(3);
}
end;
}