If it doesn't work, try this one.
- script denyautotrade -1,{
OnInit:
bindatcmd("trade","denyautotrade::OnActivate");
setarray .allow[0],4058,4064,4071,4078,4086,4087,4100,4107,4112;
end;
OnActivate:
for( set .@i, 0; .@i < getarraysize(.allow); set .@i, .@i +1 ) {
if(class == .allow[.@i]) {
atcommand "@autotrade";
end;
}
}
dispbottom "Autotrade function is available only for Mechanics and Genetics.";
end;
}
Edit your groups.conf, deny the use of autotrade for gmlevel 0, then create a new script with bindatcmd.
- script denyautotrade -1,{
OnInit:
bindatcmd("trade","denyautotrade::OnActivate");
setarray .allow[0],4058,4064,4071,4078,4086,4087,4100,4107,4112;
end;
OnActivate:
for( set .@i, 0; .@i < getarraysize(.allow); set .@i, .@i +1 ) {
if(class != .allow[.@i]) {
dispbottom "Autotrade function is available only for Mechanics and Genetics.";
end;
}
}
atcommand "@autotrade";
end;
}
The current command is @trade, but you can change it to anything you want.
case 1: // Normal Pvp
if (getmapusers("pvp_y_1-2") > 99) callsub S_full;
if (class == 4049) {mes "[PvP Warper]"; mes "Soul Linkers are not allowed to enter this room"; close;}
sc_end SC_ALL;
percentheal 100,100;
sc_start SC_BLESSING,300000,10;
sc_start SC_INCREASEAGI,300000,10;
specialeffect2 EF_BLESSING;
specialeffect2 EF_INCAGILITY;
warp "pvp_y_1-2",0,0;
end;
Hmm the only question in my mind is why the script uses a scope variable? Not a permanent char variable..
If you don't want to change the name, just use something like this
prt_vilg01,99,100,0 script Putty#Putty2 90,{