Custom Command

- script atcmd_maintown FAKE_NPC,{

OnInit:

bindatcmd "maintown", strnpcinfo(3) +"::OnAtcommand", 0, 40;

bindatcmd "town", strnpcinfo(3) +"::OnAtcommand", 0, 40;

bindatcmd "home", strnpcinfo(3) +"::OnAtcommand", 0, 40;

end;

OnAtcommand:

warp prontera, 150, 150;

end;

}

 
- script atcmd_maintown FAKE_NPC,{
OnInit:
bindatcmd "maintown", strnpcinfo(3) +"::OnAtcommand", 0, 40;
bindatcmd "town", strnpcinfo(3) +"::OnAtcommand", 0, 40;
bindatcmd "home", strnpcinfo(3) +"::OnAtcommand", 0, 40;
end;
OnAtcommand:
warp prontera, 150, 150;
end;
}
Not working

atcommand error.png

 
Ja my fault, forgot the "

Code:
-	script	atcmd_maintown	FAKE_NPC,{
	OnInit:
		bindatcmd "maintown", strnpcinfo(3) +"::OnAtcommand", 0, 40;
		bindatcmd "town", strnpcinfo(3) +"::OnAtcommand", 0, 40;
		bindatcmd "home", strnpcinfo(3) +"::OnAtcommand", 0, 40;
		end;
	OnAtcommand:
		warp "prontera", 150, 150;
		end;
		}
 
Back
Top